/**
 * EWT OnePage Theme - Estilos Personalizados
 */

/* Animaciones */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Logo */
.custom-logo-link {
    display: inline-block;
}
.custom-logo {
    max-height: 50px;
    width: auto;
    height: auto;
}

/* Menú */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu li {
    display: inline-block;
}

/* Modal overlay (futuro) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Alpine.js */
[x-cloak] {
    display: none !important;
}

/* Accesibilidad */
a:focus,
button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Imágenes */
img[loading="lazy"] {
    background-color: #f3f4f6;
}
img {
    max-width: 100%;
    height: auto;
}

/* Font smoothing */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container custom */
.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Sección: Planeación de Viajes
   Aspect-ratio contenedor: 1179/696
   Gap: 28px
   Bloques cuadrados (→círculo en desktop): 2, 3, 4

   Cálculos con gap=28px:
   Cuadrado        = 25cqw - 21px
   Sobrante col1/3 = 34.0331cqw - 7px
   Sobrante col4   = 17.0165cqw - 17.5px
   Col2 mitades    = 29.5165cqw - 14px
   ============================================ */

.ewt-planeacion .planeacion-grid {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    aspect-ratio: 1179 / 696;
    gap: 28px;
}

/* Fallback vw para Firefox */
.ewt-planeacion .bloque-1,
.ewt-planeacion .bloque-5 {
    width: 25%;
    flex: 0 0 calc(25.9746vw - 14px);
}
.ewt-planeacion .bloque-2,
.ewt-planeacion .bloque-3,
.ewt-planeacion .bloque-4 {
    flex: 0 0 calc(22vw - 21px);
    width: calc(22vw - 21px);
}
.ewt-planeacion .bloque-0,
.ewt-planeacion .bloque-6 {
    width: 25%;
    flex: 0 0 calc(29.9491vw - 7px);
}
.ewt-planeacion .bloque-7,
.ewt-planeacion .bloque-8 {
    width: 25%;
    flex: 0 0 calc(14.9746vw - 17.5px);
}

/* cqw exacto para Chrome / Edge / Safari */
@supports (width: 1cqw) {
    .ewt-planeacion .bloque-2,
    .ewt-planeacion .bloque-3,
    .ewt-planeacion .bloque-4 {
        flex: 0 0 calc(25cqw - 21px);
        width: calc(25cqw - 21px);
    }
    .ewt-planeacion .bloque-1,
    .ewt-planeacion .bloque-5 {
        flex: 0 0 calc(29.5165cqw - 14px);
        width: 25%;
    }
    .ewt-planeacion .bloque-0,
    .ewt-planeacion .bloque-6 {
        flex: 0 0 calc(34.0331cqw - 7px);
        width: 25%;
    }
    .ewt-planeacion .bloque-7,
    .ewt-planeacion .bloque-8 {
        flex: 0 0 calc(17.0165cqw - 17.5px);
        width: 25%;
    }
}

/* Imagen de fondo */
.ewt-planeacion .bloque-img {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.ewt-planeacion .bloque-img .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.ewt-planeacion .bloque-img .content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

/* Formas especiales solo en desktop */
@media (min-width: 1024px) {
    /* bloque-5: forma orgánica con border-radius 33% */
    .ewt-planeacion .ewt-rounded-blob {
        border-radius: 33%;
    }
    /* bloque-8: cápsula — redondeado lados izquierdo y derecho */
    .ewt-planeacion .ewt-rounded-pill {
        border-radius: 999px;
    }
}

/* Mobile: apilado simple */
@media (max-width: 1023px) {
    .ewt-planeacion .planeacion-grid {
        flex-wrap: nowrap;
        aspect-ratio: unset;
        container-type: normal;
        gap: 12px;
    }
    .ewt-planeacion [class^="bloque-"] {
        width: 100% !important;
        flex: 0 0 auto !important;
        border-radius: 0.125rem !important;
        min-height: 220px;
    }
    .ewt-planeacion .bloque-0 {
        min-height: auto;
    }
}

/* Print */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }
}
