/*FUENTES*/
@font-face {
    font-family: "TrebuechetMS";
    src: url(fonts/TrebuchetMS.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "BebasNeue";
    src: url(fonts/BebasNeue.otf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "WebSymbolsRegular";
    src: url(fonts/websymbols-regular-webfont.eot);
    src: url(fonts/websymbols-regular-webfont.eot?#iefix) format(embedded-opentype),
        url(fonts/websymbols-regular-webfont.woff) format(woff),
        url(fonts/websymbols-regular-webfont.ttf) format(truetype),
        url(fonts/websymbols-regular-webfont.svg#WebSymbolsRegular) format(svg);
    font-weight: normal;
    font-style: normal;
}

/*GENERAL*/
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    background: url(../img/pattern.png);
    font-family: "TrebuechetMS", sans-serif;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 15px;
}

.gear {
    font-family: WebSymbolsRegular;
    color: rgb(185, 27, 27);
}

.clearfix {
    float: none;
    clear: both;
}

/*CABECERA*/
#header {
    width: 100%;
    height: 70px;
    font-family: BebasNeue;
    background-color: black;
    color: white;
    position: relative;
}

#logo {
    float: left;
    width: 200px;
    background-color: #eb790f;
    text-align: center;
    margin-top: 8px;
    margin-left: 20px;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 300ms;
}

#logo .gear {
    display: block;
    float: left;
    font-size: 30px;
    margin-top: 8px;
    margin-left: 26px;
}

#logo h3 {
    display: block;
    float: right;
    font-size: 40px;
    margin-top: 5px;
    margin-right: 65px;
    transition: all 300ms;
}

#menu {
    float: right;
    height: 70px;
    background: transparent;
}

#menu ul li {
    font-size: 24px;
    display: inline-block;
    margin: 0px 20px 0px 20px;
    letter-spacing: 1px;
    line-height: 70px;
}

#menu ul li a {
    display: block;
    color: white;
    text-decoration: none;
    transition: all 200ms;
}

#menu ul li a:hover {
    color: #e9e511;
    transform: scale(1.2, 1.2);
}

/* BANNER */
#banner {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/banner4.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 15px;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: "BebasNeue", sans-serif;
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #eb790f;
    font-weight: bold;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background-color: #eb790f;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #eb790f;
    font-family: "TrebuechetMS", sans-serif;
}

.btn-primary:hover {
    background-color: transparent;
    color: #eb790f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* SERVICIOS */
#services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #000;
    position: relative;
    padding-bottom: 15px;
    font-family: "BebasNeue", sans-serif;
    letter-spacing: 1px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #eb790f;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    padding: 30px 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #eb790f;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000;
    font-family: "BebasNeue", sans-serif;
    letter-spacing: 1px;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-card button {
    background-color: #eb790f;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: "TrebuechetMS", sans-serif;
}

.service-card button:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
#footer {
    background-color: #000;
    color: white;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.footer-section {
    text-align: center;
}

.logo-footer img {
    max-width: 150px;
    margin-bottom: 15px;
    border: 3px solid #eb790f;
    border-radius: 5px;
}

.logo-footer h4 {
    font-size: 1.2rem;
    color: #eb790f;
    font-family: "BebasNeue", sans-serif;
    letter-spacing: 1px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #eb790f;
    font-family: "BebasNeue", sans-serif;
    letter-spacing: 1px;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: #eb790f;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}
/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-family: "TrebuechetMS", sans-serif;
    font-weight: 600;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background: #128C7E;
}

.whatsapp-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-text {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ===== RESPONSIVE DEL BOTÓN WHATSAPP ===== */

/* Tablet */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        padding: 12px 18px;
    }
    
    .whatsapp-text {
        font-size: 0.85rem;
    }
}

/* Móvil */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        padding: 10px 15px;
    }
    
    .whatsapp-text {
        font-size: 0.8rem;
    }
}

/* Para pantallas muy pequeñas, mostrar solo el icono */
@media (max-width: 360px) {
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        padding: 12px;
        border-radius: 50%;
    }
    
    .whatsapp-icon {
        margin-right: 0;
    }
}
/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .wrap {
        padding: 0 20px;
    }
    
    #menu ul li {
        margin: 0px 15px;
        font-size: 22px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
}

/* Tablet Pequeña (768px y menos) */
@media (max-width: 768px) {
    #header {
        height: auto;
        padding: 10px 0;
    }
    
    #logo {
        float: none;
        margin: 0 auto;
        display: block;
    }
    
    #menu {
        float: none;
        width: 100%;
        height: auto;
        text-align: center;
        margin-top: 15px;
    }
    
    #menu ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #menu ul li {
        font-size: 18px;
        line-height: 50px;
        margin: 0 10px;
    }
    
    #banner {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .banner-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .logo-footer img {
        max-width: 130px;
    }
}

/* Móvil (480px y menos) */
@media (max-width: 480px) {
    #header {
        padding: 8px 0;
    }
    
    #logo {
        width: 160px;
    }
    
    #logo .gear {
        font-size: 24px;
        margin-left: 20px;
        margin-top: 6px;
    }
    
    #logo h3 {
        font-size: 32px;
        margin-right: 50px;
        margin-top: 3px;
    }
    
    #menu ul {
        flex-wrap: wrap;
    }
    
    #menu ul li {
        font-size: 16px;
        margin: 0 8px;
        line-height: 45px;
    }
    
    #banner {
        height: 350px;
    }
    
    .banner-content h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .banner-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    #services {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .cards-grid {
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .card-icon img {
        width: 70px;
        height: 70px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-card button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    #footer {
        padding: 30px 0 0;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .logo-footer img {
        max-width: 110px;
    }
    
    .logo-footer h4 {
        font-size: 1.1rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .copyright {
        padding: 15px 0;
        font-size: 0.8rem;
    }
}

/* Móvil muy pequeño (360px y menos) */
@media (max-width: 360px) {
    #menu ul li {
        font-size: 14px;
        margin: 0 5px;
    }
    
    .banner-content h1 {
        font-size: 1.6rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 15px 10px;
    }
}