/* =========================================
   1. VARIABLES Y CONFIGURACIÓN
   ========================================= */
:root {
    --azul-oscuro: #0184c8;
    --azul-claro: #0076c8;
    --amarillo: #f3c32c;
    --texto: #4e4a4a;
    --blanco: #ffffff;
    --fuente: "Bahnschrift", sans-serif;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    width: 100%;
    font-family: var(--fuente);
    background-color: #f8f9fa;
    color: var(--texto);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none;
    transition: 0.3s;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* =========================================
   2. HEADER
   ========================================= */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-text {
    background-color: #005a8d;
    height: 10px;
    width: 100%;
    display: block;
}

nav {
    background: var(--azul-claro);
    height: 90px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.enlace {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    width: auto;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    align-items: center;
    float: none;
}

nav ul li {
    display: inline-block;
    margin: 0 5px;
}

nav ul li a {
    color: var(--blanco);
    font-size: 16px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 50px;
    text-transform: uppercase;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--amarillo);
}

/* Botón Cotizar Destacado */
.btn-highlight {
    border: 2px solid var(--amarillo);
    color: var(--amarillo) !important;
}

.checkbtn {
    font-size: 30px;
    color: var(--amarillo);
    cursor: pointer;
    display: none;
}
#check {
    display: none;
}

/* =========================================
   3. HERO SECTION (Formulario)
   ========================================= */
.home {
    width: 100%;
    min-height: 85vh;
    background-image: url("../img/home-reparacion.webp");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 40px 5%;
}

.home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

.form {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.96);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--amarillo);
    margin: 0;
}

.contact-form h2 {
    color: var(--azul-oscuro);
    font-size: 26px;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
}

.contact-form p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    text-align: left;
    width: 100%;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: #fdfdfd;
    box-sizing: border-box;
}

#contactForm textarea {
    height: 100px;
    resize: none;
}

#contactForm input[type="submit"] {
    background-color: var(--azul-oscuro);
    background-image: none;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

#contactForm input[type="submit"]:hover {
    background-color: var(--azul-claro);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =========================================
   4. CARACTERÍSTICAS
   ========================================= */
.espace {
    display: none;
}

.profesionalismo {
    background-color: var(--azul-oscuro);
    padding: 0;
    width: 100%;
}

.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: transparent;
    height: auto;
    border-radius: 0;
}

.feature {
    text-align: center;
    color: #fff;
    width: 250px;
    padding: 20px;
    transition: 0.3s;
    background: transparent !important; /* Quitar fondos extraños */
}

.feature:hover {
    transform: translateY(-5px);
}

.feature img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.feature p {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* =========================================
   5. SECCIÓN NOSOTROS
   ========================================= */
.Nosotros {
    padding: 80px 0;
    width: 100%;
    height: auto;
    background-image: url("../img/reparacion-de-neveras-side-by-side.webp");
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.Nosotros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
}

.nosotros {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.nosotros h1 {
    color: var(--azul-oscuro);
    font-size: 34px;
    margin-bottom: 25px;
    width: 100%;
    padding: 0;
}

.nosotros p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--texto);
    width: 100%;
    padding: 0;
    text-shadow: none;
    opacity: 1;
}

/* =========================================
   6. SERVICIOS (GRID)
   ========================================= */
.tittle {
    padding: 60px 0 40px;
    text-align: center;
}
.tittle h1 {
    color: var(--azul-oscuro);
    font-size: 36px;
}

.especialidades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 5% 60px;
    width: 100%;
    height: auto;
}

.grid-item {
    background: #fff;
    width: 320px;
    border-radius: 15px;
    box-shadow: var(--sombra);
    transition: 0.3s;
    overflow: hidden;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    height: auto;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(1, 132, 200, 0.2);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

.grid-item h3 {
    color: var(--azul-claro);
    font-size: 20px;
    margin: 20px 0 10px;
    padding: 0 20px;
    text-align: center;
    width: 100%;
}

.grid-item p {
    font-size: 15px;
    color: #666;
    padding: 0 20px;
    text-align: center;
}

/* =========================================
   7. POR QUÉ ELEGIRNOS
   ========================================= */
.elegirnos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 80px 5%;
    gap: 50px;
    background: #fff;
    width: 100%;
}

.elegirnos .imagen {
    flex: 1;
    min-width: 300px;
    padding: 0;
    margin: 0;
}
.elegirnos .imagen img {
    border-radius: 15px;
    box-shadow: var(--sombra);
    width: 100%;
}

.elegirnos .porque {
    flex: 1;
    min-width: 300px;
    padding: 0;
    margin: 0;
}
.porque h1 {
    color: var(--azul-oscuro);
    margin-bottom: 30px;
    width: 100%;
    padding: 0;
}

