/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    z-index: 1000;
    background: transparent;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 60px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 85px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.menu-icon {
    position: absolute;
    left: 40px;
    top: 30px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.menu-icon:hover {
    color: #ff6a00;
}

.nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 70vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    transition: top 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu.active {
    top: 0;
}

.nav-columna {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-links {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    transition-delay: calc(0.05s * var(--i, 0));
    border-bottom: none;
}

.nav-menu.active .nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.nav-item {
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: none;
    transition: color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: #ff6a00;
}

.menu-footer {
    margin-top: 40px;
    text-align: left;
}

.menu-social {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.menu-social a {
    color: #888;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.menu-social a:hover {
    color: #ff6a00;
}

.menu-carrusel {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.menu-carrusel::-webkit-scrollbar {
    height: 4px;
}

.menu-carrusel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.menu-carrusel::-webkit-scrollbar-thumb {
    background: #ff6a00;
    border-radius: 4px;
}

.carrusel-track {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 40px;
}

.carrusel-item {
    flex-shrink: 0;
    width: 160px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(0.7);
    transform: scale(0.92);
}

.carrusel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carrusel-item .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px 10px;
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carrusel-item:hover {
    filter: brightness(1);
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.carrusel-item:hover img {
    transform: scale(1.05);
}

.carrusel-item:hover .item-overlay {
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.carrusel-track:hover .carrusel-item:not(:hover) {
    filter: brightness(0.5);
    transform: scale(0.88);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close:hover {
    color: #ff6a00;
    background: white;
}

.subcategoria-cerrar {
    position: fixed;
    top: 30px;
    right: 40px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1501;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.subcategoria-cerrar.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.subcategoria-cerrar:hover {
    background: #ff6a00;
    transform: rotate(90deg);
    border-color: #ff6a00;
}

.slideshow-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    padding: 20px;
}

.hero-texto h1 {
    font-family: "Oooh Baby", cursive;
    font-size: 64px;
    margin-bottom: 15px;
}

.hero-texto p {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
}

/* ========== CONTENEDOR CONTACTO ========== */
.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 8%;
    background: white;
}

.contacto-encabezado {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.contacto-titulo {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.contacto-titulo-cursiva {
    display: inline-block;
    font-family: 'Oooh Baby', cursive;
    font-weight: 400;
    font-size: 46px;
    color: #ff6a00;
    line-height: 1;
    vertical-align: middle;
}

.contacto-titulo-acento {
    color: #ff6a00;
}

.contacto-subtexto {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* ========== FORMULARIO CENTRADO (Opción 3 — Minimal flotante) ========== */
.contacto-form-wrapper {
    max-width: 620px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 55px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.form-campo {
    position: relative;
}

.form-campo input,
.form-campo textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-campo label {
    position: absolute;
    left: 0;
    top: 14px;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-campo input:focus,
.form-campo textarea:focus {
    border-bottom-color: #ff6a00;
}

.form-campo input:focus + label,
.form-campo input:valid + label,
.form-campo textarea:focus + label,
.form-campo textarea:valid + label {
    top: -12px;
    font-size: 10px;
    color: #ff6a00;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-btn {
    background: transparent;
    color: #ff6a00;
    border: 2px solid #ff6a00;
    padding: 14px 32px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    align-self: flex-start;
    border-radius: 50px;
    transition: 0.3s;
    margin-top: 10px;
}

.form-btn:hover {
    background: #ff6a00;
    color: white;
}

.form-btn svg {
    transition: transform 0.3s ease;
}

.form-btn:hover svg {
    transform: translateX(5px);
}

/* Línea de contacto secundario debajo del formulario */
.contacto-secundario {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: #999;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.contacto-secundario a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-secundario a:hover {
    color: #ff6a00;
}

.contacto-secundario .separador {
    color: #ddd;
    font-size: 14px;
}

/* ========== BENEFICIOS ========== */
.beneficios-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 8% 80px;
    background: white;
}

.beneficio-tarjeta {
    background: #fafafa;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.beneficio-tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.beneficio-tarjeta i {
    font-size: 30px;
    color: #ff6a00;
    margin-bottom: 15px;
}

.beneficio-tarjeta h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.beneficio-tarjeta p {
    font-family: 'EB Garamond', serif;
    font-size: 15px;
    line-height: 1.6;
    color: #888;
    margin: 0;
}

.footer {
    background: transparent;
    padding: 40px 8%;
    font-family: 'Raleway', sans-serif;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-contenido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright p {
    color: #666;
    font-size: 13px;
    letter-spacing: 1px;
    margin: 0;
}

.footer-redes {
    display: flex;
    gap: 25px;
}

.footer-redes a {
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-redes a:hover {
    color: #ff6a00;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE CONTACTO ========== */

@media (max-width: 992px) {
    .contacto-container {
        padding: 60px 5%;
    }

    .contacto-encabezado {
        margin-bottom: 35px;
    }

    .contacto-titulo {
        font-size: 28px;
    }

    .contacto-titulo-cursiva {
        font-size: 38px;
    }

    .contacto-subtexto {
        font-size: 15px;
    }

    .contacto-form-wrapper {
        padding: 45px 40px;
    }
}

@media (max-width: 768px) {
    .slideshow-hero {
        min-height: 350px;
    }

    .navbar {
        padding: 20px 25px;
    }

    .logo {
        margin-top: 40px;
    }

    .logo img {
        width: 55px;
    }

    .menu-icon {
        left: 20px;
        font-size: 24px;
    }

    .nav-menu {
        flex-direction: column;
        height: auto;
        min-height: 80vh;
        padding: 80px 30px 40px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .nav-columna {
        width: 100%;
        flex: none;
    }

    .nav-links {
        text-align: center;
        width: 100%;
    }

    .nav-links li {
        margin-bottom: 20px;
    }

    .nav-item {
        font-size: 20px;
    }

    .menu-footer {
        text-align: center;
        margin-top: 30px;
        width: 100%;
    }

    .menu-social {
        justify-content: center;
    }

    .menu-carrusel {
        width: 100%;
        padding-left: 0;
        margin-top: 20px;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .carrusel-track {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 10px 15px 15px 15px;
        width: max-content;
    }

    .carrusel-item {
        flex-shrink: 0;
        width: 110px;
        height: 145px;
        transform: none;
    }

    .carrusel-item .item-overlay {
        font-size: 10px;
        padding: 8px 5px;
    }

    .menu-close {
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .hero-texto h1 {
        font-size: 42px;
    }

    .hero-texto p {
        font-size: 14px;
    }

    .contacto-container {
        padding: 40px 5%;
    }

    .contacto-encabezado {
        margin-bottom: 25px;
    }

    .contacto-titulo {
        font-size: 22px;
    }

    .contacto-titulo-cursiva {
        font-size: 30px;
    }

    .contacto-subtexto {
        font-size: 13px;
    }

    .contacto-form-wrapper {
        padding: 35px 25px;
        border-radius: 18px;
    }

    .contacto-form {
        gap: 26px;
    }

    .form-campo input,
    .form-campo textarea {
        font-size: 14px;
        padding: 12px 0;
    }

    .form-campo label {
        font-size: 14px;
        top: 12px;
    }

    .form-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .contacto-secundario {
        font-size: 11px;
        gap: 8px;
        margin-top: 30px;
        padding-top: 22px;
    }

    .beneficios-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 4% 50px;
    }

    .beneficio-tarjeta:last-child {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    .beneficio-tarjeta {
        padding: 16px 10px;
        border-radius: 14px;
    }

    .beneficio-tarjeta i {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .beneficio-tarjeta h3 {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .beneficio-tarjeta p {
        font-size: 10px;
        line-height: 1.4;
    }

    .footer {
        padding: 30px 5%;
    }

    .footer-contenido {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-redes {
        gap: 30px;
    }

    .footer-redes a {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 20px;
    }

    .logo {
        margin-top: 30px;
    }

    .logo img {
        width: 45px;
    }

    .menu-icon {
        left: 15px;
        font-size: 22px;
    }

    .nav-item {
        font-size: 16px;
    }

    .carrusel-track {
        padding: 10px 20px 20px 20px;
        gap: 14px;
    }

    .carrusel-item {
        width: 95px;
        height: 125px;
    }

    .carrusel-item .item-overlay {
        font-size: 9px;
        padding: 6px 4px;
    }

    .hero-texto h1 {
        font-size: 32px;
    }

    .hero-texto p {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .contacto-container {
        padding: 30px 4%;
    }

    .contacto-titulo {
        font-size: 19px;
    }

    .contacto-titulo-cursiva {
        font-size: 25px;
    }

    .contacto-subtexto {
        font-size: 12px;
    }

    .contacto-form-wrapper {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .contacto-form {
        gap: 22px;
    }

    .form-campo input,
    .form-campo textarea {
        font-size: 13px;
    }

    .form-campo label {
        font-size: 13px;
    }

    .form-campo input:focus + label,
    .form-campo input:valid + label,
    .form-campo textarea:focus + label,
    .form-campo textarea:valid + label {
        font-size: 9px;
    }

    .form-btn {
        font-size: 13px;
        padding: 11px 20px;
    }

    .contacto-secundario {
        font-size: 10px;
        gap: 6px;
    }

    .contacto-secundario .separador {
        display: none;
    }

    .contacto-secundario a {
        display: block;
        width: 100%;
    }

    .beneficios-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 3% 40px;
    }

    .beneficio-tarjeta {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .beneficio-tarjeta i {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .beneficio-tarjeta h3 {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .beneficio-tarjeta p {
        font-size: 9px;
        line-height: 1.3;
    }
}

/* ===== ICONO DE MENÚ SIN CÍRCULO ===== */
.menu-icon {
    color: white;
    transition: all 0.3s ease;
    font-size: 28px;
    width: auto;
    height: auto;
    background: transparent !important;
    backdrop-filter: none !important;
}

.nav-menu.active ~ .menu-icon,
body.menu-open .menu-icon,
.navbar.scrolled .menu-icon {
    color: #1a1a1a !important;
}

.menu-icon:hover {
    color: #ff6a00 !important;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .menu-icon {
        font-size: 24px;
        background: transparent !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .logo {
        margin-top: 40px;
    }

    .logo img {
        width: 55px;
    }

    .menu-icon {
        left: 20px;
        font-size: 24px;
    }
}
/* ===== FALLBACK DE ESPACIADO PARA iOS 12 / SAFARI ANTIGUO ===== */
/* Estos navegadores no soportan "gap" en flexbox (llego en Safari 14.1 / iOS 14.5).
   Sin este fallback, los enlaces del menu, el carrusel y los iconos del footer
   se ven pegados entre si en iPad Air y otros dispositivos con iOS 12. */
@supports not (gap: 1px) {
    .menu-social a:not(:last-child) {
        margin-right: 24px;
    }
    .carrusel-track .carrusel-item:not(:last-child) {
        margin-right: 20px;
    }
    .footer-redes a:not(:last-child) {
        margin-right: 25px;
    }
}