:root {
    --color-primario: rgb(254, 189, 23);
    --color-oscuro: #000000;
    --color-claro: #f4f4f4;
    --fuente-principal: 'Roboto Condensed', sans-serif;
    --header-top-height: 60px; /* ya está en tu diseño */
    --header-bottom-height: 42px; /* 🔹 antes 55px — ahora más fino */
    --header-height: calc(
        var(--header-top-height) + var(--header-bottom-height)
    );
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
section {
    scroll-margin-top: var(--header-height);
}

body {
    font-family: var(--fuente-principal);
    color: #222;
}

/* ✅ FONDO GLOBAL */
body,
html {
    background-color: #000;
    isolation: isolate;
}

/* GENERAL */
.container {
    width: 90%;
    max-width: 1800px;
    margin: 0 auto;
}
.section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

h2 {
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-oscuro);
    font-weight: 700;
}
/* Quitar subrayado de todos los enlaces del sitio */
a {
    text-decoration: none;
}

/* ===== HEADER ===== */
header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 200;
}

/* ===== HEADER SUPERIOR ===== */
.header-top {
    background: var(--color-primario);
    height: var(--header-top-height);
    display: flex;
    align-items: center;
}
.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 2000px;
    margin: 0 auto;
}
.logo {
    height: 32px;
    cursor: pointer;
}

/* ===== BOTÓN CTA HEADER ===== */
.btn-header {
    background: transparent;
    color: var(--color-oscuro);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.6rem 1.3rem;
    border-radius: 4px;
    border: 2px solid var(--color-oscuro);
    transition: all 0.3s ease;
    font-family: var(--fuente-principal);
}
.btn-header:hover {
    background: var(--color-oscuro);
    color: var(--color-claro);
    transform: scale(1.05);
}

/* CTA dentro del menú móvil */
.menu-cta {
    display: none;
}

/* ===== HEADER INFERIOR ===== */
.header-bottom {
    background: var(--color-oscuro);
    height: var(--header-bottom-height);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header-bottom .header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 👉 menú pegado a la derecha en escritorio */
    width: 95%;
    max-width: 2000px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
}

nav a:hover {
    color: var(--color-primario);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh; /* ocupa toda la altura de pantalla */
    margin-top: var(
        --header-height
    ); /* baja el hero para que no lo tape el header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-claro);
    overflow: hidden;
    z-index: 1;
}

/* ✅ Fondo fijo parallax */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/img/hero-bg.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--color-primario);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--color-claro);
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-claro);
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero .btn-primario {
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.hero .btn-primario:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
}

.hero-manifiesto {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 500;
    line-height: 1.5;
    margin: 0.8rem auto 1rem;
    max-width: 900px;
    color: #f2f2f2;
    opacity: 0.95;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    border: 2px solid transparent;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}
.btn-primario {
    background: var(--color-primario);
    color: var(--color-oscuro);
}
.btn-primario:hover {
    background: var(--color-oscuro);
    color: var(--color-primario);
    border-color: var(--color-primario);
}

/* ===== SERVICIOS ===== */
#servicios {
    position: relative;
    background-color: transparent;
    width: 100%;
    max-width: 100%;
    z-index: 2;
    overflow-x: clip;
    padding: 6rem 0;
}
#servicios::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: -1;
}
#servicios .container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
}

.servicio-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.servicio-card img {
    width: 100%;
    height: auto;
    display: block;
}
.servicio-card h3 {
    color: var(--color-oscuro);
    margin: 1rem 0 0.5rem;
}
.servicio-card p {
    padding: 0 1rem 0.75rem;
    color: #333;
}

.servicio-extra {
    margin-top: 0.25rem;
    border-top: 1px solid #eee;
    padding: 0.2rem 1rem 0.2rem;
    font-size: 0.9rem;
    text-align: left;
}

/* El summary ahora es un bloque completo y centrado vertical/horizontalmente */
.servicio-extra summary {
    display: flex; /* ocupa todo el ancho del bloque */
    align-items: center; /* centra verticalmente el texto dentro de su área */
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    outline: none;
    padding: 0.25rem 0; /* define bien el “alto” clickeable */
}

/* Oculta el marcador nativo */
.servicio-extra summary::-webkit-details-marker {
    display: none;
}

/* Flechita indicadora de despliegue, pegada al texto */
.servicio-extra summary::after {
    content: ' ▾';
    font-size: 0.85em;
    margin-left: 0.25rem;
}

.servicio-extra p {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.servicio-extra ul {
    margin: 0.25rem 0 0.5rem 1.2rem;
    padding: 0;
}

/* 🔧 Ajuste de la paginación del Swiper en la sección Servicios */
.servicios-swiper {
    padding-bottom: 0; /* por si Swiper le agrega padding */
}

/* Hacemos que la paginación quede DEBAJO del carrusel */
.servicios-swiper .swiper-pagination {
    position: static; /* deja de ser absoluta y se pone en el flujo normal */
    margin-top: 1.5rem; /* separa los puntitos de las tarjetas */
    text-align: center; /* centrado */
}

/* ===== SOBRE NOSOTROS ===== */
.oscuro {
    background: var(--color-oscuro);
    color: var(--color-claro);
    width: 100vw;
    position: relative;
    z-index: 2;
}
.oscuro h2 {
    color: var(--color-claro);
}
.nosotros-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 0;
}
.nosotros-content .texto {
    flex: 1 1 300px;
}
.nosotros-content .imagen {
    flex: 1 1 300px;
}
.nosotros-content img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* ===== CONTACTO ===== */
#contacto {
    position: relative;
    background: var(--color-claro);
    color: var(--color-oscuro);
    z-index: 3;
    isolation: isolate;
    padding: 6rem 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
