/* Variables CSS Globales */
/* =============================================================================
   VARIABLES GLOBALES (unificadas) 
   - Paleta base teal/verde activa
   - Se añaden variables de gradiente y acento
   - Si se necesitara la paleta azul antigua, mover a un tema alternativo
============================================================================= */
:root {
    /* Colores principales */
    --primary-color: #0d9488;
    --primary-dark: #0a6d65;
    --secondary-color: #64748b;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* Fondos y texto */
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;

    /* Bordes / sombras / radios */
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;

    /* Fuente y transiciones */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;

    /* Gradientes / acentos propios del tema */
    --brand-accent: #84cc16;
    --brand-gradient: linear-gradient(135deg, #0d9488 0%, #16a34a 55%, #84cc16 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(13,148,136,.15) 0%, rgba(22,163,74,.15) 60%, rgba(132,204,22,.15) 100%);

    /* Aliases estilo Bootstrap */
    --bs-primary: var(--primary-color);
    --bs-secondary: var(--secondary-color);
    --bs-success: var(--success-color);
    --bs-warning: var(--warning-color);
    --bs-danger: var(--danger-color);
    --bs-indigo: #6366f1;
    --bs-primary-rgb: 13,148,136; /* actualizado al teal */
    --bs-secondary-rgb: 100,116,139;
    --bs-success-rgb: 22,163,74;
    --bs-warning-rgb: 245,158,11;
    --bs-gray-100: #f8fafc;
    --bs-gray-200: #f1f5f9;
    --bs-gray-300: #e2e8f0;
    --bs-gray-600: #475569;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family) !important;
    line-height: 1.6 !important;
    color: var(--text-dark) !important;
    background-color: var(--light-bg) !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.center-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 90vh;
}

.container {
    max-width: 1300px !important;
    margin: 0 auto ;
}

/* Grid System */
.row {
    margin-right: -15px !important;
    margin-left: -15px !important;
}

.col, [class*="col-"] {
    padding-right: 15px !important;
    padding-left: 15px !important;
}

/* Headers */
.header-principal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    padding: 3rem 0 !important;
    text-align: center !important;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg) !important;
    margin-bottom: 2rem !important;
}

.header-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-principal .container {
    position: relative;
    z-index: 2;
}

.header-principal img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.2);
    max-height: 80px;
    width: auto;
}

.header-principal h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 1rem 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    color: white !important;
}

.header-principal .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Secciones */
.seccion {
    padding: 3rem 0;
    margin: 2rem 0;
}

.seccion-titulo {
    text-align: center;
    margin-bottom: 3rem;
}

.seccion-titulo h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.seccion-titulo h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.seccion-titulo h2 i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

/* Eventos */
.evento-activo {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    width: 100%;
}

.evento-activo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.evento-activo-contenido {
    position: relative;
    z-index: 2;
}

.evento-activo h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fecha-destacada {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    display: inline-block;
}

/* Cards de Eventos */
.card-evento {
    background: var(--white) !important;
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden;
    transition: var(--transition) !important;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow) !important;
    margin-bottom: 1.5rem !important;
}

.card-evento:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color);
}

.card-evento-imagen {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-evento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-evento:hover .card-evento-imagen img {
    transform: scale(1.05);
}

.card-evento-imagen i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-evento-fecha {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.card-evento-contenido {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-evento-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.card-evento-descripcion {
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-evento-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.card-evento-precio {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Botones */
.btn-evento,
.btn-comprar,
.btn-comprar-modal,
.btn-comprar-form {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-evento {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
}

.btn-comprar {
    background: var(--warning-color);
    color: white;
}

.btn-comprar-modal,
.btn-comprar-form {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
    box-shadow: var(--shadow);
}

.btn-evento:hover,
.btn-comprar:hover,
.btn-comprar-modal:hover,
.btn-comprar-form:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white !important;
    text-decoration: none;
}

.btn-comprar:hover {
    background: #d97706;
}

.btn-comprar-modal:hover,
.btn-comprar-form:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-comprar-form:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow);
}

.btn-comprar-form:disabled:hover {
    background: var(--secondary-color);
    transform: none;
}

.btn-volver,
.btn-volver-form,
.btn-volver-mejorado {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-volver:hover,
.btn-volver-form:hover,
.btn-volver-mejorado:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}



/* Carousel */
.carousel-eventos {
    margin-bottom: 2rem;
    padding: 1rem 0;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition);
}

.carousel-control-prev { left: -25px; }
.carousel-control-next { right: -25px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--secondary-color);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: none;
}

/* Modal */
.modal-evento .modal-dialog {
    max-width: 900px;
    margin: 1.75rem auto;
}

.modal-evento .modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-evento .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom: none;
}

