/* COLORES Y FUENTES GLOBALES (ACTUALIZADO) */
:root {
    --color-azul-oscuro: #194182; /* Principal (Azul) */
    --color-rojo: #e41513; /* Secundario (Rojo) */
    --color-naranja: #ea5b1b; /* Terciario (Naranja) */
    --color-azul-claro: #42a5f5; /* Link diseñador */
    --color-texto: #333;
    --color-fondo-claro: #f4f7f9;
    /* Fuentes */
    --font-titulo: 'Adieu', 'Anton', sans-serif; /* Fallback: Anton */
    --font-cuerpo: 'Barlow', sans-serif;
}

/* ESTILOS GENERALES Y FONDO DE VIDEO */
body {
    font-family: var(--font-cuerpo);
    margin: 0;
    padding: 0; 
    background-color: #000; 
    color: var(--color-texto);
    height: 100vh;
    overflow-y: auto; 
    position: relative; 
}

/* ---------------------------------- */
/* ESTILOS PARA EFECTO DE OLAS (Waves) */
/* ---------------------------------- */

.waves-container { /* Cambiamos el nombre para evitar conflictos */
  position: absolute; /* O 'fixed' si quieres que cubra toda la pantalla siempre */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Oculta lo que se salga */
  z-index: 5; /* Asegúrate de que esté debajo del contenido principal, pero sobre el video/overlay si lo deseas */
  pointer-events: none; /* Permite hacer clic a través del canvas */
}

/* Opcional: Cursor visual (como en el ejemplo React) */
.waves-container::before {
  content: '';
  position: absolute;
  top: var(--y, 0px); /* Usaremos JS para actualizar estas variables */
  left: var(--x, 0px);
  width: 0.5rem;
  height: 0.5rem;
  background: #fff; /* Color del punto del cursor */
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  pointer-events: none; /* No interfiere con clics */
  z-index: 6; /* Encima del canvas de olas */
}

.waves-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -99;
    /* Adaptar overlay si se desea, por ahora mantenemos el azul */
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(0, 0, 0, 0) 50%, 
        rgba(25, 65, 130, 0.7) 100% 
    );
}

/* ESTILOS DEL CONTENEDOR PRINCIPAL DEL FORMULARIO */
.container {
    max-width: 800px;
    margin: 80px auto; 
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative; 
    z-index: 10;
}

/* ESTILOS DE ENCABEZADO Y LOGO */
.logo-header {
    text-align: center;
    padding-top: 15px; /* Ajustado */
    padding-bottom: 5px; /* Ajustado */
    position: relative; 
    z-index: 10;
}

