/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /*background-color: #f5f5f5;*/
    overflow-x: hidden;
padding:0 25px;
}

/* Container Principal */
.container {
    display: flex;
    align-items: stretch;
    /*min-height: 100vh;*/
    width: 100%;
    overflow-x: hidden;
 border-radius: 30px;
  box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}

/* Panel Izquierdo Decorativo */
.left-panel {
    width: 35%;
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 100%);
    position: relative;
    overflow: hidden;
}

.decorative-content {
    width: 100%;
    height: 100%;
    background-image: url('https://image.news.hellocanaryislands.com/lib/fe3211737364047e761677/m/1/64d697cb-2163-4505-a296-36746147f202.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Panel Derecho - Contenido */
.right-panel {
    width: 65%;
    /*min-height: 100vh;*/
    background-color: #F8EDE9;
    padding: 60px 80px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.form-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Pasos del formulario */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Títulos */
.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D94A3D;
    margin-bottom: 16px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.subtitle {
    font-size: 1.8rem;
    color: #2D2D2D;
    margin-bottom: 50px;
    font-weight: 400;
}

/* Grid de Islas */
.islands-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
}

/* Tarjetas de Isla */
.island-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
}

/* Hover effect movido a media query (hover: hover) más abajo */

.island-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* Overlay gradient en la imagen */
.island-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    border-radius: 16px;
}

/* Nombre de la isla */
.island-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Estado Seleccionado - Imagen de Selección */
.island-card.selected {
    position: relative;
}

.island-card.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://image.news.hellocanaryislands.com/lib/fe3211737364047e761677/m/1/4c2de990-a457-46fd-a79c-0e04b036fffd.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    animation: fadeInSelection 0.3s ease-out;
    pointer-events: none;
}

@keyframes fadeInSelection {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   PASO 2: TIPO DE VIAJE
   ======================================== */

/* Grid de Tipos de Viaje */
.travel-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
}

/* Última tarjeta ocupa solo una columna y se centra si está sola en la fila */
/* .travel-types-grid .travel-card:last-child:nth-child(5) {
    grid-column: 1 / 2;
} */

/* Tarjetas de Tipo de Viaje */
.travel-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hover effect movido a media query (hover: hover) más abajo */

/* Icono del tipo de viaje */
.travel-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.travel-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Nombre del tipo de viaje */
.travel-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2D2D2D;
    text-align: center;
}

/* Estado Seleccionado - Tarjeta de Viaje */
.travel-card.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://image.news.hellocanaryislands.com/lib/fe3211737364047e761677/m/1/4c2de990-a457-46fd-a79c-0e04b036fffd.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    animation: fadeInSelection 0.3s ease-out;
    pointer-events: none;
}

/* ========================================
   PASO 3: ACTIVIDADES
   ======================================== */

/* Grid de Actividades */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
}

/* Tarjetas de Actividades */
.activity-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hover effect movido a media query (hover: hover) más abajo */

/* Icono de la actividad */
.activity-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.activity-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Nombre de la actividad */
.activity-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2D2D2D;
    text-align: center;
}

/* Estado Seleccionado - Tarjeta de Actividad */
.activity-card.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://image.news.hellocanaryislands.com/lib/fe3211737364047e761677/m/1/4c2de990-a457-46fd-a79c-0e04b036fffd.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    animation: fadeInSelection 0.3s ease-out;
    pointer-events: none;
}

/* ========================================
   PASO 4: TIPO DE ALOJAMIENTO
   ======================================== */

/* Grid de Alojamiento */
.accommodation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    max-width: 600px;
    width: 100%;
}

/* Tarjetas de Alojamiento */
.accommodation-card {
    background-color: white;
    border-radius: 16px;
    padding: 50px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hover effect movido a media query (hover: hover) más abajo */

/* Icono del alojamiento */
.accommodation-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.accommodation-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Nombre del alojamiento */
.accommodation-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D2D2D;
    text-align: center;
}