.domicilio,
.garantia,
.atencion {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9fbff;
    border-radius: 10px;
    transition: 0.3s;
}

.domicilio:hover,
.garantia:hover,
.atencion:hover {
    background: #eef5ff;
    transform: translateX(10px);
}

.domicilio img,
.garantia img,
.atencion img {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    object-fit: contain;
}

.texto h3 {
    color: var(--azul-claro);
    margin: 0 0 5px;
}
.texto p {
    margin: 0;
    color: #555;
}

/* =========================================
   8. TESTIMONIOS
   ========================================= */
.testimonios {
    padding: 80px 5%;
    background-image: url("../img/nevecones-diagnostico-preciso.webp");
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
    height: auto;
}

.testimonios::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 132, 200, 0.9);
}

.grid-testi {
    position: relative;
    z-index: 2;
    background: #fff;
    width: 320px;
    border-radius: 15px;
    padding: 50px 25px 30px;
    margin: 40px 0 0;
    box-shadow: var(--sombra);
    text-align: center;
    height: auto;
}

.grid-testi img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: -95px auto 15px; /* Imagen flotante */
    border: 5px solid #fff;
    display: block;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.grid-testi h3 {
    color: var(--azul-oscuro);
    margin-top: 15px;
    width: 100%;
}
.grid-image {
    display: none;
}

/* =========================================
   9. POLITICA Y FOOTER
   ========================================= */
.politica {
    background: var(--azul-oscuro);
    color: #fff;
    padding: 60px 10%;
    text-align: center;
}

.politica h1 {
    color: #fff;
    margin-bottom: 20px;
}
.politica p {
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
}

.footer {
    background: #005a8d;
    color: #fff;
    padding: 60px 0 20px;
    width: 100%;
    text-align: center;
    margin: 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 0;
}

.logo-section img {
    width: 200px;
    filter: brightness(0) invert(1);
    margin-bottom: 10px;
    height: auto;
}

.links-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 0;
}

.links-section li {
    width: auto;
}

.links-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.links-section a:hover {
    color: var(--amarillo);
    text-decoration: underline;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
    width: 100%;
    text-align: center;
}
.copyright a {
    color: var(--amarillo);
}

/* =========================================
   10. BOTONES FLOTANTES (CORREGIDOS Y GRANDES)
   ========================================= */
.whatsapp-fixed,
.call-fixed {
    position: fixed;
    right: 20px;
    z-index: 9999;
    width: 180px; /* Tamaño masivo */
    height: 180px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
}

/* Hover sutil: Elevarse ligeramente */
.whatsapp-fixed:hover,
.call-fixed:hover {
    transform: translateY(-5px) scale(1.05);
    background: transparent;
}

/* Posiciones calculadas para estar pegados (Solapamiento mayor para compensar márgenes de imagen) */
.call-fixed {
    bottom: 10px;
}

.whatsapp-fixed {
    bottom: 120px; /* Reducido aún más de 150px */
}

.whatsapp-fixed img,
.call-fixed img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para que la imagen no se corte */
}

.whatsapp-fixed:hover,
.call-fixed:hover {
    transform: scale(1.15);
    animation: none;
}

/* Animaciones de Onda */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
}

@keyframes pulseBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 132, 200, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(1, 132, 200, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(1, 132, 200, 0);
        transform: scale(1);
    }
}

/* =========================================
   11. MEDIA QUERIES (MÓVIL)
   ========================================= */
@media (max-width: 900px) {
    .checkbtn {
        display: block;
    }

    nav {
        padding: 0 20px;
    }

    nav ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: var(--azul-oscuro);
        top: 90px;
        left: -100%;
        text-align: center;
        transition: all 0.5s;
        flex-direction: column;
        display: block;
        padding-top: 50px;
        z-index: 999;
    }

    nav ul li {
        display: block;
        margin: 25px 0;
    }
    nav ul li a {
        font-size: 20px;
    }

    #check:checked ~ ul {
        left: 0;
    }

    .home {
        padding: 40px 5%;
        justify-content: center;
    }

    .contact-form {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .elegirnos {
        flex-direction: column;
    }

    .domicilio,
    .garantia,
    .atencion {
        flex-direction: column;
        text-align: center;
    }

    .domicilio img,
    .garantia img,
    .atencion img {
        margin: 0 0 15px 0;
    }

    /* Botones móvil: Extra grandes y pegados */
    .whatsapp-fixed,
    .call-fixed {
        width: 140px;
        height: 140px;
        right: 10px;
        padding: 0;
        background: transparent;
    }
    .call-fixed {
        bottom: 10px;
    }
    .whatsapp-fixed {
        bottom: 95px; /* Reducido de 115px */
    }
}