.modal-evento .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-evento .modal-body {
    padding: 2rem;
    background: white;
}

.evento-modal-contenido {
    margin: 0;
}

.evento-modal-imagen {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.evento-modal-imagen img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evento-modal-imagen:hover img {
    transform: scale(1.05);
}

.evento-modal-titulo {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.evento-modal-texto {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.evento-modal-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    height: fit-content;
    border: 1px solid var(--border-color);
}

.modal-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.modal-info-contenido {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-info-contenido strong {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: block;
}

.modal-info-contenido span {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.evento-modal-acciones {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.alert-evento-finalizado {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--border-radius);
    color: #92400e;
    padding: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

.alert-evento-finalizado i {
    color: #f59e0b;
}

.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Página de Compra */
.compra-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.compra-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.compra-header .container {
    position: relative;
    z-index: 2;
}

.compra-main {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f8fafc 100%);
    min-height: calc(100vh - 140px);
    position: relative;
}

/* Proceso de compra */
.proceso-compra {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.paso-indicador-mejorado,
.paso-indicador-siguiente {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.paso-indicador-mejorado {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.paso-indicador-siguiente {
    opacity: 0.6;
}

.paso-numero {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.paso-indicador-mejorado .paso-numero {
    background: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.paso-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.paso-titulo {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.paso-descripcion {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1;
}

.separador-pasos {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    animation: pulse 2s infinite;
}

/* Formularios */
.formulario-seccion,
.formulario-compra {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.seccion-titulo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.seccion-titulo i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.seccion-titulo h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
    font-size: 1.3rem;
}

.form-floating > .form-control,
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    background: white;
}

.form-floating > .form-control:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    outline: none;
}

.form-floating > label,
.form-label {
    color: var(--text-muted);
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Card de información del evento compacta */
.evento-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.evento-info-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
}

.evento-info-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.evento-info-body {
    padding: 1.5rem;
}

/* Card de información de entrada compacta */
.entrada-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.entrada-info-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
}

.entrada-info-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.entrada-info-body {
    padding: 1.5rem;
}

/* Card de información de acompañantes compacta */
.acompanantes-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.acompanantes-info-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
}

.acompanantes-info-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.acompanantes-info-body {
    padding: 1.5rem;
}

/* Card de información de productos compacta */
.productos-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.productos-info-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
}

.productos-info-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.productos-info-body {
    padding: 1.5rem;
}

.evento-imagen-compra-mini {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.evento-imagen-compra-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evento-titulo-compra {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.evento-detalles-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detalle-item-inline {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.detalle-item-inline i {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

.precio-evento-destacado {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Resumen de Compra */
.resumen-sticky {
    position: sticky;
    top: 2rem;
    z-index: 10;
}

.resumen-compra,
.resumen-compra-card {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    padding: 2rem;
}

.resumen-titulo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f59e0b;
}

.resumen-titulo i {
    color: #f59e0b;
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.resumen-titulo h5 {
    color: #92400e;
    font-weight: 700;
    margin: 0;
}

.resumen-contenido {
    padding: 0;
}

.resumen-seccion {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.resumen-seccion:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resumen-seccion-titulo {
    color: #92400e;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.resumen-seccion-titulo i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.resumen-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.resumen-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f59e0b;
    color: white;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.resumen-producto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #92400e;
}

.resumen-producto-nombre {
    font-weight: 500;
    flex: 1;
}

.resumen-producto-cantidad {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.resumen-producto-precio {
    font-weight: 600;
}

.success-icon {
    color: var(--success-color);
    font-size: 2rem;
}

/* Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.producto-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

/* =============================================================
    TIPOGRAFÍA GLOBAL ADICIONAL (fusionado con la definición inicial de body)
    ============================================================= */
/* Nota: Se elimina duplicado directo de body. Las reglas de tamaño responsivo
    se integran aquí respetando el comportamiento original. */
@media (min-width: 1200px) {
     body { font-size: 1.08rem; }
}

/* =============================================================
   BANNER ENTIDAD
   ============================================================= */
.banner-entidad {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 4rem 0 5rem;
    background: var(--bs-gray-200, var(--light-bg));
    position: relative;
}

.banner-entidad .banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(.75);
    transform: scale(1.1);
}

.banner-entidad .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
}

.banner-entidad .banner-content { color: #fff; }

.entidad-logo {
    width: 15vw;
    object-fit: cover;
    border-radius: 18px;
    background: #fff;
    padding: .35rem;
}

.titulo-entidad {
    font-weight: 700;
    font-size: clamp(1.9rem, 2.6vw, 3rem);
    letter-spacing: .5px;
}

.descripcion-entidad { max-width: 52ch; font-size: 1.1rem; }
.banner-wave { position: absolute; left: 0; right: 0; bottom: 0; line-height: 0; }
.banner-wave svg { width: 100%; height: 90px; display: block; fill: #fff; }

/* =============================================================
   EVENTO DESTACADO
   ============================================================= */
.evento-destacado {
    position: relative;
    z-index: 5;
}

/* Fondo destacado: blobs circulares difuminados estilo bg-prehome */
.wave-bg-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}

/* Blobs superiores (similar a bg-prehome-1) */
.wave-bg-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    left: 15%;
    top: 15%;
    filter: blur(80px);
    background: radial-gradient(circle at 40% 40%, rgba(13,148,136,0.38) 0%, rgba(13,148,136,0.12) 55%, transparent 80%),
                radial-gradient(circle at 60% 60%, rgba(132,204,22,0.32) 0%, rgba(132,204,22,0.08) 55%, transparent 80%);
    z-index: -99;
    animation: circleMove 10s linear infinite alternate;
    opacity: 0.9;
}
.wave-bg-section::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    right: 15%;
    top: 15%;
    filter: blur(80px);
    background: radial-gradient(circle at 30% 30%, rgba(13,148,136,0.55) 0%, rgba(13,148,136,0.14) 50%, transparent 68%),
                radial-gradient(circle at 75% 15%, rgba(22,163,74,0.45) 0%, rgba(22,163,74,0.10) 48%, transparent 65%),
                radial-gradient(circle at 60% 60%, rgba(132,204,22,0.32) 0%, rgba(132,204,22,0.08) 55%, transparent 80%);
    z-index: -99;
    animation: circleMove 10s linear infinite alternate-reverse;
    opacity: 0.9;
}

/* Blobs inferiores (similar a bg-prehome-2, opcional: puedes añadir otra clase si necesitas más blobs) */
/*
.wave-bg-section.bg-alt::before {
    width: 650px;
    height: 650px;
    left: 20%;
    top: 110%;
    background-color: #ced3fc;
}
.wave-bg-section.bg-alt::after {
    width: 650px;
    height: 650px;
    right: 10%;
    top: 140%;
    background-color: #ddeefd;
}
*/

.wave-bg-section > * { position: relative; z-index: 1; }

@keyframes circleMove {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(150px, 150px) rotate(45deg); }
    50%  { transform: translate(0, 320px) rotate(90deg); }
    75%  { transform: translate(-150px, 150px) rotate(135deg); }
    100% { transform: translate(0, 0) rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
    .wave-bg-section::before,
    .wave-bg-section::after { animation: none; }
}

.evento-destacado-card { background: #fff; border: 0; backdrop-filter: blur(6px); }

.evento-destacado-card .evento-destacado-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .28;
    transition: opacity .6s ease;
}

.evento-destacado-card:hover .evento-destacado-media { opacity: .38; }

.evento-destacado-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.75));
    backdrop-filter: blur(6px);
}

.evento-destacado-body { position: relative; z-index: 2; }
.titulo-evento-destacado { font-size: clamp(1.8rem, 2.2vw, 2.6rem); }

/* =============================================================
   SECCIONES EVENTOS (Fondos gradiente teal/verde)
   ============================================================= */
.seccion-eventos-proximos {
    position: relative;
    background: linear-gradient(135deg, rgba(13,148,136,0.07) 0%, rgba(100,116,139,0.07) 100%);
    isolation: isolate; /* evita mezcla rara con blobs superiores */
}

/* Overlay decorativo suave opcional (pseudo-elemento) */
.seccion-eventos-proximos::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 20%, rgba(132,204,22,0.12) 0%, transparent 55%),
        radial-gradient(circle at 15% 75%, rgba(13,148,136,0.10) 0%, transparent 60%);
    mix-blend-mode: normal;
    opacity: .75;
    z-index: 0;
}

.seccion-eventos-proximos > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .seccion-eventos-proximos::before { animation: none; }
}

.btn-accent {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    border: 0;
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,.3);
}

.btn-accent:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px -6px rgba(0,0,0,.4);
    color: #fff;
}

.info-simple-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    font-size: .95rem;
}