/* Estado Seleccionado - Tarjeta de Alojamiento */
.accommodation-card.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://image.news.hellocanaryislands.com/lib/fe3211737364047e761677/m/1/4c2de990-a457-46fd-a79c-0e04b036fffd.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    animation: fadeInSelection 0.3s ease-out;
    pointer-events: none;
}

/* ========================================
   PASO 5: FRECUENCIA DE VISITAS
   ======================================== */

/* Grid de Frecuencia */
.frequency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
}

/* Tarjetas de Frecuencia */
.frequency-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hover effect movido a media query (hover: hover) más abajo */

/* Icono de frecuencia */
.frequency-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.frequency-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Nombre de frecuencia */
.frequency-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D2D2D;
    text-align: center;
}

/* Estado Seleccionado - Tarjeta de Frecuencia */
.frequency-card.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://image.news.hellocanaryislands.com/lib/fe3211737364047e761677/m/1/4c2de990-a457-46fd-a79c-0e04b036fffd.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    animation: fadeInSelection 0.3s ease-out;
    pointer-events: none;
}

/* ========================================
   PASO 6: DATOS PERSONALES
   ======================================== */

.personal-data-form {
    margin-bottom: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #D94A3D;
    box-shadow: 0 0 0 3px rgba(217, 74, 61, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.legal-text {
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.legal-text p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.legal-text a {
    color: #D94A3D;
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex: 0 0 20px;
}

.checkbox-group label {
    font-size: 0.75rem;
    color: #666;
    cursor: pointer;
}

.legal-text-small {
    padding: 20px;
    /* margin-bottom: 30px; */
}

.legal-text-small p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.legal-text-small a {
    color: #D94A3D;
    text-decoration: underline;
}

/* Indicadores de Progreso */
.progress-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.indicator {
    width: 40px;
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #D94A3D;
    width: 50px;
}

/* Botones */
.next-button,
.prev-button {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.next-button {
    background-color: #D94A3D;
    color: white;
    margin-left: auto;
}

/* Hover effect movido a media query (hover: hover) más abajo */

.next-button:active:not(.disabled) {
    transform: translateY(0);
}

/* Estado Desactivado */
.next-button.disabled {
    background-color: #F4C8C8;
    cursor: not-allowed;
    opacity: 0.7;
}

.next-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Botón Anterior */
.prev-button {
    background-color: transparent;
    color: #D94A3D;
    border: 2px solid #D94A3D;
}

/* Hover effect movido a media query (hover: hover) más abajo */

/* Navegación con múltiples botones - Mejorado con flexbox */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Íconos SVG en botones */
.next-button svg,
.prev-button svg {
    width: 20px;
    height: 20px;
}

/* Responsive - Ajustes para tablet */
@media (max-width: 1800px) {
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1200px) {
    .islands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .right-panel {
        padding: 40px 50px;
    }

    /* Asegurar que los grids no excedan el ancho */
    .travel-types-grid,
    .activities-grid,
    .accommodation-grid,
    .frequency-grid {
        width: 100%;
    }

    /* Reducir grids a 3 columnas */
    .travel-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        min-height: 200px;
    }

    .decorative-content {
        height: 200px;
        background-position: 0px -200px;
    }

    .right-panel {
        width: 100%;
        padding: 30px 20px;
    }

    .islands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .main-title {
        font-size: 1.875rem;
    }

    .subtitle {
        font-size: 1.6rem;
    }
}

/* Clearfix para floats */
.form-step::after {
    content: '';
    display: table;
    clear: both;
}

/* ========================================
   PASO 7: CONFIRMACIÓN
   ======================================== */

.confirmation-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.confirmation-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 160px;
    margin: 0 auto 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.confirmation-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D94A3D;
    margin-bottom: 30px;
    line-height: 1.2;
}

.confirmation-text {
    font-size: 1.125rem;
    color: #2D2D2D;
    margin-bottom: 15px;
    line-height: 1.6;
}

.confirmation-warning {
    font-size: 1.125rem;
    color: #2D2D2D;
    font-weight: 600;
    margin: 25px 0;
    line-height: 1.6;
}

.confirmation-small {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.confirmation-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-top: 40px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.confirmation-luck {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .confirmation-icon {
        width: 120px;
        height: 120px;
    }

    .confirmation-icon svg {
        width: 80px;
        height: 80px;
    }

    .confirmation-title {
        font-size: 2rem;
    }

    .confirmation-text,
    .confirmation-warning {
        font-size: 1rem;
    }

    .confirmation-date {
        font-size: 1.1rem;
    }

    .confirmation-luck {
        font-size: 1.3rem;
    }
}

/* ========================================
   RESPONSIVE ADICIONAL - OPTIMIZACIONES DE OVERFLOW
   ======================================== */

/* Desktop Grande - Optimizar layout para pantallas muy grandes */
@media (min-width: 1600px) {
    /* Limitar ancho del form-content en pantallas muy grandes */
    .form-content {
        max-width: 1000px;
    }

    /* Mantener padding razonable */
    .right-panel {
        padding: 60px 100px;
    }
}

/* ========================================
   RESPONSIVE ADICIONAL - FASE 1 CRÍTICA
   ======================================== */

/* Desktop Mediano - Evitar scroll horizontal y mejorar visibilidad entre 1024px-1400px */
@media (max-width: 1500px) {
    /* Reducir padding del panel derecho */
    .right-panel {
        padding: 50px 60px;
    }

    /* Reducir max-width del form-content para mejor ajuste */
    .form-content {
        max-width: 100%;
    }

    /* Asegurar que los grids se vean completamente */
    .activities-grid,
    .travel-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1439px) {
    .frequency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Desktop Mediano - Mejor distribución de grids */
@media (max-width: 1280px) {
    /* Reducir grids a 3 columnas para mejor visualización */
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .travel-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Reducir ligeramente el tamaño de las tarjetas para mejor ajuste */
    .activity-card,
    .travel-card {
        padding: 32px 18px;
    }

    /* Reducir iconos ligeramente */
    .activity-icon,
    .travel-icon {
        width: 90px;
        height: 90px;
    }
}

/* Tablet Grande - 1024px (CORREGIDO: ahora incluye 1024px exacto) */
@media (max-width: 1025px) {
    /* Grid de actividades a 3 columnas */
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        margin-bottom: 40px;
    }

    /* Grid de tipos de viaje a 3 columnas */
    .travel-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        margin-bottom: 40px;
    }

    /* Reducir tamaño de tarjetas para mejor visualización */
    .activity-card,
    .travel-card {
        padding: 28px 16px;
    }

    /* Reducir iconos */
    .activity-icon,
    .travel-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

    /* Reducir nombres */
    .activity-name,
    .travel-name {
        font-size: 1.05rem;
    }

    /* Ajuste de título principal */
    .main-title {
        font-size: 2.25rem;
        margin-bottom: 12px;
    }

    /* Ajuste de subtítulo */
    .subtitle {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    /* Reducir padding adicional */
    .right-panel {
        padding: 40px 40px;
    }

    /* Reducir espaciado de indicadores */
    .progress-indicators {
        margin-bottom: 32px;
    }

    /* Reducir margin de navegación */
    .navigation-buttons {
        margin-top: 32px;
    }
}

/* Tablet / Mobile Grande - 600px */
@media (max-width: 600px) {
    /* CRÍTICO: Formulario a 1 columna */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* CRÍTICO: Alojamiento a 1 columna centrado */
    .accommodation-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 50px;
    }

    /* Frecuencia a 2 columnas */
    .frequency-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Actividades a 2 columnas */
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tipo de viaje a 2 columnas */
    .travel-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Título más pequeño */
    .main-title {
        font-size: 2rem;
    }

    /* Padding del panel */
    .right-panel {
        padding: 40px 24px;
    }
}

/* Mobile Pequeño - 480px */
@media (max-width: 480px) {
    /* CRÍTICO: Todo a 1 columna en mobile pequeño */
    .frequency-grid {
        /*grid-template-columns: 1fr;*/
    }

    .activities-grid {
        /*grid-template-columns: 1fr;*/
    }

    .travel-types-grid {
        /*grid-template-columns: 1fr;*/
    }

    /* Título más pequeño para mobile */
    .main-title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    /* CRÍTICO: Tamaños mínimos táctiles para todas las tarjetas */
    .island-card,
    .travel-card,
    .activity-card,
    .accommodation-card,
    .frequency-card {
        min-height: 140px;
    }
    .island-card {
      min-height:100px;
    }

    /* Remover aspect-ratio en mobile pequeño para evitar tarjetas muy pequeñas */
    .travel-card,
    .activity-card,
    .accommodation-card,
    .frequency-card {
        aspect-ratio: auto;
    }

    /* CRÍTICO: Checkboxes más grandes para touch */
    .checkbox-group input[type="checkbox"] {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    /* Islas a 1 columna en mobile muy pequeño */
    .islands-grid {
        /*grid-template-columns: 1fr;*/
        gap: 12px;
    }
}

/* ========================================
   RESPONSIVE ADICIONAL - FASE 2 ALTA PRIORIDAD
   ======================================== */

/* Tablet y Mobile - 768px */
@media (max-width: 768px) {
    /* Reducir tamaño de iconos en todas las tarjetas */
    .travel-icon,
    .activity-icon {
        width: 70px;
        height: 70px;
    }

    .accommodation-icon,
    .frequency-icon {
        width: 80px;
        height: 80px;
    }

    /* Reducir padding de tarjetas */
    .travel-card,
    .activity-card {
        padding: 24px 16px;
    }

    .accommodation-card,
    .frequency-card {
        padding: 30px 20px;
    }

    /* Reducir tamaño de nombres en tarjetas */
    .travel-name,
    .activity-name {
        font-size: 1rem;
    }

    .accommodation-name,
    .frequency-name {
        font-size: 1.125rem;
    }

    /* Nombre de isla más pequeño */
    .island-name {
        font-size: 1rem;
        bottom: 15px;
        left: 15px;
    }
}

/* ========================================
   RESPONSIVE ADICIONAL - FASE 3 MEJORAS VISUALES
   ======================================== */

/* Tablet y Mobile - 768px */
@media (max-width: 768px) {
    /* Botones más pequeños */
    .next-button,
    .prev-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    /* Íconos SVG en botones más pequeños */
    .next-button svg,
    .prev-button svg {
        width: 16px;
        height: 16px;
    }

    /* Texto legal más legible (mínimo 14px) */
    .legal-text p,
    .legal-text-small p {
        font-size: 0.875rem;
        line-height: 1.7;
    }

    /* Indicadores de progreso más pequeños */
    .indicator {
        width: 30px;
        height: 6px;
    }

    .indicator.active {
        width: 40px;
    }

    /* Labels de formulario más legibles */
    .form-group label {
        font-size: 1rem;
    }

    /* Inputs con mejor tamaño */
    .form-group input,
    .form-group select {
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* Mejorar checkboxes label */
    .checkbox-group label {
        font-size: 1rem;
    }
}

/* Mobile Grande - 600px */
@media (max-width: 600px) {
    /* Título de confirmación ajustado */
    .confirmation-title {
        font-size: 1.75rem;
    }

    /* Subtítulo responsive */
    .subtitle {
        margin-bottom: 40px;
    }
}

/* Mobile Pequeño - 480px */
@media (max-width: 480px) {
    /* Botones full-width en mobile pequeño para mejor UX */
    .next-button,
    .prev-button {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    /* Navegación apilada si es necesario */
    .navigation-buttons {
        gap: 12px;
    }

    /* Icono de confirmación más pequeño */
    .confirmation-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 30px;
    }

    .confirmation-icon svg {
        width: 60px;
        height: 60px;
    }

    /* Panel con mejor padding en mobile pequeño */
    .right-panel {
        padding: 30px 20px;
    }
}

/* ========================================
   RESPONSIVE ADICIONAL - FASE 4 REFINAMIENTOS
   ======================================== */

/* Hover effects solo en dispositivos con mouse (no touch) */
@media (hover: hover) and (pointer: fine) {
    .island-card:hover {
        transform: translateY(-4px);
    }

    .travel-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .activity-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .accommodation-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .frequency-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .next-button:hover:not(.disabled) {
        background-color: #C13D31;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(217, 74, 61, 0.3);
    }

    .prev-button:hover {
        background-color: #D94A3D;
        color: white;
        transform: translateY(-2px);
    }
}

/* Remover hover effects en dispositivos touch para evitar que se "peguen" */
@media (hover: none) {
    .island-card:hover,
    .travel-card:hover,
    .activity-card:hover,
    .accommodation-card:hover,
    .frequency-card:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* Reducir o deshabilitar animaciones para usuarios que las prefieren reducidas */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Mantener solo transiciones de color/opacidad que no causan mareo */
    .island-card,
    .travel-card,
    .activity-card,
    .accommodation-card,
    .frequency-card,
    .next-button,
    .prev-button {
        transition: background-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    }
}

/* Focus states visibles para accesibilidad (teclado y switch control) */
.island-card:focus-visible,
.travel-card:focus-visible,
.activity-card:focus-visible,
.accommodation-card:focus-visible,
.frequency-card:focus-visible {
    outline: 3px solid #D94A3D;
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(217, 74, 61, 0.2);
}

.form-group input:focus-visible,
.form-group select:focus-visible {
    outline: 3px solid #D94A3D;
    outline-offset: 2px;
}

.next-button:focus-visible,
.prev-button:focus-visible {
    outline: 3px solid #D94A3D;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(217, 74, 61, 0.2);
}

.checkbox-group input[type="checkbox"]:focus-visible {
    outline: 2px solid #D94A3D;
    outline-offset: 2px;
}

/* Mejorar contraste de texto en imágenes para accesibilidad */
.island-image::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.island-name {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Asegurar que las tarjetas sean clickeables (añadir tabindex en HTML si es necesario) */
.island-card,
.travel-card,
.activity-card,
.accommodation-card,
.frequency-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(217, 74, 61, 0.2);
}

/* ========================================
   INTRO SECTION WITH ACCORDION
   ======================================== */

.intro-section {
    background-color: #FAF7F5;
    padding: 60px 40px;
    text-align: center;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D94A3D;
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-description {
    font-size: 1.125rem;
    color: #2D2D2D;
    margin-bottom: 10px;
    line-height: 1.6;
}

.intro-emphasis {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 30px;
}

/* Accordion */
.accordion {
    margin-top: 30px;
}

.accordion-toggle {
    background-color: transparent;
    border: none;
    color: #D94A3D;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
    padding: 0;
    transition: opacity 0.3s ease;
}

.accordion-toggle:hover {
    opacity: 0.8;
}

.accordion-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.accordion-toggle.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content.active {
    max-height: 800px;
    margin-top: 40px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.step-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ========================================
   LEGAL SECTION
   ======================================== */

.legal-section {
    /*background-color: #FAF7F5;*/
    padding: 40px 20px;
    text-align: center;
}
.legal-section .legal-text {
    background-color: transparent;
}

.legal-text {
    font-size: 1rem;
    color: #2D2D2D;
    margin: 0;
}

.legal-link {
    color: #D94A3D;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.legal-link:hover {
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE - INTRO AND LEGAL SECTIONS
   ======================================== */

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .intro-title {
        font-size: 2rem;
    }

    .intro-description,
    .intro-emphasis {
        font-size: 1rem;
    }

    .intro-section {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .intro-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   ERROR MESSAGES FOR FORM VALIDATION
   ======================================== */

.error-message {
    color: #E85C41;
    font-size: 12px;
    display: block;
    margin-top: 4px;
    min-height: 18px;
}

/* ============================================
   CONTROL DE VISIBILIDAD - ESTADOS
   ============================================ */

.raffle-state {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

[data-raffle-state="active"] #state-active {
    display: block;
}

[data-raffle-state="closed"] #state-closed {
    display: block;
}

[data-raffle-state="winners"] #state-winners {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desactivar animación para usuarios con prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .raffle-state {
        animation: none;
    }
}

.second-title {
    margin-bottom: 40px;
}
.paragraph {
    font-size: 1.05rem;
    color: #2D2D2D;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}
.paragraph.strong {
    font-weight: 600;
}
.intro-text {
    font-size: 1.05rem;
    color: #2D2D2D;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

/* ============================================
   ESTADO CERRADO
   ============================================ */

.raffle-closed-container {
    text-align: center;
    padding: 40px 20px;
}

.raffle-icon {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
}

/* ============================================
   ESTADO GANADORES
   ============================================ */

.raffle-winners-container {
    text-align: center;
    padding: 40px 20px;
}

.winners-card {
    background-color: #FAF7F5;
    border-radius: 20px;
    padding: 50px 40px;
    margin-top: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.winner-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D94A3D;
    margin: 15px 0;
    line-height: 1.4;
}

.card-text {
    font-size: 1rem;
    color: #2D2D2D;
    margin: 20px 0;
    line-height: 1.6;
}

.web-link {
    color: #D94A3D;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.web-link:focus-visible {
    outline: 3px solid #D94A3D;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Hover solo en dispositivos con mouse */
@media (hover: hover) and (pointer: fine) {
    .web-link:hover {
        opacity: 0.8;
    }
}

/* ============================================
   8. RESPONSIVE DESIGN
   ============================================ */

/* Tablet grande (768px - 1024px) */
@media (max-width: 1024px) {
    .paragraph,
    .intro-text {
        font-size: 1rem;
    }

    .raffle-icon {
        width: 110px;
    }

    .winners-card {
        padding: 45px 35px;
        margin-top: 45px;
    }

    .winner-name {
        font-size: 1.4rem;
    }
}

/* Tablet (600px - 768px) */
@media (max-width: 768px) {
    .paragraph,
    .intro-text {
        font-size: 0.95rem;
    }

    .raffle-icon {
        width: 100px;
        margin-bottom: 35px;
    }

    .winners-card {
        padding: 40px 30px;
        margin-top: 40px;
        border-radius: 16px;
    }

    .winner-name {
        font-size: 1.3rem;
        margin: 12px 0;
    }

    .card-text {
        font-size: 0.95rem;
        margin: 18px 0;
    }
}

/* Móvil grande (480px - 600px) */
@media (max-width: 600px) {
    .second-title {
        margin-bottom: 30px;
    }

    .paragraph,
    .intro-text {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .raffle-closed-container,
    .raffle-winners-container {
        padding: 30px 16px;
    }

    .raffle-icon {
        width: 90px;
        margin-bottom: 30px;
    }

    .winners-card {
        padding: 35px 25px;
        margin-top: 35px;
        border-radius: 14px;
    }

    .winner-name {
        font-size: 1.2rem;
        margin: 10px 0;
    }

    .card-text {
        font-size: 0.9rem;
        margin: 16px 0;
    }
}

/* Móvil pequeño (< 480px) */
@media (max-width: 480px) {
    .second-title {
        margin-bottom: 25px;
    }

    .paragraph,
    .intro-text {
        font-size: 0.875rem;
        margin-bottom: 16px;
    }

    .raffle-closed-container,
    .raffle-winners-container {
        padding: 20px 12px;
    }

    .raffle-icon {
        width: 80px;
        margin-bottom: 25px;
    }

    .winners-card {
        padding: 30px 20px;
        margin-top: 30px;
        border-radius: 12px;
    }

    .winner-name {
        font-size: 1.15rem;
        margin: 8px 0;
    }

    .card-text {
        font-size: 0.875rem;
        margin: 14px 0;
    }
}

/* Móvil muy pequeño (< 360px) */
@media (max-width: 360px) {

    .paragraph,
    .intro-text,
    .card-text {
        font-size: 0.8125rem;
    }

    .raffle-icon {
        width: 70px;
    }

    .winner-name {
        font-size: 1.1rem;
    }

    .winners-card {
        padding: 25px 16px;
    }
}