html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #0b2638;
}

.navbar {
    background-color: #0b2638;
    display: flex;
    flex-direction: row;       
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 500;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-toggle.activo span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.activo span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.activo span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.navbar a {
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    white-space: nowrap;
}

.navbar a:hover {
    background-color: #6569685d;
}

@media (max-width: 760px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0 16px;
    }

    .navbar-logo {
        height: 34px;
    }

    .navbar-toggle {
        display: flex;
        position: relative;
        z-index: 700;
    }

    .navbar ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        margin: 0;
        flex: none;
        background: linear-gradient(160deg, #0d6e80 0%, #146d7a 55%, #1e9494 100%);
        border-top: none;
        z-index: 600;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
    }

    .navbar ul.abierto {
        transform: translateX(0);
        visibility: visible;
    }

    .navbar a {
        width: auto;
        text-align: center;
        padding: 16px 36px;
        border-top: none;
        white-space: normal;
        font-size: 20px;
        border-radius: 14px;
        opacity: 0;
        transform: translateY(18px);
    }

    .navbar ul.abierto a {
        animation: navLinkIn 0.45s ease forwards;
    }

    .navbar ul.abierto a:nth-child(1) { animation-delay: 0.10s; }
    .navbar ul.abierto a:nth-child(2) { animation-delay: 0.18s; }
    .navbar ul.abierto a:nth-child(3) { animation-delay: 0.26s; }
    .navbar ul.abierto a:nth-child(4) { animation-delay: 0.34s; }

    .navbar a:first-child {
        border-top: none;
    }

    .navbar a:hover {
        background-color: rgba(255, 255, 255, 0.14);
    }
}

@keyframes navLinkIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s ease;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: block;
}

.hero-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.hero-flecha:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-flecha-izq {
    left: 16px;
}

.hero-flecha-der {
    right: 16px;
}

.hero-puntos {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-punto {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-punto.activo {
    background: #ffffff;
    transform: scale(1.25);
}

@media (max-width: 480px) {
    .hero-flecha {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .hero-flecha-izq {
        left: 8px;
    }

    .hero-flecha-der {
        right: 8px;
    }

    .hero-puntos {
        bottom: 8px;
    }
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 40px 20px;
}

.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 32px 24px;
    width: 260px;
    text-align: center;
    font-family: Poppins, sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 20px;
    color: #0d6e80;
    margin: 0 0 12px 0;
}

.card-text {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
    margin: 0;
}

#inicio,
#servicios,
#mantenimiento,
#faq,
#contacto {
    scroll-margin-top: 70px;
}

.cta {
    text-align: center;
    padding: 60px 20px 80px;
    font-family: Poppins, sans-serif;
}

.cta-title {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 24px 0;
}

.cta-button {
    display: inline-block;
    background-color: #11d690;
    color: #0d3d1a;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #02ff23;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 22px;
    }
}

.cta-button {
    border: none;
    cursor: pointer;
    font-family: Poppins, sans-serif;
}

.cta-aviso {
    color: #cfe9e9;
    font-size: 14px;
    line-height: 1.5;
    max-width: 560px;
    margin: 0 auto 32px;
}

.proceso {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0;
}

.proceso-paso {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 14px;
    position: relative;
}