.info-simple-list .info-item { display: flex; align-items: flex-start; }
.info-simple-list .info-item i { margin-top: .15rem; }

/* =============================================================
   CAROUSELS MODERNOS
   ============================================================= */
/* Padding horizontal evita que los controles se monten sobre las tarjetas */
.carousel-eventos-modern {
    position: relative;
    padding: 0 2.75rem;
}

.carousel-eventos-modern .carousel-control-next,
.carousel-eventos-modern .carousel-control-prev {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,.25);
    opacity: .95;
}

/* Recolocación dentro del padding */
.carousel-eventos-modern .carousel-control-prev { left: -1rem; }
.carousel-eventos-modern .carousel-control-next { right: -1rem; }

.carousel-eventos-modern .carousel-control-next:hover,
.carousel-eventos-modern .carousel-control-prev:hover { background: #fff; }

.carousel-eventos-modern .carousel-control-next-icon,
.carousel-eventos-modern .carousel-control-prev-icon { filter: invert(1) grayscale(100%); }

@media (max-width: 991.98px) {
    .carousel-eventos-modern .carousel-control-next,
    .carousel-eventos-modern .carousel-control-prev { display: none; }
}

/* Indicadores (bolitas) mejorados */
.carousel-eventos-modern .carousel-indicators { position: static; margin-top: 1.25rem; gap:.65rem; }
.carousel-eventos-modern .carousel-indicators [data-bs-target] {
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-gray-300), var(--bs-gray-200));
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
    opacity: .65;
    transition: background .35s ease, transform .35s ease, opacity .35s ease;
}
.carousel-eventos-modern .carousel-indicators [data-bs-target].active,
.carousel-eventos-modern .carousel-indicators [data-bs-target]:hover,
.carousel-eventos-modern .carousel-indicators [data-bs-target]:focus-visible {
    background: var(--brand-gradient);
    opacity: 1;
    transform: scale(1.1);
}
.carousel-eventos-modern .carousel-indicators [data-bs-target]:focus-visible { outline: 3px solid var(--warning-color); outline-offset:2px; }