.logo-img {
    width: 250px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

/* TÍTULOS */
h2 {
    font-family: var(--font-titulo); 
    color: var(--color-azul-oscuro);
    border-bottom: 3px solid var(--color-rojo); /* CAMBIO: Borde Rojo */
    padding-bottom: 10px;
    margin-bottom: 30px;
}

h3, h4 {
    font-family: var(--font-titulo);
    color: var(--color-azul-oscuro);
}

/* ---------------------------------- */
/* BARRA DE PROGRESO (COLORES ADAPTADOS) */
/* ---------------------------------- */
.progress-bar-container {
    margin-bottom: 30px;
    position: relative;
}

.progress-bar-container.hidden {
    display: none;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.step-info {
    font-weight: bold;
    color: #999;
    position: relative;
    padding-left: 25px; 
}

.step-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    z-index: 2;
    transition: border-color 0.3s, background-color 0.3s;
}

.step-info.active {
    color: var(--color-azul-oscuro);
}

.step-info.active::before {
    border-color: var(--color-rojo); /* CAMBIO: Borde Rojo */
    background-color: var(--color-rojo); /* CAMBIO: Fondo Rojo */
    box-shadow: 0 0 5px var(--color-rojo); /* CAMBIO: Sombra Roja */
}

.progress-bar {
    max-width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Animación del relleno */
@keyframes progress-flow-rojo { /* Renombrada para claridad */
    0% { background-position: 0% 50%; }
    100% { background-position: -200% 50%; }
}

.progress-fill {
    height: 100%;
    box-shadow: 0 0 12px var(--color-rojo), inset 0 0 4px rgba(255, 255, 255, 0.4); /* CAMBIO: Sombra Roja */
    /* CAMBIO: Degradado Azul Oscuro <-> Rojo */
    background: linear-gradient(
        to right,
        var(--color-rojo) 0%,     
        var(--color-rojo) 25%,     
        var(--color-azul-oscuro) 45%,  
        var(--color-azul-oscuro) 75%,  
        var(--color-rojo) 100%     
    );
    background-size: 400% 100%; 
    transition: width 0.5s ease-out; 
    animation: progress-flow-rojo 1.5s linear infinite; /* CAMBIO: Usar animación roja */
}

/* ---------------------------------- */
/* MODAL DE PRE-CHECK (COLORES ADAPTADOS) */
/* ---------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    position: relative;
}

.modal-title {
    color: var(--color-azul-oscuro);
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 1.1em;
    color: var(--color-texto);
    margin-bottom: 25px;
}

.modal-close {
    position: absolute;
    top: 10px; 
    right: 15px; 
    font-size: 28px; 
    font-weight: bold;
    color: #888; 
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--color-azul-oscuro); 
}

.input-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.input-group input {
    flex-grow: 1;
    border: 1px solid var(--color-azul-oscuro);
    padding: 10px;
}

.feedback-message {
    margin-top: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animación de Palomita (Adaptada a Rojo) */
.checkmark {
    width: 30px; 
    height: 30px;
    margin-right: 10px; 
    border-radius: 50%;
    display: block;
    stroke-width: 3; 
    stroke: var(--color-rojo); /* CAMBIO: Trazo Rojo */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--color-rojo); /* CAMBIO: Sombra Roja */
    animation: fill-rojo .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both; /* CAMBIO: Animación fill roja */
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3; 
    stroke-miterlimit: 10;
    stroke: var(--color-rojo); /* CAMBIO: Círculo Rojo */
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill-rojo { /* Renombrada para claridad */
    100% { box-shadow: inset 0px 0px 0px 30px var(--color-rojo); } /* CAMBIO: Relleno Rojo */
}

.link-omitir {
    color: var(--color-azul-oscuro); 
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.2s;
}
.link-omitir:hover {
    color: var(--color-rojo); /* CAMBIO: Hover Rojo */
}

/* ---------------------------------- */
/* ESTILOS DE FORMULARIO (CAMPOS, BOTONES) */
/* ---------------------------------- */
.section-description {
    font-size: 1.0em;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-azul-oscuro);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc; 
    border-radius: 4px;
    font-size: 1em;
    font-family: var(--font-cuerpo);
    box-sizing: border-box; 
}

/* Convertir a mayúsculas visualmente */
input[type="text"],
input[type="email"],
input[type="tel"] {
    text-transform: uppercase;
}

/* Estilo para inputs inválidos */
.input-error {
    border-color: red !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* Grid Layout */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); 
    gap: 20px;
}

/* Acciones y Botones del Formulario */
.form-actions {
    display: flex;
    justify-content: flex-end; 
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1.0em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-family: var(--font-cuerpo);
}

/* Renombrar btn-turquesa a btn-secundario (ROJO) */
.btn-secundario { 
    background-color: var(--color-rojo); /* CAMBIO: Fondo Rojo */
    color: #fff;
}
.btn-secundario:hover {
    background-color: #c31210; /* Un rojo un poco más oscuro */
}

.btn-azul { /* Botón primario (Mantenemos Azul) */
    background-color: var(--color-azul-oscuro);
    color: #fff;
}
.btn-azul:hover {
    background-color: #123363;
}

.btn-gris {
    background-color: #ccc;
    color: #333;
}
.btn-gris:hover {
    background-color: #aaa;
}

/* ---------------------------------- */
/* PASO 2: ACCESO Y PRECIOS (COLORES ADAPTADOS) */
/* ---------------------------------- */
.acceso-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.acceso-opcion {
    flex: 1;
    border: 3px solid #eee;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f9f9f9;
    text-align: center; 
}

.acceso-opcion h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.acceso-opcion p {
    font-size: 0.9em;
    color: #666;
    min-height: 40px; 
}

.acceso-opcion .price {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-rojo); /* CAMBIO: Precio en Rojo */
    margin-top: 15px;
}

.acceso-opcion.selected {
    border-color: var(--color-rojo); /* CAMBIO: Borde Rojo */
    box-shadow: 0 0 10px rgba(228, 21, 19, 0.3); /* CAMBIO: Sombra Roja */
    background-color: #fff;
}

#congreso-details .input-group {
    display: flex;
    gap: 10px;
    align-items: center; 
}