.proceso-numero {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #11d690;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.proceso-titulo {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.proceso-texto {
    color: #cfe9e9;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 900px) {
    .proceso {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .proceso-paso {
        width: 100%;
        max-width: 320px;
    }

}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.activo {
    display: flex;
}

.modal-box {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px;
    position: relative;
    font-family: Poppins, sans-serif;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #4a4a4a;
    cursor: pointer;
}

.form-titulo {
    color: #0d6e80;
    margin: 0 0 4px 0;
    font-size: 24px;
}

.form-subtitulo {
    color: #4a4a4a;
    margin: 0 0 24px 0;
    font-size: 14px;
}

.form-inicio fieldset {
    border: none;
    border-top: 2px solid #e0f2f2;
    padding: 16px 0 8px 0;
    margin: 0 0 8px 0;
}

.form-inicio legend {
    color: #0d6e80;
    font-weight: 600;
    font-size: 15px;
    padding: 0;
    margin-bottom: 10px;
}

.form-inicio label {
    display: block;
    font-size: 13px;
    color: #333333;
    margin-bottom: 12px;
}

.form-inicio label.check,
.form-inicio label.radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-inicio label.check-otro,
.form-inicio label.radio-otro {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.form-inicio input[type="text"],
.form-inicio input[type="email"],
.form-inicio input[type="tel"],
.form-inicio input[type="date"],
.form-inicio textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
}

.form-inicio label.check-otro input[type="text"],
.form-inicio label.radio-otro input[type="text"],
.form-inicio label.radio-otro input[type="date"] {
    width: auto;
    flex: 1;
    margin-top: 0;
}

.form-inicio input[type="checkbox"],
.form-inicio input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form-pregunta {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    margin: 4px 0 8px 0;
}

.form-nota {
    font-size: 12px;
    color: #777777;
    font-style: italic;
    margin: 4px 0 12px 0;
}

.form-submit {
    display: block;
    width: 100%;
    background-color: #35dd14;
    color: #0d3d1a;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    padding: 14px;
    margin-top: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-submit:hover {
    background-color: #2ec00f;
}

/* ---------- Formulario por pasos ---------- */
[hidden] {
    display: none !important;
}

.modal-box {
    padding-top: 0;
    /* Sin padding abajo: si no, la barra "sticky" queda flotando 32px arriba
       del borde y se ven las preguntas por debajo de los botones. */
    padding-bottom: 0;
    max-height: 90vh;
    max-height: 90dvh;
    overscroll-behavior: contain;
}

.modal-close {
    z-index: 2;
}

.form-header {
    padding: 28px 0 8px 0;
}

.progreso-texto {
    font-size: 12px;
    font-weight: 600;
    color: #4a4a4a;
    margin: 0 0 6px 0;
}

.progreso-pista {
    height: 6px;
    background-color: #e0f2f2;
    border-radius: 3px;
    overflow: hidden;
}

.progreso-barra {
    height: 100%;
    width: 0;
    background-color: #1e9494;
    border-radius: 3px;
    transition: width 0.25s ease;
}

.form-aviso {
    font-size: 12px;
    color: #4a4a4a;
    background-color: #e0f2f2;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 0 0 12px 0;
}

.form-aviso button {
    background: none;
    border: none;
    padding: 0;
    color: #0d6e80;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.form-inicio .paso {
    display: none;
    border-top: none;
    padding-top: 8px;
}

.form-inicio .paso.activo {
    display: block;
}

.form-inicio .paso legend {
    font-size: 18px;
    margin-bottom: 14px;
}

.req {
    color: #d93025;
}

.form-inicio input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
}

.form-nav {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 12px;
    background-color: #ffffff;
    border-top: 2px solid #e0f2f2;
    margin: 12px -28px 0;
    padding: 14px 28px calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 3;
}

.form-nav button {
    flex: 1;
    border-radius: 8px;
    padding: 14px;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.form-atras {
    background-color: #ffffff;
    color: #0d6e80;
    border: 2px solid #1e9494;
}

.form-nav .form-submit {
    margin-top: 0;
}

.form-nav .form-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-siguiente {
    background-color: #1e9494;
    color: #ffffff;
    border: none;
}

.form-siguiente:hover {
    background-color: #0d6e80;
}

/* ---------- Footer / redes sociales ---------- */
.footer {
    text-align: center;
    background-color: #0a5866;
    padding: 48px 20px;
    font-family: Poppins, sans-serif;
}

.footer-titulo {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 10px 0;
}

.footer-texto {
    color: #cfe9e9;
    font-size: 14px;
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.footer-redes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-icono {
    width: 24px;
    height: 24px;
    filter: invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.footer-redes a:hover .footer-icono {
    opacity: 1;
    transform: scale(1.1);
}

.footer-contacto-item {
    width: auto !important;
    height: auto !important;
    padding: 10px 18px;
    border-radius: 999px !important;
    gap: 10px;
    text-decoration: none;
}

.footer-contacto-item .footer-icono {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-contacto-texto {
    color: #e6f6f8;
    font-size: 14px;
    white-space: nowrap;
}

.footer-copy {
    color: #7fb8bd;
    font-size: 12px;
    margin: 0;
}

/* ---------- Servicios y precios ---------- */
.servicios {
    text-align: center;
    padding: 60px 20px 40px;
    font-family: Poppins, sans-serif;
}

.servicios-titulo {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 12px 0;
}

.servicios-subtitulo {
    color: #cfe9e9;
    font-size: 14px;
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 40px;
}

.planes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.plan {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 36px 24px 28px;
    width: 300px;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: Poppins, sans-serif;
}

.plan-destacado {
    border: 2px solid #11d690;
}

.plan-mantenimiento {
    border: 2px dashed #1e9494;
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0c14b;
    color: #4a3200;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    text-align: center;
}

.plan-nombre {
    color: #0d6e80;
    font-size: 20px;
    margin: 8px 0 10px 0;
}

.plan-descripcion {
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.plan-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    flex: 1;
}

.plan-lista li {
    color: #333333;
    font-size: 13px;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}

.plan-lista li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1e9494;
    font-weight: 700;
}

.plan-demora {
    color: #777777;
    font-size: 12px;
    font-style: italic;
    margin: 0 0 16px 0;
}

.plan-precio {
    display: inline-block;
    align-self: flex-start;
    background-color: #11d690;
    color: #0d3d1a;
    font-weight: 700;
    font-size: 22px;
    padding: 10px 20px;
    border-radius: 8px;
}

.plan-precio-mensual small {
    font-size: 13px;
    font-weight: 600;
}

.servicios-nota {
    color: #cfe9e9;
    font-size: 12px;
    line-height: 1.5;
    max-width: 640px;
    margin: 32px auto 0;
}

@media (max-width: 480px) {
    .servicios-titulo {
        font-size: 22px;
    }

    .plan {
        width: 100%;
        max-width: 340px;
    }
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
    padding: 20px 20px 80px;
    font-family: Poppins, sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

.faq-titulo {
    color: #ffffff;
    font-size: 28px;
    text-align: center;
    margin: 0 0 32px 0;
}

.faq-categoria {
    color: #11d690;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 32px 0 12px 0;
}

.faq-grupo:first-of-type .faq-categoria {
    margin-top: 0;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 4px 20px;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #0d6e80;
    font-size: 14px;
    padding: 14px 30px 14px 0;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: #1e9494;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    color: #4a4a4a;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

@media (max-width: 480px) {
    .faq-titulo {
        font-size: 22px;
    }
}

/* ---------- Animaciones al hacer scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .navbar ul,
    .navbar a {
        transition: none !important;
        animation: none !important;
    }

    .navbar ul.abierto {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Botones flotantes (Instagram) ---------- */
.flotantes-contacto {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flotante {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flotante:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.flotante img {
    width: 26px;
    height: 26px;
    filter: invert(1);
}

.flotante-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

@media (max-width: 480px) {
    .flotantes-contacto {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }

    .flotante {
        width: 48px;
        height: 48px;
    }

    .flotante img {
        width: 22px;
        height: 22px;
    }
}

/* ---------- Páginas legales (Política de Privacidad / Términos de Uso) ---------- */
.legal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background-color: #0b2638;
}

.legal-header img {
    height: 40px;
    width: auto;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 24px 60px;
    background-color: #0b2638;
    color: #cfe9e9;
    font-family: Poppins, sans-serif;
    line-height: 1.7;
}

.legal-content h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 4px;
}

.legal-content .legal-actualizado {
    color: #7fb8bd;
    font-size: 13px;
    margin-bottom: 32px;
}

.legal-content h2 {
    color: #11d690;
    font-size: 19px;
    margin-top: 34px;
    margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
    font-size: 15px;
    color: #e6f6f8;
}

.legal-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.legal-content a {
    color: #11d690;
}

.legal-volver {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 8px;
    color: #11d690;
    text-decoration: none;
    font-size: 14px;
}

.legal-volver:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-box {
        padding-left: 18px;
        padding-right: 18px;
    }

    .form-nav {
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ---------- Paso "¿Qué servicio te interesa?" ---------- */
.form-inicio label.opcion-servicio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 2px solid #e0f2f2;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-inicio label.opcion-servicio:hover {
    border-color: #1e9494;
}

.form-inicio label.opcion-servicio:has(input:checked) {
    border-color: #1e9494;
    background-color: #eef8f8;
}

.form-inicio label.opcion-servicio input[type="radio"] {
    margin-top: 3px;
}

.form-inicio label.opcion-servicio b {
    display: block;
    font-size: 15px;
    color: #0d6e80;
}

.form-inicio label.opcion-servicio small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #555555;
}

/* ---------- Carrusel de Instagram ---------- */
.insta {
    padding: 20px 20px 80px;
    font-family: Poppins, sans-serif;
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.insta-titulo {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.insta-sub {
    color: #cfe9e9;
    font-size: 14px;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto 28px;
}

.insta-carrusel {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

.insta-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.insta-track::-webkit-scrollbar {
    display: none;
}

.insta-post {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background-color: #0a5866;
    text-decoration: none;
}

.insta-post img.insta-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.insta-post:hover img.insta-foto,
.insta-post:focus-visible img.insta-foto {
    transform: scale(1.05);
}

.insta-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    filter: invert(1);
}

.insta-texto {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}

.insta-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.insta-flecha:hover {
    background: rgba(0, 0, 0, 0.7);
}

.insta-flecha-izq { left: 8px; }
.insta-flecha-der { right: 8px; }

.insta-puntos {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 4px;
}

.insta-punto {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.insta-punto.activo {
    background: #11d690;
}

.insta-btn {
    display: inline-block;
    margin-top: 24px;
    background-color: #11d690;
    color: #0d3d1a;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.insta-btn:hover {
    background-color: #02ff23;
    transform: translateY(-2px);
}

/* En pantallas anchas se ven las 3 publicaciones juntas, sin flechas ni puntos */
@media (min-width: 900px) {
    .insta-carrusel {
        max-width: none;
    }

    .insta-track {
        overflow: visible;
        justify-content: center;
    }

    .insta-post {
        flex: 1 1 0;
        max-width: 360px;
    }

    .insta-flecha,
    .insta-puntos {
        display: none;
    }
}

@media (max-width: 480px) {
    .insta-titulo {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .insta-post img.insta-foto,
    .insta-btn {
        transition: none;
    }
}

/* ---------- Texto solo para lectores de pantalla y buscadores ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    max-width: 660px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #0b2638;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color: #cfe9e9;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-banner p {
    flex: 1 1 280px;
    margin: 0;
}

.cookie-banner a {
    color: #11d690;
}

.cookie-acciones {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.cookie-banner button {
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #ffffff;
}

.cookie-banner button.cookie-aceptar {
    background: #11d690;
    border-color: #11d690;
    color: #0d3d1a;
}

.footer-cookies {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #cfe9e9;
    cursor: pointer;
}

.footer-cookies:hover {
    text-decoration: underline;
}