/* =============================================================
   CARDS DE EVENTO (MODERNAS)
   ============================================================= */
.card-evento-modern {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.04);
    transition: all .35s ease;
}

.card-evento-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px -10px rgba(0,0,0,.35);
}

.card-evento-modern .card-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bs-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-evento-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s ease;
}

.card-evento-modern:hover img { transform: scale(1.08); }
.card-evento-modern .fecha { position: absolute; top: .65rem; left: .65rem; font-size: .75rem; padding: .35rem .55rem; border-radius: .65rem; }
.card-evento-modern .no-image { color: var(--bs-gray-600); font-size: .8rem; }
.card-evento-modern .precio { color: var(--primary-color); letter-spacing: .5px; }
.card-evento-modern .btn { border-radius: 2rem; }

/* Ajuste padding homogéneo */
.card-evento-modern .card-body { padding: 1rem 1rem 1.25rem; }
.card-evento-mini .card-body { padding: .55rem .6rem .7rem !important; }

/* Evento destacado (wrapper lateral imagen) */
.evento-destacado-media-wrapper {
    width: 100%;
    max-width: 460px;
    position: relative;
}

.evento-destacado-media-wrapper img { display: block; }

@media (max-width: 991.98px) {
    .evento-destacado-media-wrapper { max-width: 100%; height: 240px; }
}