#congreso-details input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Precio Final */
.precio-final {
    background-color: var(--color-fondo-claro);
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.precio-final h4 {
    margin: 0;
    font-size: 1.2em;
    color: var(--color-azul-oscuro);
}

.precio-display {
    font-family: var(--font-titulo); 
    font-size: 2.5em;
    font-weight: bold;
    color: var(--color-rojo); /* CAMBIO: Precio Rojo */
}

/* Inclusiones (Adaptado a Rojo) */
.inclusiones ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left; 
}
.inclusiones li {
    /* CAMBIO: SVG con color Rojo */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%23e41513" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/></svg>') no-repeat left center;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* ---------------------------------- */
/* PASO 3: RESUMEN (COLORES ADAPTADOS) */
/* ---------------------------------- */
.summary-card {
    border: 1px solid #ddd;
    border-left: 5px solid var(--color-azul-oscuro);
    padding: 20px;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 30px;
    text-align: left; 
}

.summary-card h3 {
    color: var(--color-rojo); /* CAMBIO: Título Rojo */
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
    margin-top: 20px;
}
.summary-card h3:first-child { margin-top: 0; }

.summary-card p {
    line-height: 1.6;
}

.price-final { /* Reutilizado para el resumen */
    color: var(--color-azul-oscuro);
    font-size: 2.5em;
    font-weight: bold;
    text-align: right;
    margin-top: 10px;
}

/* ---------------------------------- */
/* PASO 4: CONFIRMACIÓN (COLORES ADAPTADOS) */
/* ---------------------------------- */
.confirmation-content {
    max-width: 600px;
    margin: 40px auto;
    padding: 0; 
    background-color: transparent; 
    border-radius: 8px;
    box-shadow: none;
    text-align: center;
}

.confirmation-title {
    color: var(--color-rojo); /* CAMBIO: Título Rojo */
    margin-bottom: 15px;
}

.confirmation-message {
    color: var(--color-texto);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.ticket-card { /* ÚNICA CAJA VISIBLE */
    background-color: #fff;
    border: 1px solid #ddd; 
    padding: 30px; 
    margin-bottom: 30px;
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

.ticket-card h3 {
    color: var(--color-azul-oscuro);
    margin-top: 0;
}

.qr-code-placeholder {
    width: 150px;
    height: 150px;
    background-color: #eee;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    font-size: 0.8em;
    color: #888;
}

.guest-info {
    margin-top: 20px;
    text-align: left;
    padding: 0 20px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

.guest-info h4 {
    margin-bottom: 5px;
    color: var(--color-texto);
}

#guest-name-display {
    color: var(--color-azul-oscuro);
    font-weight: bold;
}

.social-prompt {
    margin-top: 30px;
    color: #666;
}

.social-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #fff; 
}

.social-links a {
    font-size: 1.5em;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--color-azul-oscuro);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--color-rojo); /* CAMBIO: Hover Rojo */
}

.social-links .handle {
    font-weight: bold;
    color: var(--color-azul-oscuro);
    margin-left: 10px;
}

.designer-link {
    color: #999; 
    font-size: 0.9em;
    margin-left: 15px;
    text-decoration: none;
}
.designer-link:hover {
    text-decoration: underline;
}

/* CENTRADO DEL BOTÓN */
.center-button-container {
    text-align: center;
    padding-top: 25px;
}

/* ---------------------------------- */
/* ESTILOS PARA EFECTO DE OLAS (Waves) */
/* ---------------------------------- */

.waves-container { /* Cambiamos el nombre para evitar conflictos */
  position: absolute; /* O 'fixed' si quieres que cubra toda la pantalla siempre */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Oculta lo que se salga */
  z-index: 5; /* Asegúrate de que esté debajo del contenido principal, pero sobre el video/overlay si lo deseas */
  pointer-events: none; /* Permite hacer clic a través del canvas */
}

/* Opcional: Cursor visual (como en el ejemplo React) */
.waves-container::before {
  content: '';
  position: absolute;
  top: var(--y, 0px); /* Usaremos JS para actualizar estas variables */
  left: var(--x, 0px);
  width: 0.5rem;
  height: 0.5rem;
  background: #fff; /* Color del punto del cursor */
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  pointer-events: none; /* No interfiere con clics */
  z-index: 6; /* Encima del canvas de olas */
}

.waves-canvas {
  display: block;
  width: 100%;
  height: 100%;
}