/* css/eventos.css */

:root {
    /* Paleta de Colores */
    --evt-primary: #64a84e;  
    --evt-primary-hover: #50853f; 
    --evt-secondary: #558D42; 
    --evt-dark: #325a24;      
    --evt-light: #fcfcf9;     
    --evt-gray: #6b7060;
    --evt-border: #e5e7eb; 

    /* Variables de estructura */
    --evt-radius: 12px;
    --evt-shadow: 0 4px 6px -1px rgba(45, 47, 31, 0.1), 0 2px 4px -1px rgba(45, 47, 31, 0.06);
    --evt-font: 'DM Sans', sans-serif;
}

/* =======================================================
   SECCIÓN 1: PANEL DE ADMINISTRACIÓN (Escritorio)
   ======================================================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.event-card {
    background: #fff;
    border-radius: var(--evt-radius);
    overflow: hidden;
    box-shadow: var(--evt-shadow);
    border: 1px solid var(--evt-border);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--evt-primary); 
}

.event-card .card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.event-card .card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--evt-dark);
}

/* --- BOTONES DE ACCIÓN (CORRECCIÓN AÑADIDA) --- */

.event-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    align-items: center; 
}

.event-actions button, 
.event-actions a,
.event-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 42px !important; 
    line-height: 1 !important;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent; 
}

.event-actions .btn-secondary,
.event-actions a.btn {
    border-color: var(--evt-primary) !important; 
}

.event-management-panel {
    background: #fff;
    border-radius: var(--evt-radius);
    padding: 0px;
    color: var(--evt-dark);
    max-width: 100%;
    box-sizing: border-box;
}

.event-header-info {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--evt-border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.event-header-info img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.evt-info-text {
    flex: 1;
    min-width: 0;
}

.share-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    max-width: 100%;
}

.share-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 0.9rem;
    color: var(--evt-gray);
    font-family: var(--evt-font);
    min-width: 0;
}

.event-tabs {
    display: flex;
    border-bottom: 2px solid var(--evt-border);
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--evt-gray);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--evt-font);
}

.tab-btn.active {
    color: var(--evt-primary);
    border-bottom-color: var(--evt-primary);
}

/* BUSCADOR */
.search-product-box {
    position: relative;
    background: #fff;
    border: 1px solid var(--evt-border);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 5px 20px;
    box-shadow: 0 2px 10px rgba(45, 47, 31, 0.03);
    margin-bottom: 20px;
    z-index: 50; 
}

.search-product-box:focus-within {
    border-color: var(--evt-primary);
    box-shadow: 0 4px 12px rgba(100, 168, 78, 0.25);
}

.search-category-select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--evt-gray);
    padding: 10px 5px;
    cursor: pointer;
    outline: none;
    font-family: var(--evt-font);
    max-width: 200px;
}

/* Reducimos el margen lateral del divisor */
.search-divider {
    width: 1px;
    height: 25px;
    background: var(--evt-border);
    margin: 0 5px; /* Cambio: de 10px a 5px */
}

/* Reducimos el espacio izquierdo del contenedor del input */
.search-input-wrapper {
    flex: 1;
    min-width: 0; 
    margin-left: 0;    /* Cambio: de 5px a 0 */
    padding-left: 5px; /* Cambio: de 10px a 5px */
    position: relative; 
}

/* Opcional: Ajuste fino al campo de texto si aún lo sientes lejos */
.search-input-field {
    width: 100%;
    border: none;
    outline: none;
    padding: 8px 30px 8px 0; 
    font-size: 0.95rem;
    color: var(--evt-dark);
    font-family: var(--evt-font);
    background: transparent; 
    box-sizing: border-box; 
}

.search-results-dropdown {
    position: absolute;
    top: 115%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(45, 47, 31, 0.1);
    border: 1px solid var(--evt-border);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
}
.search-item:hover { background: #f4f9f4; }
.search-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; margin-right: 10px; }
.search-item-info { flex: 1; }
.search-item-name { font-weight: 600; display: block; font-size: 0.9rem; color: var(--evt-dark); }
.search-item-price { color: var(--evt-primary); font-size: 0.85rem; font-weight: 700; }

/* TABLAS Y LISTAS */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
    border: 1px solid var(--evt-border);
    border-radius: 8px;
}