/* Animación wave opcional */
.wave-anim path { animation: waveFloat 6s ease-in-out infinite alternate; }
@keyframes waveFloat { from { transform: translateY(0); } to { transform: translateY(8px); } }

/* Cards mini (legado / posibles usos secundarios) */
.card-evento-mini {
    border: 0;
    background: var(--bs-gray-100);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: background .3s ease, transform .3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.04);
}

.card-evento-mini:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.25);
}

.card-evento-mini .card-img-wrapper { background: var(--bs-gray-300); border-bottom: 1px solid rgba(0,0,0,.06); }
.card-evento-mini img { object-fit: cover; }
.card-evento-mini .fecha { position: absolute; top: .5rem; left: .5rem; font-size: .65rem; padding: .3rem .45rem; border-radius: .5rem; }
.card-evento-mini .btn-xs { --bs-btn-padding-y: .15rem; --bs-btn-padding-x: .55rem; --bs-btn-font-size: .65rem; border-radius: .4rem; }

/* Botones generales mejoras */
.btn-scroll-focus { scroll-behavior:smooth; }
.btn-outline-light { border:2px solid rgba(255,255,255,.85); color:#fff; background:rgba(0,0,0,.25); backdrop-filter: blur(2px); }
.btn-outline-light:hover { background:rgba(0,0,0,.5); color:#fff; }
/* Ajuste específico en sección destacada para mejor contraste */
.evento-destacado .btn-outline-light { border-color:rgba(0,0,0,.15); background:rgba(0,0,0,.4); }
.evento-destacado .btn-outline-light:hover { background:rgba(0,0,0,.6); }
.btn-outline-primary { border-width:2px; }
.btn-outline-primary:hover { background:var(--bs-primary); color:#fff; }
.btn-outline-secondary { border-width:2px; }
.btn-outline-secondary:hover { background:var(--bs-secondary); color:#fff; }

/* Badges suaves: variantes más discretas para resaltar cantidades sin saturar la vista */
.bg-primary-subtle {
    background: rgba(var(--bs-primary-rgb), .15)!important;
    color: var(--primary-dark);
}
.bg-secondary-subtle {
    background: rgba(var(--bs-secondary-rgb), .18)!important;
    color: var(--secondary-color);
}
.bg-gradient-primary-soft {
    background: linear-gradient(45deg, var(--primary-color), var(--bs-indigo));
    color: #fff;
}

/* Footer extendido: bloque informativo y enlaces secundarios */
.footer-extended {
    background: #0d121a;
    color: #d7e2ef;
    position: relative;
    margin-top: 4rem;
}
.footer-extended a {
    color: #b5d7ff;
    text-decoration: none;
}
.footer-extended a:hover { color: #fff; }
.footer-extended .footer-top {
    padding: 4rem 0 2.5rem;
    position: relative;
}
.footer-extended h5 {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .5px;
}
.footer-extended .brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.footer-extended .social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    margin-right: .5rem;
    backdrop-filter: blur(3px);
    transition: .3s;
}
.footer-extended .social a:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-4px);
}
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    margin: 0;
}
.footer-bottom {
    font-size: .85rem;
    padding: 1.25rem 0;
}
.footer-badges img {
    max-height: 42px;
    margin-right: .75rem;
    opacity: .85;
}
.footer-badges img:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce){
    .card-evento-modern:hover img { transform:none; }
    .card-evento-modern, .card-evento-mini, .evento-destacado-card, .entidad-logo { transition:none!important; }
}