#contacto .container {
    width: min(90%, 1400px);
    margin: 0 auto;
    text-align: center;
}
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contacto-leyenda {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}
input,
textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--fuente-principal);
}
button {
    background: var(--color-primario);
    color: var(--color-oscuro);
    border: none;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}
button:hover {
    background: var(--color-oscuro);
    color: var(--color-primario);
}

/* ===== FOOTER OPTIMIZADO ===== */
.footer {
    background-color: #000;
    color: var(--color-claro);
    border-top: 3px solid var(--color-primario);
    font-family: var(--fuente-principal);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-logo {
    width: 140px;
    margin-bottom: 0.5rem;
}

/* Items (cada línea: ícono + texto) */
.footer-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 0.95rem;
    color: #f4f4f4;
}

/* Link clickeable que envuelve icono + texto */
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f4f4f4; /* texto claro, no amarillo */
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
    opacity: 0.95;
}

/* Íconos */
.footer-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* QR */
.footer-qr {
    margin-top: 0.8rem;
}

.qr-afip {
    width: 80px;
    height: auto;
    border: none;
    border-radius: 4px;
    background: #fff;
    padding: 4px;
    transition: transform 0.25s ease;
}

.qr-afip:hover {
    transform: scale(1.07);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

/* Links legales */
.footer-legal {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    color: #aaa;
}

.footer-legal a {
    color: #aaa;
    text-decoration: none;
    margin: 0 5px;
}

.footer-legal a:hover {
    color: var(--color-primario);
    text-decoration: underline;
}

/* Pie inferior */
.footer-bottom {
    background-color: #111;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 1.5rem;
    border-top: 1px solid #222;
}

/* Íconos PNG */
.footer-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Emojis (alineados como íconos) */
.footer-emoji {
    font-size: 18px;
    line-height: 1;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 0.5rem;
    }

    .footer-logo {
        width: 120px;
    }

    .qr-afip {
        width: 65px;
        padding: 3px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ===== BOTÓN WHATSAPP ===== */
.btn-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 1000;
}
.btn-whatsapp img {
    width: 60px;
    height: 60px;
}
.btn-whatsapp:hover {
    transform: scale(1.2);
}

/* ===== PÁGINA GRACIAS ===== */
.gracias-section {
    background-color: var(--color-claro);
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
}

.gracias-card {
    background: white;
    border-radius: 10px;
    padding: 3rem 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-top: 5px solid var(--color-primario);
}

.gracias-icon {
    font-size: 3rem;
    color: var(--color-primario);
    margin-bottom: 1rem;
    animation: pop 0.5s ease;
}

@keyframes pop {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.gracias-card h1 {
    color: var(--color-oscuro);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.gracias-card p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.gracias-card .btn-primario {
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
}

/* ===== ÍCONO DE CHECK PERSONALIZADO ===== */
.check-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--color-primario); /* Amarillo */
    color: var(--color-oscuro); /* Negro */
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: pop 0.6s ease;
}

@keyframes pop {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ======== MENU RESPONSIVE (base) ======== */
.menu-toggle {
    display: none; /* se muestra sólo en móvil */
    height: 100%; /* 👉 toma la altura del .header-bottom */
    padding: 0 1rem;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    color: white;
    cursor: pointer;
    position: relative;
    top: -1px; /* pequeño ajuste óptico hacia arriba */
}

/* ======== VERSIÓN MÓVIL ======== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        margin-left: 0.5rem;
    }

    .header-bottom {
        height: var(--header-bottom-height);
    }

    .header-top-content {
        justify-content: center;
    }

    /* La barra negra solo muestra el icono (el menú se vuelve lateral) */
    .header-bottom .header-content {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Menú lateral derecho */
    nav ul {
        flex-direction: column;
        position: fixed;
        top: var(--header-height); /* 👈 debajo del header fijo */
        right: -100%;
        width: 220px;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-oscuro);
        padding-top: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.6);
    }

    nav ul.show {
        right: 0;
    }

    nav ul li {
        text-align: left;
        padding-left: 2rem;
    }

    nav a {
        font-size: 1rem;
        color: white;
        text-decoration: none;
    }

    /* Ocultar CTA del header amarillo en móvil */
    .header-top .btn-header {
        display: none;
    }

    /* CTA dentro del menú móvil */
    .menu-cta {
        display: flex;
        justify-content: center;
        padding-left: 0;
        margin-top: 1rem;
    }

    .menu-cta .btn-header {
        border: 2px solid var(--color-claro);
        color: var(--color-claro);
        background: transparent;
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
        text-align: center;
        width: auto;
    }

    .menu-cta .btn-header:hover {
        background: var(--color-claro);
        color: var(--color-oscuro);
        transform: scale(1.05);
    }
}

/* ======== VERSIÓN ESCRITORIO ======== */
@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* ícono oculto en escritorio */
    }

    nav ul {
        position: static;
        flex-direction: row;
        height: auto;
        background: none;
        gap: 2rem;
    }

    .menu-cta {
        display: none !important;
    }

    .header-top .btn-header {
        display: inline-block;
    }
}