.panel-table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 600px; 
}
.panel-table th { text-align: left; padding: 12px; background: #f8fafc; font-size: 0.85rem; color: var(--evt-gray); white-space: nowrap; }
.panel-table td { padding: 12px; border-bottom: 1px solid var(--evt-border); font-size: 0.9rem; color: var(--evt-dark); vertical-align: middle; }


/* =======================================================
   SECCIÓN 2: PÁGINA PÚBLICA (LANDING)
   ======================================================= */
body.public-event-body {
    font-family: var(--evt-font); background-color: var(--evt-light); margin: 0; color: var(--evt-dark);
}
.event-hero {
    position: relative; height: 60vh; min-height: 400px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.event-hero::before {
    content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(45, 47, 31, 0.3), rgba(45, 47, 31, 0.8));
}
.hero-content { position: relative; z-index: 2; padding: 20px; max-width: 90%; }
.hero-tag {
    background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); padding: 5px 15px; border-radius: 20px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px;
}
.event-title { font-size: 3rem; margin: 15px 0; line-height: 1.1; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.event-date { font-size: 1.2rem; opacity: 0.9; font-weight: 300; }
.countdown-box { display: flex; justify-content: center; gap: 15px; margin-top: 25px; }
.countdown-item {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.3); padding: 10px 15px; border-radius: 8px; min-width: 60px;
}
.countdown-number { font-size: 1.5rem; font-weight: 700; display: block; }
.countdown-label { font-size: 0.7rem; text-transform: uppercase; opacity: 0.8; }
.event-container { max-width: 1100px; margin: -60px auto 40px; padding: 0 20px; position: relative; z-index: 10; }
.event-welcome-card {
    background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(45, 47, 31, 0.08); text-align: center; margin-bottom: 40px; color: var(--evt-dark);
}
.public-gifts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.gift-card-public {
    background: #fff; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 15px rgba(45, 47, 31, 0.05); border: 1px solid var(--evt-border); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column;
}
.gift-card-public:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(45, 47, 31, 0.1); border-color: var(--evt-primary); }
.gift-card-public.reserved { opacity: 0.7; filter: grayscale(1); }
.gift-ribbon {
    position: absolute; top: 20px; right: -32px; background: #d32f2f; color: #fff; width: 120px; text-align: center; padding: 6px 0; transform: rotate(45deg); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 20; pointer-events: none; letter-spacing: 1px;
}
.gift-public-img { height: 220px; padding: 20px; display: flex; align-items: center; justify-content: center; background: #fff; position: relative; }
.gift-public-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
.gift-card-public:hover .gift-public-img img { transform: scale(1.05); }
.gift-badge {
    position: absolute; top: 10px; right: 10px; background: var(--evt-primary); color: white; font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-weight: bold; z-index: 5;
}
.gift-card-public:has(.gift-ribbon) .gift-badge { right: auto; left: 10px; }
.gift-public-info { padding: 20px; border-top: 1px solid #f7fafc; flex: 1; display: flex; flex-direction: column; }
.gift-public-title { font-size: 1rem; font-weight: 600; margin-bottom: 5px; color: var(--evt-dark); }
.gift-public-price { font-size: 1.1rem; font-weight: 700; color: var(--evt-secondary); margin-bottom: 15px; }
.btn-reservar {
    margin-top: auto; width: 100%; padding: 10px; border: none; background: var(--evt-dark); color: #fff; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.3s; font-family: var(--evt-font);
}
.btn-reservar:hover { background: var(--evt-primary); }
.btn-reservar:disabled { background: #cbd5e0; cursor: not-allowed; }

/* MODAL Y UTILS */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 15px; box-sizing: border-box;
}
.modal-content-card {
    background: #fff; width: 100%; max-width: 400px; padding: 30px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); animation: fadeInModal 0.3s ease-out; color: var(--evt-dark); box-sizing: border-box; margin: auto; max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-content-card textarea, .modal-content-card input, .modal-content-card .form-control { box-sizing: border-box !important; width: 100%; max-width: 100%; }
@keyframes fadeInModal { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =======================================================
   SECCIÓN INVITADOS
   ======================================================= */
.guest-manager-container {
    background: #f8fafc; padding: 25px; border-radius: var(--evt-radius); border: 1px dashed #cbd5e0;
}
.add-guest-box { display: flex; gap: 12px; margin-bottom: 25px; }
.guest-input-wrapper { position: relative; flex: 1; display: flex; align-items: center; }
.guest-icon { position: absolute; left: 15px; color: var(--evt-gray); font-size: 1rem; pointer-events: none; }
.guest-input {
    width: 100%; padding: 12px 15px 12px 45px; border: 1px solid var(--evt-border); border-radius: 8px; font-family: var(--evt-font); font-size: 0.95rem; outline: none; transition: all 0.3s; background: #fff; box-sizing: border-box;
}
.guest-input:focus { border-color: var(--evt-primary); box-shadow: 0 0 0 3px rgba(100, 168, 78, 0.15); }
.btn-add-guest { white-space: nowrap; padding: 0 20px; border-radius: 8px; display: flex; align-items: center; gap: 8px; }
.guest-list-title { font-size: 0.9rem; color: var(--evt-gray); margin: 0 0 10px 5px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.guest-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.guest-item {
    background: #fff;
    border: 1px solid var(--evt-border);
    border-radius: 8px;
    padding: 10px 15px;
    
    /* Configuración Flexbox */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Corrección de desbordamiento */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    margin-bottom: 5px;
    
    /* ESTA ES LA LÍNEA QUE FALTABA PARA EL EFECTO FADE: */
    animation: slideInGuest 0.3s ease-out;
}
.guest-item:hover { transform: translateY(-2px); border-color: var(--evt-primary); }
/* Busca esto en eventos.css y actualízalo */
.guest-email-text {
    /* Ocupar espacio disponible pero encogerse si hace falta */
    flex: 1; 
    min-width: 0;  /* << LA CLAVE: Permite al texto encogerse */
    
    /* Cortar texto con puntos suspensivos */
    white-space: nowrap;      
    overflow: hidden;         
    text-overflow: ellipsis;  
    
    /* Estética */
    font-weight: 500;
    color: var(--evt-dark);
    margin-right: 10px; /* Espacio antes de la X */
    display: block;
}
.btn-remove-guest {
    /* EVITA QUE EL TEXTO LO APLASTE */
    flex-shrink: 0; 
    width: 32px; /* Ancho fijo para zona de click */
    height: 32px; /* Alto fijo */
    
    /* Centrado y diseño */
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px; /* Separación del texto */
    
    /* Asegura que esté por encima del texto */
    position: relative;
    z-index: 10;
}

.btn-remove-guest:hover {
    background: #fff5f5;
}

@keyframes slideInGuest { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =======================================================
   MEDIA QUERIES - CELULAR (AJUSTES FINALES)
   ======================================================= */
@media (max-width: 768px) {
    .event-header-info { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
    .event-header-info img { width: 80px; height: 80px; margin-bottom: 5px; }

    .share-box { flex-direction: column; width: 100%; }
    .share-box input { width: 100%; margin-bottom: 8px; box-sizing: border-box; }
    .share-box button { width: 100%; }

    .search-product-box { flex-direction: column; padding: 15px; border-radius: 16px; align-items: stretch; height: auto; }
    .search-category-select { width: 100%; max-width: none; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 10px; padding-left: 0; }
    .search-divider { display: none; }
    .search-input-wrapper { margin-left: 0; padding-left: 0; border: none; width: 100%; }
    .search-input-field { padding-left: 30px !important; }

    .add-guest-box { flex-direction: column; }
    .btn-add-guest { width: 100%; justify-content: center; padding: 12px; }
    .guest-list { grid-template-columns: 1fr; }

    .event-hero { height: 50vh; }
    .event-title { font-size: 2.2rem; }
    .event-container { margin-top: -40px; }
    .event-welcome-card { padding: 25px; }
    .public-gifts-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } 
    .modal-content-card { padding: 20px; }
}

@media (max-width: 480px) {
    .public-gifts-grid { grid-template-columns: 1fr; } 
    .event-hero { min-height: 350px; }
    .event-title { font-size: 1.8rem; }
    .countdown-item { padding: 5px 10px; min-width: 50px; }
    .event-management-panel { padding: 0px; }

    /* --- CORRECCIÓN DE BOTONES EN CELULAR --- */
    .event-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .event-actions button, 
    .event-actions a,
    .event-actions .btn {
        width: 100%;
        margin: 0;
        height: 50px !important; 
        font-size: 1rem; 
    }
}

/* --- AJUSTE DE FORMULARIOS DEL PANEL --- */
.panel-form .form-control {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Específico para áreas de texto */
.panel-form textarea.form-control {
    resize: vertical;
    min-height: 80px; 
    font-family: inherit;
}

/* Badges de estado */
.badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.product-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-mini img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Información de reserva */
.reserva-info {
    background: #f8f9fa;
    padding: 5px 8px;
    border-radius: 6px;
    border-left: 3px solid #64a84e; /* Color primario */
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE (MÓVIL - Max 768px)
   ========================================= */
@media (max-width: 768px) {
  /* 1. BARRA DE HERRAMIENTAS: Stack vertical */
  .gestion-toolbar {
    flex-direction: column;
    align-items: center; /* Centrar todo horizontalmente */
    gap: 15px; /* Espacio vertical */
  }
  
  /* Botón Volver: Arriba y centrado */
  .gestion-back-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  /* Grupo Acciones (Editar/Ver): Abajo y centrado */
  .gestion-actions {
    width: 100%;
    justify-content: center;
    gap: 15px;
  }
  
  /* Botones de acción: tamaño flexible pero no gigante */
  .btn-action {
    flex: 1; 
    max-width: 150px;
    justify-content: center;
  }

  /* 2. TARJETA: Columna Vertical */
  .gestion-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
  }

  /* Imagen */
  .gestion-img-container {
    width: 100%;
    max-width: 280px; 
    height: auto;
    aspect-ratio: 1/1; 
  }

  .gestion-info {
    width: 100%;
    align-items: center; 
  }

  /* 3. METADATOS: Grid vertical en móvil */
  .gestion-meta-grid {
    grid-template-columns: 1fr; /* 1 sola columna */
    width: 100%;
    gap: 12px;
    text-align: left; /* Alineación izquierda para lectura */
  }
  
  .meta-item {
    background-color: var(--color-background);
    padding: 10px;
    border-radius: 8px;
  }

  /* 4. COMPARTIR: Ancho completo en móvil */
  .gestion-share-section {
      width: 100%;
  }

  .share-input-group {
    width: 100%;
    max-width: none; /* Quitar límite de ancho en móvil */
  }
}

/* =========================================
   ESTILOS DE LA PORTADA (LANDING) DE EVENTOS
   ========================================= */

.evento-landing-wrapper {
    min-height: 60vh;
    background-color: #f9fafb;
    padding-bottom: 60px;
}

/* Banner superior con gradiente */
.evt-landing-banner {
    background: linear-gradient(135deg, var(--color-primary, #db2777) 0%, #ff9a9e 100%);
    padding: 20px 20px 100px 20px; /* Padding inferior extra para el efecto de superposición */
    text-align: center;
    color: white;
}

.evt-landing-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.evt-landing-banner p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Contenedor central flotante */
.evt-search-container {
    max-width: 800px;
    margin: -60px auto 50px; /* Margen negativo para subirlo sobre el banner */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Caja blanca del buscador */
.evt-search-box {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.evt-search-box h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.evt-search-box p {
    color: #666;
    margin-bottom: 25px;
}

.evt-search-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.evt-input-code {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    outline: none;
    transition: border-color 0.3s;
}

.evt-input-code:focus {
    border-color: var(--color-primary, #db2777);
}

.evt-btn-search {
    background-color: var(--color-primary, #db2777);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evt-btn-search:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

/* Grid de opciones (Crear lista / Sorteos) */
.evt-options-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.evt-option-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.evt-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.evt-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.evt-icon-gift {
    background: #fff1f2;
    color: var(--color-primary, #db2777);
}

.evt-icon-ticket {
    background: #eff6ff;
    color: #3b82f6;
}

.evt-card-title {
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.evt-card-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Botones de las tarjetas */
.evt-btn-primary {
    display: inline-block;
    background-color: var(--color-primary, #db2777);
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.evt-btn-outline {
    display: inline-block;
    border: 1px solid var(--color-primary, #db2777);
    color: var(--color-primary, #db2777);
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.evt-btn-secondary {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .evt-landing-banner h1 { font-size: 2rem; }
    .evt-search-box { padding: 30px 20px; }
}

/* =========================================
   SECCIÓN: ÚLTIMOS EVENTOS PÚBLICOS
   ========================================= */

.evt-recent-section {
    margin-top: 40px;
    text-align: left;
}

.evt-section-title {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Grid responsive para las tarjetas */
.evt-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.evt-recent-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; /* Para el enlace */
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.evt-recent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.evt-recent-img-wrapper {
    height: 140px;
    width: 100%;
    background-color: #eee;
    position: relative;
}

.evt-recent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evt-recent-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary, #db2777);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.evt-recent-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.evt-recent-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    /* Limitar a 2 líneas */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evt-recent-organizer {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.evt-recent-link {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--color-primary, #db2777);
    font-weight: 600;
}


.evt-promo-container {
    font-family: 'DM Sans', Arial, sans-serif; /* Tu fuente global */
    background-color: var(--color-surface);     /* Fondo blanco limpio */
    
    /* Borde discontinuo usando tu color primario */
    border: 2px dashed var(--color-primary);    
    
    border-radius: 12px; /* Radio estándar de tus tarjetas */
    padding: 30px;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
    color: var(--color-text-medium);
    
    /* Tu sombra base definida en variables */
    box-shadow: var(--color-shadow-base); 
}

/* Título con tu color primario (#14a6ca) */
.evt-promo-title {
    color: var(--color-primary); 
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Texto descriptivo usando tu variable de texto medio */
.evt-promo-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--color-text-medium);
}

/* Lista de beneficios */
.evt-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin-bottom: 25px;
}

.evt-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--color-text-dark); /* Texto oscuro para lectura */
}

/* Caja de Bonus: Uso los colores de tu .badge-warning (#fff3cd) */
.evt-bonus-box {
    background-color: #fff3cd; 
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Botón adaptado a tus estilos .btn */
.evt-btn {
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 999px; /* Estilo 'Pill' como tus botones del header */
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    /* Sombra con el tinte de tu color primario */
    box-shadow: 0 4px 12px rgba(20, 166, 202, 0.3); 
}

.evt-btn:hover {
    /* Efecto hover consistente con tu diseño */
    transform: translateY(-2px);
    filter: brightness(110%);
}

/* =========================================
    AJUSTES PARA CELULAR (Responsive)
    ========================================= */
@media (max-width: 600px) {

    .evt-options-grid {
        margin-top: 10px;   /* Reducido a la mitad para ganar espacio vertical */
        gap: 15px;          /* Menos separación entre tarjetas */
        grid-template-columns: 1fr; /* Forzar una sola columna para que ocupen todo el ancho */
    }

    .evt-option-card {
        /* Reducimos el padding interno drásticamente */
        padding: 10px 10px; 
        
        /* Opcional: Borde un poco más sutil en móvil */
        border-color: #f0f0f0;
    }
    
    /* Opcional: Si tienes iconos dentro, redúcelos un poco también */
    .evt-option-card .evt-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .evt-promo-container {
        padding: 20px 15px; /* Mucho menos relleno a los lados */
        margin: 15px 0;     /* Quitamos margen lateral para aprovechar todo el ancho */
        border-width: 1px;  /* Borde más fino para pantallas chicas */
        border-radius: 8px; /* Bordes un poco menos redondeados */
    }

    .evt-promo-title {
        font-size: 1.4rem; /* Título ajustado para que no se parta tanto */
        margin-bottom: 10px;
    }

    .evt-promo-text {
        font-size: 1rem;   /* Texto base un poco más compacto */
    }

    .evt-list {
        display: block;    /* Lista ocupa todo el ancho */
        margin-bottom: 20px;
    }

    .evt-btn {
        width: 100%;       /* Botón ancho completo (Full Width) */
        box-sizing: border-box; /* Asegura que el padding no rompa el ancho */
        padding: 12px;     /* Un poco más compacto verticalmente */
        font-size: 1.1rem;
    }
}

/* --- ADAPTACIÓN PARA CELULAR (Media Query) --- */
@media (max-width: 768px) {
    
    .event-actions {
        /* Cambia la dirección: en vez de fila, columna */
        flex-direction: column; 
        gap: 8px; /* Reduce un poco el espacio entre botones verticalmente */
    }

    .event-actions button, 
    .event-actions a,
    .event-actions .btn {
        /* Ocupan el 100% del ancho disponible */
        width: 100%;
        
        /* Opcional: Reducir un poco la altura si ocupan mucho espacio vertical */
        height: 38px !important; 
        
        /* Asegura que el flex:1 de escritorio no interfiera */
        flex: auto; 
    }
}