/* Accesibilidad y enfoque */
:focus-visible {
    outline: 3px solid var(--warning-color);
    outline-offset: 2px;
}
.btn:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .45);
}

/* Utilidades menores */
/* Utilidades rápidas: conviene mantenerlas simples pero en multilínea para lectura */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.rounded-4 {
    border-radius: 1.5rem!important;
}
.btn-xs {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
    --bs-btn-font-size: .65rem;
}

/* Print optimizations */
@media print {
    .banner-entidad, .carousel, .btn, .modal, .footer-extended { display:none!important; }
    body { font-size:12pt; }
}

/* (El bloque duplicado de :root se ha unificado arriba para evitar sobreescrituras dispersas) */

/* Header principal con nuevo gradiente */
.header-principal { background: var(--brand-gradient) !important; }

/* Evento activo reutiliza gradiente brand para coherencia */
.evento-activo { background: var(--brand-gradient); }

/* Botones principales / acción */
.btn-evento {
    background: var(--brand-gradient) !important;
    border: none;
}
.btn-evento:hover { filter: brightness(1.05); }

/* Botón acento (se mantiene pero ajustado al nuevo esquema) */
.btn-accent {
    background: linear-gradient(45deg,#0d9488,#16a34a) !important;
}
.btn-accent:hover {
    background: linear-gradient(45deg,#0f9f92,#18ad50) !important;
}

/* Outline primary adaptado */
.btn-outline-primary {
    color: #0d9488;
    border-color: #0d9488;
}
.btn-outline-primary:hover {
    background: var(--brand-gradient);
    border-color: #0d9488;
}

/* Badges y sutiles */
.bg-primary-subtle {
    background: var(--brand-gradient-soft) !important;
    color: #0a6d65;
}
.bg-gradient-primary-soft {
    background: var(--brand-gradient) !important;
}

/* Gradiente utilidades */
.bg-brand-gradient {
    background: var(--brand-gradient) !important;
}
.text-brand-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Títulos con opción de degradado (usar clase adicional si se desea) */
h1.titulo-entidad,
h2.titulo-evento-destacado { position: relative; }
h1.titulo-entidad.gradient,
h2.titulo-evento-destacado.gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Borde focus revisado para el nuevo tono */
.btn:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(13,148,136,.35);
}

/* Cards: reforzar indicadores precio */
.card-evento-modern .precio { color: #0d9488; }
.card-evento-mini .btn-outline-secondary.btn-xs {
    border-color: #0d9488;
    color: #0d9488;
}
.card-evento-mini .btn-outline-secondary.btn-xs:hover {
    background: var(--brand-gradient);
    color: #fff;
}

/* =============================================================
   SCROLLBAR PERSONALIZADA (Gradiente verde)
   ============================================================= */
/* WebKit / Blink */
::-webkit-scrollbar { width: 12px; height:12px; }
::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(13,148,136,.08) 0%, rgba(22,163,74,.08) 60%, rgba(132,204,22,.10) 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 4px rgba(0,0,0,.08);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#0d9488 0%, #16a34a 55%, #84cc16 100%);
    border-radius: 10px;
    border: 2px solid var(--light-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,#0f9f92 0%, #18ad50 55%, #9ddc26 100%);
}
::-webkit-scrollbar-corner { background: transparent; }

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #0d9488 rgba(13,148,136,.12);
}

/* Modo alto contraste (reduce decoración) */
@media (forced-colors: active) {
    ::-webkit-scrollbar-track { background: Canvas; }
    ::-webkit-scrollbar-thumb { background: ButtonText; box-shadow:none; border:1px solid ButtonText; }
}

.producto-card:hover,
.producto-card.selected {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.producto-card.selected {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.producto-card.adding {
    animation: productSelected 0.3s ease;
}

.producto-imagen {
    width: 100%;
    height: 120px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-sin-imagen {
    color: var(--text-muted);
    font-size: 2rem;
}

.producto-info {
    flex: 1;
    margin-bottom: 1rem;
}

.producto-nombre {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.producto-descripcion {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-precio {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.producto-precio small {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6c757d;
    display: block;
    margin-top: 0.25rem;
}

.producto-selector {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.cantidad-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.btn-cantidad {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-cantidad:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.btn-cantidad:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.cantidad-input {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.cantidad-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Acompañantes */
.acompanantes-info .alert {
    border-radius: var(--border-radius);
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
    padding: 1rem;
    margin: 0;
}

#acompanantesContainer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.acompanante-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    animation: slideIn 0.3s ease-out;
}

.acompanante-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.acompanante-card.removing {
    animation: slideOut 0.3s ease-out forwards;
}

.acompanante-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.acompanante-titulo {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.acompanante-titulo i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.acompanante-numero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.btn-eliminar-acompanante {
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-eliminar-acompanante:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.acompanante-campos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.acompanante-card .form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15);
}

.acompanante-card .form-control.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15);
}

/* Stripe Payment */
.stripe-payment-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.payment-method-selector .payment-option {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.payment-method-selector .payment-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.payment-method-selector .form-check-input:checked ~ .form-check-label .payment-option {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.payment-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-cards {
    display: flex;
    gap: 0.5rem;
}

.payment-cards i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.stripe-element {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    transition: border-color 0.3s ease;
}

.stripe-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stripe-element.StripeElement--invalid {
    border-color: var(--danger-color);
}

.stripe-element.StripeElement--focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stripe-errors {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    padding: 0.75rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
}

.stripe-errors:not(:empty) {
    display: block;
}

.seguridad-info .alert {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-dark);
}

.btn-comprar-form .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Loading & Animations */
.loading {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

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

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        padding: 0;
        margin: 0;
    }
}

@keyframes productSelected {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}


/* Responsive */
@media (max-width: 991.98px) {
    .resumen-sticky {
        position: static;
        margin-top: 2rem;
    }
    
    .acompanante-campos {
        grid-template-columns: 1fr;
    }
    
    .acompanante-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-principal {
        padding: 2rem 0 1.5rem;
    }
    
    .header-principal h1 {
        font-size: 2rem !important;
    }
    
    .seccion {
        padding: 2rem 0;
    }
    
    .seccion-titulo h2 {
        font-size: 1.8rem;
    }
    
    .evento-activo {
        padding: 2rem 1rem;
    }
    
    .evento-activo h3 {
        font-size: 1.8rem;
    }
    
    .fecha-destacada {
        font-size: 1rem;
    }
    
    .card-evento-imagen {
        height: 150px;
    }
    
    .card-evento-contenido {
        padding: 1rem;
    }
    
    .btn-evento,
    .btn-comprar {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
    }
    
    .d-flex.gap-3 > * {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .formulario-seccion,
    .formulario-compra {
        padding: 1.5rem;
    }
    
    .resumen-compra,
    .resumen-compra-card {
        padding: 1.5rem;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .acompanante-card {
        padding: 1rem;
    }
    
    .modal-evento .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
    
    .modal-evento .modal-body {
        padding: 1rem;
    }
    
    .evento-modal-info {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .evento-modal-titulo {
        font-size: 1.5rem;
    }
    
    .modal-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stripe-payment-form {
        padding: 1rem;
    }
    
    .payment-option-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .payment-cards {
        align-self: flex-end;
    }
}

@media (max-width: 576px) {
    .seccion {
        padding: 2rem 0;
    }
    
    .seccion-titulo h2 {
        font-size: 1.8rem;
    }
}
