/* =========================================================
   EVENTOS LOCALES
   styles.css
   ---------------------------------------------------------
   Hoja de estilos principal
   Compatible con:
   - index.php
   - eventos.php
   - evento.php
   - páginas internas
   - colaboradores
   - suscripciones
   - páginas legales

   Estructura:
   01. Variables
   02. Reset y base
   03. Elementos generales
   04. Header
   05. Botones
   06. Hero portada
   07. Buscador
   08. Sobre la plataforma
   09. Descubre
   10. Experiencias
   11. Eventos destacados portada
   12. Estadísticas
   13. Why us
   14. Newsletter
   15. Colaboradores
   16. Páginas internas
   17. Eventos.php
   18. Evento.php
   19. Suscripciones / FAQ
   20. Contacto
   21. Páginas legales
   22. Footer
   23. Cookies
   24. Responsive
   ========================================================= */


/* =========================================================
   01. VARIABLES
   ========================================================= */

:root {

    /* Colores principales */
    --primary: #003b6f;
    --secondary: #0077b6;

    /* Dorado de marca */
    --gold: #c8a24d;
    --gold-dark: #a17c2d;
    --gold-light: #fff7df;

    /* Fondos */
    --black: #111111;
    --dark: #121212;
    --dark-soft: #181818;
    --dark-card: #1b1b1b;

    --white: #ffffff;
    --white-smoke: #f8f8f8;
    --light: #f8fafc;

    /* Grises */
    --gray-100: #f1f5f9;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #18212f;

    /* Tipografía */
    --text: #1e293b;
    --text-light: #64748b;

    /* Bordes */
    --border: #e8eaed;
    --border-light: #edf0f2;

    /* Sombras */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, .05);
    --shadow: 0 10px 30px rgba(15, 23, 42, .07);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);

    /* Radios */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 25px;
    --radius-pill: 999px;

    /* Layout */
    --container: 1200px;
    --container-small: 900px;

    /* Header */
    --header-height: 95px;

    /* Transiciones */
    --transition: .25s ease;
}


/* =========================================================
   02. RESET Y BASE
   ========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}


/* =========================================================
   03. ELEMENTOS GENERALES
   ========================================================= */

.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
}

section {
    padding: 90px 0;
}

.section-title {
    max-width: 850px;
    margin: 0 auto 65px;
    text-align: center;
}

.section-tag {
    display: inline-block;
    margin-bottom: 18px;

    color: var(--gold);

    font-size: .82rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title h2 {
    margin-bottom: 22px;

    color: var(--white);

    font-size: 2.8rem;
}

.section-title p {
    color: #b8b8b8;
    font-size: 1.05rem;
    line-height: 1.9;
}


/* =========================================================
   04. HEADER
   ========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 999;

    background: rgba(18, 18, 18, .88);

    border-bottom: 1px solid rgba(255, 255, 255, .05);

    box-shadow: 0 2px 15px rgba(0, 0, 0, .08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar {
    width: 90%;
    max-width: var(--container);

    min-height: var(--header-height);
    height: var(--header-height);

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo img {
    width: auto;
    height: 120px;
    max-width: 220px;

    object-fit: contain;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 32px;
}

nav li {
    list-style: none;
}

nav a {
    color: var(--white-smoke);

    font-size: .92rem;
    font-weight: 500;

    transition: color var(--transition);
}

nav a:hover {
    color: var(--gold);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border-radius: var(--radius-pill);

    background: var(--gold);
    color: var(--dark);

    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition);
}

.btn-nav:hover {
    background: var(--gold-dark);
    color: var(--dark);

    transform: translateY(-2px);
}


/* =========================================================
   05. BOTONES GENERALES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 30px;

    border: 1px solid var(--gold);
    border-radius: var(--radius-pill);

    background: var(--gold);
    color: var(--dark);

    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    background: var(--gold-dark);

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(161, 124, 45, .20);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 30px;

    border: 2px solid var(--gold);
    border-radius: var(--radius-pill);

    color: var(--gold);

    font-weight: 600;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);

    transform: translateY(-2px);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 28px;

    border: 2px solid var(--primary);
    border-radius: var(--radius-pill);

    color: var(--primary);

    font-weight: 600;

    transition:
        background var(--transition),
        color var(--transition);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   06. HERO PORTADA
   ========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: calc(var(--header-height) + 40px) 20px 70px;

    text-align: center;

    background:
        linear-gradient(
            rgba(0, 0, 0, .78),
            rgba(0, 0, 0, .78)
        ),
        url("../img/hero/hero-home.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
}

.hero-subtitle {
    margin-bottom: 15px;

    color: var(--gold);

    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 900px;

    margin: 0 auto 25px;

    color: var(--white);

    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1.08;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    max-width: 800px;

    margin: 0 auto 32px;

    color: #dddddd;

    font-size: 1.15rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 18px;
}


/* =========================================================
   07. BUSCADOR
   ========================================================= */

.search-section {
    position: relative;
    z-index: 10;

    margin-top: -70px;
    padding: 0 0 40px;
}

.search-box {
    width: 90%;
    max-width: var(--container);

    margin: 0 auto;

    padding: 45px;

    border: 1px solid rgba(200, 162, 77, .15);
    border-radius: var(--radius-xl);

    background: var(--dark-card);

    box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
}

.search-box h2 {
    margin-bottom: 12px;

    color: var(--white);

    text-align: center;
}

.search-box p {
    margin-bottom: 30px;

    color: #bfbfbf;

    text-align: center;
}

.search-form {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr
        auto;

    gap: 14px;
}

.search-form input,
.search-form select {
    width: 100%;

    min-height: 52px;

    padding: 0 16px;

    border: 1px solid transparent;
    border-radius: 12px;

    background: #252525;
    color: var(--white);

    font-size: .92rem;
}

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

.search-form input:focus,
.search-form select:focus {
    outline: none;

    border-color: var(--gold);

    box-shadow: 0 0 0 3px rgba(200, 162, 77, .12);
}

.search-form button {
    min-height: 52px;

    padding: 0 30px;

    border: 1px solid var(--gold);
    border-radius: 12px;

    background: var(--gold);
    color: var(--dark);

    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition);
}

.search-form button:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}


/* =========================================================
   08. SOBRE LA PLATAFORMA
   ========================================================= */

.about-platform {
    padding: 110px 0;

    background: var(--black);
}

.about-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.about-card {
    padding: 42px 35px;

    border: 1px solid rgba(200, 162, 77, .15);
    border-radius: 18px;

    background: #1a1a1a;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.about-card:hover {
    transform: translateY(-8px);

    border-color: var(--gold);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}

.about-card .icon {
    margin-bottom: 22px;

    color: var(--gold);

    font-size: 3rem;
}

.about-card h3 {
    margin-bottom: 15px;

    color: var(--white);

    font-size: 1.45rem;
}

.about-card p {
    margin-bottom: 0;

    color: #b8b8b8;

    line-height: 1.8;
}


/* =========================================================
   09. DESCUBRE
   ========================================================= */

.discover {
    padding: 110px 0;

    background: var(--dark-soft);
}

.discover-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}

.discover-card {
    position: relative;

    display: block;

    height: 300px;

    overflow: hidden;

    border-radius: 20px;

    background: #222;
}

.discover-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.discover-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 30px;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, .88)
        );
}

.discover-overlay h3 {
    margin-bottom: 8px;

    color: var(--white);

    font-size: 1.55rem;
}

.discover-overlay p {
    margin: 0;

    color: #dddddd;
}

.discover-card:hover img {
    transform: scale(1.08);
}

.discover-card:hover {
    box-shadow: 0 20px 50px rgba(200, 162, 77, .20);
}


/* =========================================================
   10. EXPERIENCIAS
   ========================================================= */

.experiences {
    padding: 120px 0;

    background: var(--black);
}

.experience-grid {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 30px;
}

.experience-main {
    overflow: hidden;

    border-radius: 22px;

    background: var(--dark-card);

    transition: transform var(--transition);
}

.experience-main:hover {
    transform: translateY(-8px);
}

.experience-main img {
    width: 100%;
    height: 420px;

    object-fit: cover;
}

.experience-content {
    padding: 35px;
}

.badge {
    display: inline-flex;
    align-items: center;

    min-height: 32px;

    padding: 0 16px;

    border-radius: var(--radius-pill);

    background: var(--gold);
    color: var(--black);

    font-size: .78rem;
    font-weight: 700;
}

.experience-content h3 {
    margin: 22px 0 15px;

    color: var(--white);

    font-size: 2rem;
}

.experience-content p {
    color: #bdbdbd;

    line-height: 1.8;
}

.experience-content a {
    display: inline-block;

    margin-top: 12px;

    color: var(--gold);

    font-weight: 700;
}

.experience-side {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.experience-small {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 18px;

    border-radius: 18px;

    background: var(--dark-card);

    transition:
        background var(--transition),
        transform var(--transition);
}

.experience-small:hover {
    background: #222;
    transform: translateY(-3px);
}

.experience-small img {
    flex: 0 0 110px;

    width: 110px;
    height: 90px;

    object-fit: cover;

    border-radius: 12px;
}

.experience-small h4 {
    margin-bottom: 7px;

    color: var(--white);
}

.experience-small span {
    color: var(--gold);

    font-size: .9rem;
}


/* =========================================================
   11. EVENTOS DESTACADOS PORTADA
   ========================================================= */

.events-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 1fr)
        );

    gap: 30px;

    margin-top: 55px;
}

.event-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--white);

    box-shadow: var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.event-card:hover {
    transform: translateY(-7px);

    border-color: rgba(200, 162, 77, .45);

    box-shadow: var(--shadow-lg);
}

.event-image {
    position: relative;

    height: 220px;

    overflow: hidden;

    background: #222;
}

.event-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.07);
}

.event-category {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 2;

    display: inline-flex;
    align-items: center;

    min-height: 32px;

    padding: 0 13px;

    border-radius: var(--radius-pill);

    background: rgba(200, 162, 77, .96);
    color: var(--black);

    font-size: .76rem;
    font-weight: 800;
}

.event-info {
    padding: 25px;
}

.event-info h3 {
    margin-bottom: 14px;

    color: var(--gray-900);

    font-size: 1.4rem;
}

.event-info p {
    margin: 8px 0;

    color: var(--gray-500);

    font-size: .92rem;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    margin-top: 17px;

    padding: 0 22px;

    border-radius: var(--radius-pill);

    background: var(--gold);
    color: var(--white);

    font-size: .85rem;
    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition);
}

.btn-small:hover {
    background: var(--gold-dark);
    color: var(--white);

    transform: translateY(-2px);
}


/* =========================================================
   12. ESTADÍSTICAS
   ========================================================= */

.stats {
    padding: 80px 0;

    background: var(--dark);

    color: var(--white);
}

.stats-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    text-align: center;
}

.stats h3 {
    margin-bottom: 8px;

    color: var(--gold);

    font-size: 3rem;
}

.stats p {
    margin: 0;

    color: #cfcfcf;
}


/* =========================================================
   13. WHY US
   ========================================================= */

.why-us {
    padding: 120px 0;

    background: var(--dark-soft);
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.why-card {
    padding: 38px 28px;

    border: 1px solid rgba(200, 162, 77, .10);
    border-radius: 20px;

    background: #222;

    text-align: center;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);

    border-color: var(--gold);

    box-shadow: 0 20px 45px rgba(0, 0, 0, .30);
}

.why-card i {
    display: block;

    margin-bottom: 22px;

    color: var(--gold);

    font-size: 42px;
}

.why-card h3 {
    margin-bottom: 12px;

    color: var(--white);

    font-size: 1.2rem;
}

.why-card p {
    margin: 0;

    color: #bcbcbc;

    line-height: 1.8;
}


/* =========================================================
   14. NEWSLETTER
   ========================================================= */

.newsletter {
    padding: 90px 0;

    background: var(--black);

    color: var(--white);

    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;

    color: var(--white);
}

.newsletter p {
    margin-bottom: 28px;

    color: #cccccc;
}

.newsletter form {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;
}

.newsletter input {
    width: 350px;
    max-width: 100%;

    min-height: 50px;

    padding: 0 20px;

    border: none;
    border-radius: var(--radius-pill);

    background: var(--white);
}

.newsletter input:focus {
    outline: 2px solid var(--gold);
}

.newsletter button {
    min-height: 50px;

    padding: 0 28px;

    border: 1px solid var(--gold);
    border-radius: var(--radius-pill);

    background: var(--gold);
    color: var(--black);

    font-weight: 700;
}

.newsletter button:hover {
    background: var(--gold-dark);
}


/* =========================================================
   15. COLABORADORES
   ========================================================= */

.partners {
    text-align: center;

    background: var(--white);
}

.partners p {
    max-width: 700px;

    margin: 20px auto 35px;
}

.benefits {
    display: flex;
    justify-content: center;

    flex-wrap: wrap;

    gap: 18px;

    margin: 35px 0;
}

.benefit {
    padding: 13px 23px;

    border-radius: var(--radius-pill);

    background: var(--light);

    font-weight: 600;
}

.partners-info {
    background: var(--light);
}

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 25px;

    margin-top: 40px;
}

.benefit-card {
    padding: 30px;

    border-radius: var(--radius);

    background: var(--white);

    box-shadow: var(--shadow-sm);
}

.benefit-card h3 {
    margin-bottom: 12px;
}


/* =========================================================
   16. PÁGINAS INTERNAS
   ========================================================= */

.page-header {
    padding:
        calc(var(--header-height) + 55px)
        20px
        75px;

    background: var(--light);

    text-align: center;
}

.page-header h1 {
    margin-bottom: 18px;

    color: var(--gray-900);

    font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.page-header p {
    max-width: 700px;

    margin: 0 auto;

    color: var(--gray-500);
}


/* =========================================================
   17. EVENTOS.PHP
   ========================================================= */


/* Cabecera */

.hero-eventos {
    width: 90%;
    max-width: var(--container);

    margin: 0 auto;

    padding:
        calc(var(--header-height) + 55px)
        20px
        40px;

    text-align: center;
}

.hero-eventos h1 {
    margin: 0 0 12px;

    color: var(--gray-900);

    font-family: 'Poppins', sans-serif;

    font-size: clamp(2.4rem, 5vw, 4rem);

    line-height: 1.08;
}

.hero-eventos p {
    max-width: 720px;

    margin: 0 auto 18px;

    color: var(--gray-500);

    font-size: 1.05rem;
}

.resumen-eventos {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-top: 4px;

    padding: 8px 15px;

    border: 1px solid rgba(200, 162, 77, .35);
    border-radius: var(--radius-pill);

    background: #fffaf0;
    color: #6b5a32;

    font-size: .9rem;
    font-weight: 600;
}

.contador-eventos {
    color: var(--gold-dark);
    font-weight: 800;
}


/* ---------------------------------------------------------
   FILTROS
--------------------------------------------------------- */

.filtros-eventos {
    width: 90%;
    max-width: var(--container);

    margin: 0 auto 45px;
}

.formulario-filtros {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr
        auto;

    gap: 14px;

    align-items: end;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255, 255, 255, .97);

    box-shadow: 0 12px 35px rgba(0, 0, 0, .07);
}

.campo-filtro {
    min-width: 0;
}

.campo-filtro label {
    display: block;

    margin: 0 0 7px 3px;

    color: var(--gray-600);

    font-size: .82rem;
    font-weight: 700;
}

.campo-filtro input,
.campo-filtro select {
    width: 100%;

    min-height: 48px;

    padding: 0 14px;

    border: 1px solid #dfe3e8;
    border-radius: var(--radius-sm);

    background: var(--white);
    color: #1f2937;

    font-family: inherit;
    font-size: .94rem;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.campo-filtro input::placeholder {
    color: var(--gray-400);
}

.campo-filtro input:focus,
.campo-filtro select:focus {
    outline: none;

    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(200, 162, 77, .13);
}

.acciones-filtros {
    display: flex;

    gap: 9px;
}

.boton-filtrar,
.boton-limpiar {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 18px;

    border-radius: var(--radius-sm);

    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;

    white-space: nowrap;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.boton-filtrar {
    border: 1px solid var(--gold);

    background: var(--gold);
    color: var(--dark);
}

.boton-filtrar:hover {
    border-color: var(--gold-dark);

    background: var(--gold-dark);

    transform: translateY(-1px);
}

.boton-limpiar {
    border: 1px solid #dfe3e8;

    background: var(--white);
    color: var(--gray-600);
}

.boton-limpiar:hover {
    border-color: #cbd5e1;

    background: var(--light);
}


/* ---------------------------------------------------------
   GRID DE EVENTOS
--------------------------------------------------------- */

.grid-eventos {
    width: 90%;
    max-width: var(--container);

    margin: 0 auto 90px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;

    align-items: stretch;
}


/* ---------------------------------------------------------
   TARJETA
--------------------------------------------------------- */

.tarjeta-evento {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--white);

    box-shadow: var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.tarjeta-evento:hover {
    transform: translateY(-6px);

    border-color: rgba(200, 162, 77, .45);

    box-shadow: var(--shadow-lg);
}


/* ---------------------------------------------------------
   IMAGEN TARJETA
--------------------------------------------------------- */

.imagen-evento-wrap {
    position: relative;

    height: 230px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #1b1b1b,
            #303030
        );
}

.imagen-evento {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .45s ease;
}

.tarjeta-evento:hover .imagen-evento {
    transform: scale(1.045);
}

.imagen-evento-wrap::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 35%;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .32),
            transparent
        );

    pointer-events: none;
}

.sin-imagen {
    position: absolute;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 8px;

    color: #d8d8d8;

    font-size: .85rem;

    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(200, 162, 77, .14),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #171717,
            #292929
        );
}

.sin-imagen i {
    color: var(--gold);

    font-size: 2rem;
}

.sin-imagen.visible {
    display: flex;
}


/* ---------------------------------------------------------
   CATEGORÍA
--------------------------------------------------------- */

.categoria-evento {
    position: absolute;

    z-index: 2;

    top: 16px;
    left: 16px;

    display: inline-flex;
    align-items: center;

    min-height: 32px;

    padding: 0 12px;

    border-radius: var(--radius-pill);

    background: rgba(200, 162, 77, .96);
    color: #161616;

    font-size: .76rem;
    font-weight: 800;

    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}


/* ---------------------------------------------------------
   CONTENIDO TARJETA
--------------------------------------------------------- */

.contenido-evento {
    display: flex;
    flex: 1;

    flex-direction: column;

    padding: 24px;
}

.contenido-evento h2 {
    margin: 0 0 16px;

    color: var(--gray-900);

    font-family: 'Poppins', sans-serif;

    font-size: 1.22rem;

    line-height: 1.35;

    text-align: left;
}

.meta-evento {
    display: flex;
    flex-direction: column;

    gap: 9px;

    margin-bottom: 17px;

    color: var(--gray-500);

    font-size: .87rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    line-height: 1.45;
}

.meta-item i {
    flex: 0 0 15px;

    margin-top: 3px;

    color: var(--gold-dark);

    text-align: center;
}

.estado-permanente {
    display: inline-flex;
    align-items: center;

    margin-left: 4px;

    padding: 3px 8px;

    border-radius: var(--radius-pill);

    background: #fef3c7;
    color: #92400e;

    font-size: .68rem;
    font-weight: 800;
}

.descripcion-evento {
    margin-top: auto;

    padding-top: 15px;

    border-top: 1px solid #eef0f2;

    color: var(--gray-500);

    font-size: .88rem;

    line-height: 1.65;
}

.evento-footer {
    margin-top: 20px;
}

.boton-evento {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;

    min-height: 44px;

    padding: 0 18px;

    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);

    background: var(--gold);
    color: #151515;

    font-size: .88rem;
    font-weight: 800;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.boton-evento:hover {
    background: var(--gold-dark);
    color: var(--white);

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(161, 124, 45, .20);
}


/* ---------------------------------------------------------
   SIN EVENTOS
--------------------------------------------------------- */

.sin-eventos {
    width: 90%;
    max-width: 800px;

    margin: 20px auto 90px;

    padding: 55px 30px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--white);

    text-align: center;

    box-shadow: var(--shadow);
}

.sin-eventos h2 {
    margin-bottom: 10px;

    color: var(--gray-900);
}

.sin-eventos p {
    color: var(--gray-500);
}


/* =========================================================
   18. EVENTO.PHP — DETALLE
   ========================================================= */

.detalle-evento {
    min-height: calc(100vh - var(--header-height));

    padding:
        calc(var(--header-height) + 30px)
        0
        90px;

    background: var(--light);
}

.detalle-evento .container {
    width: 90%;
    max-width: var(--container);

    margin: 0 auto;
}


/* ---------------------------------------------------------
   MIGAS
--------------------------------------------------------- */

.detalle-migas {
    margin-bottom: 25px;
}

.detalle-migas a {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--gray-500);

    font-size: .9rem;
    font-weight: 600;

    transition: color var(--transition);
}

.detalle-migas a:hover {
    color: var(--gold-dark);
}

.detalle-migas i {
    color: var(--gold-dark);
}


/* ---------------------------------------------------------
   GRID
--------------------------------------------------------- */

.detalle-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.05fr);

    gap: 55px;

    align-items: start;
}


/* ---------------------------------------------------------
   IMAGEN
--------------------------------------------------------- */

.detalle-imagen-columna {
    position: sticky;

    top: 120px;
}

.detalle-imagen-wrap {
    position: relative;

    width: 100%;
    min-height: 500px;

    overflow: hidden;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(200, 162, 77, .16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #171717,
            #292929
        );

    box-shadow:
        0 20px 50px rgba(15, 23, 42, .14);
}

.detalle-imagen {
    width: 100%;
    height: 500px;

    object-fit: cover;
}

.detalle-sin-imagen {
    position: absolute;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 12px;

    color: #d5d5d5;

    font-size: .95rem;

    text-align: center;
}

.detalle-sin-imagen.visible {
    display: flex;
}

.detalle-sin-imagen i {
    color: var(--gold);

    font-size: 3rem;
}


/* ---------------------------------------------------------
   PANEL PRINCIPAL
--------------------------------------------------------- */

.detalle-principal {
    padding: 42px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--white);

    box-shadow:
        0 15px 45px rgba(15, 23, 42, .07);
}


/* ---------------------------------------------------------
   ETIQUETAS
--------------------------------------------------------- */

.detalle-etiquetas {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 20px;
}

.detalle-categoria,
.detalle-destacado,
.detalle-permanente {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-height: 32px;

    padding: 0 13px;

    border-radius: var(--radius-pill);

    font-size: .75rem;
    font-weight: 800;
}

.detalle-categoria {
    background: var(--gold);
    color: #151515;
}

.detalle-destacado {
    background: var(--gold-light);
    color: #8a681f;

    border: 1px solid rgba(200, 162, 77, .25);
}

.detalle-permanente {
    background: #ecfdf5;
    color: #047857;
}


/* ---------------------------------------------------------
   TÍTULO
--------------------------------------------------------- */

.detalle-principal h1 {
    margin: 0 0 30px;

    color: var(--gray-900);

    font-family: 'Poppins', sans-serif;

    font-size: clamp(2rem, 4vw, 3.25rem);

    line-height: 1.12;

    letter-spacing: -.02em;
}


/* ---------------------------------------------------------
   RESUMEN
--------------------------------------------------------- */

.detalle-resumen {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 25px;
}

.detalle-resumen-item {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 16px;

    border: 1px solid var(--border-light);
    border-radius: 14px;

    background: var(--light);
}

.detalle-resumen-item > i {
    flex: 0 0 20px;

    margin-top: 3px;

    color: var(--gold-dark);

    font-size: 1rem;

    text-align: center;
}

.detalle-resumen-item div {
    min-width: 0;
}

.detalle-resumen-item span {
    display: block;

    margin-bottom: 3px;

    color: var(--gray-400);

    font-size: .72rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .05em;
}

.detalle-resumen-item strong {
    display: block;

    color: var(--gray-700);

    font-size: .92rem;

    line-height: 1.45;
}


/* ---------------------------------------------------------
   PRECIO
--------------------------------------------------------- */

.detalle-precio {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 5px 0 30px;

    padding: 17px 20px;

    border: 1px solid rgba(200, 162, 77, .25);
    border-radius: 14px;

    background: #fffaf0;
}

.detalle-precio i {
    color: var(--gold-dark);
}

.detalle-precio span {
    color: #6b7280;

    font-size: .85rem;
    font-weight: 600;
}

.detalle-precio strong {
    margin-left: auto;

    color: #8a681f;

    font-size: 1rem;
}


/* ---------------------------------------------------------
   DESCRIPCIÓN
--------------------------------------------------------- */

.detalle-descripcion {
    margin-top: 35px;

    padding-top: 30px;

    border-top: 1px solid var(--border-light);
}

.detalle-descripcion h2 {
    margin: 0 0 18px;

    color: var(--gray-900);

    font-size: 1.45rem;

    text-align: left;
}

.detalle-descripcion p {
    margin-bottom: 18px;

    color: var(--gray-500);

    font-size: .98rem;

    line-height: 1.8;
}


/* ---------------------------------------------------------
   DATOS ADICIONALES
--------------------------------------------------------- */

.detalle-datos {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    margin-top: 30px;
}

.detalle-dato-card {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 18px;

    border: 1px solid var(--border-light);
    border-radius: 14px;

    background: var(--light);
}

.detalle-dato-card > i {
    margin-top: 3px;

    color: var(--gold-dark);
}

.detalle-dato-card span {
    display: block;

    margin-bottom: 3px;

    color: var(--gray-400);

    font-size: .72rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .05em;
}

.detalle-dato-card strong {
    color: var(--gray-700);

    font-size: .9rem;

    line-height: 1.45;
}


/* ---------------------------------------------------------
   ACCIONES
--------------------------------------------------------- */

.detalle-acciones {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 35px;
}

.detalle-boton-principal,
.detalle-boton-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 11px;

    font-size: .88rem;
    font-weight: 800;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.detalle-boton-principal {
    border: 1px solid var(--gold);

    background: var(--gold);
    color: #151515;
}

.detalle-boton-principal:hover {
    border-color: var(--gold-dark);

    background: var(--gold-dark);
    color: var(--white);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(161, 124, 45, .22);
}

.detalle-boton-secundario {
    border: 1px solid #dfe3e8;

    background: var(--white);
    color: var(--gray-600);
}

.detalle-boton-secundario:hover {
    border-color: var(--gold);

    color: var(--gold-dark);

    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   EVENTO NO ENCONTRADO
--------------------------------------------------------- */

.evento-no-encontrado {
    min-height: 70vh;

    padding: 160px 20px 100px;

    background: var(--light);
}

.evento-no-encontrado-card {
    max-width: 650px;

    margin: 0 auto;

    padding: 60px 40px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--white);

    text-align: center;

    box-shadow: var(--shadow);
}

.evento-no-encontrado-icono {
    margin-bottom: 20px;
}

.evento-no-encontrado-icono i {
    color: var(--gold-dark);

    font-size: 3.5rem;
}

.evento-no-encontrado-card h1 {
    margin-bottom: 15px;

    color: var(--gray-900);
}

.evento-no-encontrado-card p {
    max-width: 500px;

    margin: 0 auto 30px;

    color: var(--gray-500);

    line-height: 1.7;
}


/* =========================================================
   19. SUSCRIPCIONES / FAQ
   ========================================================= */

.newsletter-benefits {
    background: var(--light);
}

.subscribe-section {
    background: var(--white);
}

.subscribe-section select {
    min-height: 48px;

    padding: 0 14px;

    border: 1px solid #ddd;
    border-radius: var(--radius-sm);

    font-family: inherit;
}

.faq-section {
    background: var(--light);
}

.faq-item {
    max-width: 800px;

    margin: 0 auto 25px;

    padding: 25px;

    border-radius: var(--radius);

    background: var(--white);

    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    margin-bottom: 10px;

    color: var(--gray-900);
}

.faq-item p {
    margin: 0;

    color: var(--gray-500);
}


/* =========================================================
   20. CONTACTO
   ========================================================= */

.contact-form-section {
    padding: 90px 0;

    background: var(--white);
}

.contact-form {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid #ddd;
    border-radius: var(--radius-sm);

    font-family: inherit;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.contact-form textarea {
    min-height: 160px;

    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;

    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(200, 162, 77, .12);
}

.contact-form button {
    min-height: 50px;

    padding: 0 25px;

    border: 1px solid var(--gold);
    border-radius: var(--radius-pill);

    background: var(--gold);
    color: var(--white);

    font-weight: 700;

    transition:
        background var(--transition),
        transform var(--transition);
}

.contact-form button:hover {
    background: var(--primary);

    transform: translateY(-2px);
}


/* =========================================================
   21. PÁGINAS LEGALES
   ========================================================= */

.legal {
    min-height: 100vh;

    padding:
        calc(var(--header-height) + 55px)
        20px
        80px;

    background: var(--white);
}

.legal .container {
    max-width: var(--container-small);

    text-align: left;
}

.legal h1 {
    margin-bottom: 30px;

    color: var(--gray-900);

    font-size: clamp(2.2rem, 5vw, 3rem);
}

.legal h2 {
    margin-top: 35px;
    margin-bottom: 15px;

    color: var(--gray-900);

    font-size: 1.5rem;

    text-align: left;
}

.legal p,
.legal li {
    margin-bottom: 15px;

    color: var(--gray-700);

    font-size: 1rem;

    line-height: 1.8;
}

.legal ul {
    padding-left: 25px;

    list-style: disc;
}


/* =========================================================
   22. FOOTER
   ========================================================= */

footer {
    position: relative;

    background: var(--dark);

    color: var(--white);

    font-size: 14px;
}

.footer-container {
    width: 90%;
    max-width: var(--container);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(200px, 1fr)
        );

    gap: 30px;

    padding: 45px 0;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 12px;

    color: var(--gold);

    font-size: 15px;
}

.footer-col p,
.footer-col a {
    display: block;

    margin-bottom: 8px;

    color: var(--white-smoke);

    font-size: 13px;

    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 15px 20px;

    border-top: 1px solid rgba(255, 255, 255, .08);

    background: transparent;

    color: var(--gold);

    text-align: center;

    font-size: 12px;

    line-height: 1.4;
}

.footer-bottom p {
    margin: 0;

    font-size: 12px;
}


/* =========================================================
   23. COOKIES
   ========================================================= */

.cookies-banner {
    position: fixed;

    left: 0;
    bottom: 50px;

    width: 100%;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 20px;

    background: var(--white);

    box-shadow:
        0 -2px 15px rgba(0, 0, 0, .15);
}

.cookies-banner p {
    flex: 1;

    margin: 0;

    color: var(--gray-700);

    font-size: 14px;
}

.cookies-banner a {
    color: var(--gold-dark);

    font-weight: 700;
}

.cookies-buttons {
    display: flex;

    gap: 10px;
}

.cookies-buttons button {
    min-height: 40px;

    padding: 0 15px;

    border: none;
    border-radius: 6px;

    font-weight: 700;
}

#acceptCookies {
    background: var(--gold);
    color: var(--dark);
}

.secondary {
    background: var(--gold);
    color: var(--dark);
}


/* =========================================================
   24. RESPONSIVE
   ========================================================= */


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .navbar {
        gap: 20px;
    }

    nav ul {
        gap: 22px;
    }

    .search-form {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .search-form button {
        width: 100%;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-side {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .discover-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .formulario-filtros {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acciones-filtros {
        grid-column: 1 / -1;
    }

    .grid-eventos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detalle-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .detalle-imagen-columna {
        position: static;
    }

    .detalle-imagen-wrap,
    .detalle-imagen {
        height: 420px;
        min-height: 420px;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    :root {
        --header-height: 90px;
    }


    /* HEADER */

    .navbar {
        width: 92%;

        min-height: 90px;
        height: 90px;

        gap: 10px;
    }

    .logo img {
        height: 95px;
        max-width: 170px;
    }

    nav ul {
        gap: 12px 18px;

        justify-content: center;
    }

    nav a {
        font-size: .8rem;
    }

    .btn-nav {
        padding: 9px 14px;

        font-size: .78rem;
    }


    /* GENERALES */

    section {
        padding: 65px 0;
    }

    .container {
        width: 92%;
    }

    .section-title {
        margin-bottom: 45px;
    }

    .section-title h2 {
        font-size: 2rem;
    }


    /* HERO */

    .hero {
        min-height: 90vh;

        padding:
            calc(var(--header-height) + 30px)
            15px
            50px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: min(100%, 320px);
    }


    /* BUSCADOR */

    .search-section {
        margin-top: -35px;
    }

    .search-box {
        width: 92%;

        padding: 28px 20px;

        border-radius: 18px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }


    /* SOBRE */

    .about-grid {
        grid-template-columns: 1fr;
    }


    /* DESCUBRE */

    .discover-grid {
        grid-template-columns: 1fr;
    }

    .discover-card {
        height: 260px;
    }


    /* EXPERIENCIAS */

    .experience-side {
        grid-template-columns: 1fr;
    }

    .experience-main img {
        height: 300px;
    }

    .experience-content {
        padding: 25px;
    }

    .experience-content h3 {
        font-size: 1.7rem;
    }


    /* WHY */

    .why-grid {
        grid-template-columns: 1fr;
    }


    /* STATS */

    .stats-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .stats h3 {
        font-size: 2.5rem;
    }


    /* NEWSLETTER */

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input,
    .newsletter button {
        width: min(100%, 350px);
    }


    /* EVENTOS */

    .hero-eventos {
        width: 92%;

        padding:
            calc(var(--header-height) + 40px)
            10px
            35px;
    }

    .hero-eventos h1 {
        font-size: 2.35rem;
    }

    .hero-eventos p {
        font-size: .96rem;
    }

    .filtros-eventos {
        width: 92%;

        margin-bottom: 35px;
    }

    .formulario-filtros {
        grid-template-columns: 1fr;

        gap: 13px;

        padding: 18px;
    }

    .acciones-filtros {
        grid-column: auto;

        width: 100%;
    }

    .boton-filtrar,
    .boton-limpiar {
        flex: 1;
    }

    .grid-eventos {
        width: 92%;

        grid-template-columns: 1fr;

        gap: 22px;

        margin-bottom: 65px;
    }

    .imagen-evento-wrap {
        height: 215px;
    }

    .contenido-evento {
        padding: 21px;
    }


    /* DETALLE EVENTO */

    .detalle-evento {
        padding:
            calc(var(--header-height) + 20px)
            0
            60px;
    }

    .detalle-evento .container {
        width: 92%;
    }

    .detalle-principal {
        padding: 27px 22px;

        border-radius: 18px;
    }

    .detalle-imagen-wrap,
    .detalle-imagen {
        height: 330px;
        min-height: 330px;

        border-radius: 18px;
    }

    .detalle-principal h1 {
        font-size: 2rem;

        margin-bottom: 24px;
    }

    .detalle-resumen,
    .detalle-datos {
        grid-template-columns: 1fr;
    }

    .detalle-acciones {
        flex-direction: column;

        align-items: stretch;
    }

    .detalle-boton-principal,
    .detalle-boton-secundario {
        width: 100%;
    }


    /* PÁGINAS INTERNAS */

    .page-header {
        padding:
            calc(var(--header-height) + 40px)
            20px
            55px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }


    /* CONTACTO */

    .contact-form-section {
        padding: 65px 0;
    }


    /* FOOTER */

    .footer-container {
        text-align: center;

        grid-template-columns: 1fr;
    }


    /* COOKIES */

    .cookies-banner {
        bottom: 0;

        flex-direction: column;

        align-items: stretch;

        padding: 15px;
    }

    .cookies-banner p {
        text-align: center;
    }

    .cookies-buttons {
        justify-content: center;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .logo img {
        height: 85px;
        max-width: 145px;
    }

    nav ul {
        gap: 8px 12px;
    }

    nav a {
        font-size: .74rem;
    }

    .btn-nav {
        padding: 8px 11px;

        font-size: .72rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: .95rem;
    }

    .hero-eventos h1 {
        font-size: 2.15rem;
    }

    .imagen-evento-wrap {
        height: 205px;
    }

    .detalle-principal {
        padding: 23px 18px;
    }

    .detalle-imagen-wrap,
    .detalle-imagen {
        height: 270px;
        min-height: 270px;
    }

    .detalle-principal h1 {
        font-size: 1.75rem;
    }

    .evento-no-encontrado-card {
        padding: 45px 25px;
    }

    .cookies-buttons {
        width: 100%;
    }

    .cookies-buttons button {
        flex: 1;
    }
}

/* ==========================================================================
   RESUMEN DE EVENTOS
   ========================================================================== */

.resumen-eventos {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}


/* --------------------------------------------------------------------------
   TOTAL EN BASE DE DATOS
   -------------------------------------------------------------------------- */

.resumen-total {
    display: flex;
    align-items: baseline;
    gap: 10px;

    flex-shrink: 0;
}

.resumen-total .contador-eventos {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.resumen-total span {
    font-size: 0.95rem;
    font-weight: 500;
}


/* --------------------------------------------------------------------------
   RESULTADOS / EVENTOS / PERMANENTES
   -------------------------------------------------------------------------- */

.resumen-resultados {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;

    gap: 0;
}


.resumen-dato {
    min-width: 130px;
    padding: 8px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border-left: 1px solid rgba(0, 0, 0, 0.12);
}


.resumen-dato:first-child {
    border-left: none;
}


.resumen-dato strong {
    display: block;

    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;

    line-height: 1.1;
}


.resumen-dato span {
    margin-top: 4px;

    font-size: 0.82rem;
    font-weight: 500;

    white-space: nowrap;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

    .resumen-eventos {
        flex-direction: column;
        align-items: center;

        gap: 20px;

        text-align: center;
    }


    .resumen-resultados {
        width: 100%;
        justify-content: center;
    }


    .resumen-dato {
        flex: 1;
        min-width: 0;
    }

}


/* ==========================================================================
   MÓVIL
   ========================================================================== */

@media (max-width: 600px) {

    .resumen-eventos {
        padding: 0 15px;
        gap: 18px;
    }


    .resumen-total {
        flex-direction: column;
        align-items: center;

        gap: 5px;
    }


    .resumen-total .contador-eventos {
        font-size: 2.1rem;
    }


    .resumen-resultados {
        width: 100%;
    }


    .resumen-dato {
        padding: 8px 10px;
    }


    .resumen-dato strong {
        font-size: 1.35rem;
    }


    .resumen-dato span {
        font-size: 0.72rem;
    }

}


/* ==========================================================================
   MÓVILES MUY PEQUEÑOS
   ========================================================================== */

@media (max-width: 400px) {

    .resumen-dato {
        padding: 8px 6px;
    }


    .resumen-dato strong {
        font-size: 1.2rem;
    }


    .resumen-dato span {
        font-size: 0.68rem;
    }

}


/* =========================================================
   EVENTOS.PHP
   FILTROS + ORDENACIÓN + PAGINACIÓN
   Diseño responsive definitivo
   ========================================================= */


/* ---------------------------------------------------------
   CONTENEDOR DE FILTROS
   --------------------------------------------------------- */

.filtros-eventos {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 28px;
}


/* ---------------------------------------------------------
   FORMULARIO PRINCIPAL DE FILTROS
   --------------------------------------------------------- */

.formulario-filtros {

    display: grid;

    /*
     * 4 columnas en escritorio.
     * Buscar ocupa dos.
     */
    grid-template-columns:
        2fr
        1fr
        1fr;

    gap: 16px;

    align-items: end;

    padding: 22px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid #e8eaed;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06);
}


/* ---------------------------------------------------------
   CAMPOS
   --------------------------------------------------------- */

.campo-filtro {

    min-width: 0;
    width: 100%;
}


.campo-filtro label {

    display: block;

    margin: 0 0 7px 3px;

    color: #475569;

    font-size: 0.82rem;

    font-weight: 700;
}


.campo-filtro input,
.campo-filtro select {

    width: 100%;

    min-height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #dfe3e8;

    border-radius: 10px;

    background: #ffffff;

    color: #1f2937;

    font-family: inherit;

    font-size: 0.92rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.campo-filtro input::placeholder {

    color: #94a3b8;
}


.campo-filtro input:hover,
.campo-filtro select:hover {

    border-color: #cbd5e1;
}


.campo-filtro input:focus,
.campo-filtro select:focus {

    outline: none;

    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(200, 162, 77, 0.13);
}


/* ---------------------------------------------------------
   DISTRIBUCIÓN DE LOS CAMPOS
   --------------------------------------------------------- */

/*
 * Buscar
 * ocupa las dos primeras columnas.
 */

.formulario-filtros .campo-filtro:first-child {

    grid-column: span 1;
}


/*
 * Los siguientes campos ocupan una columna.
 */

.formulario-filtros .campo-filtro:nth-child(2),
.formulario-filtros .campo-filtro:nth-child(3),
.formulario-filtros .campo-filtro:nth-child(4),
.formulario-filtros .campo-filtro:nth-child(5),
.formulario-filtros .campo-filtro:nth-child(6),
.formulario-filtros .campo-filtro:nth-child(7) {

    min-width: 0;
}


/* ---------------------------------------------------------
   BOTONES FILTRAR / LIMPIAR
   --------------------------------------------------------- */

.acciones-filtros {

    display: flex;

    gap: 9px;

    align-items: stretch;

    width: 100%;
}


.boton-filtrar,
.boton-limpiar {

    min-height: 48px;

    padding: 0 18px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 0.9rem;

    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.boton-filtrar {

    flex: 1;

    border: 1px solid var(--gold);

    background: var(--gold);

    color: var(--dark);
}


.boton-filtrar:hover {

    background: var(--gold-dark);

    border-color: var(--gold-dark);

    transform: translateY(-1px);
}


.boton-limpiar {

    display: inline-flex;

    flex: 1;

    align-items: center;

    justify-content: center;

    border: 1px solid #dfe3e8;

    background: #ffffff;

    color: #475569;
}


.boton-limpiar:hover {

    border-color: #cbd5e1;

    background: #f8fafc;
}


/* =========================================================
   RESUMEN + ORDENACIÓN
   ========================================================= */

.resumen-listado-eventos {

    width: 90%;

    max-width: 1200px;

    margin: 0 auto 30px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 14px 18px;

    background: #ffffff;

    border: 1px solid #e8eaed;

    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.05);
}


/* ---------------------------------------------------------
   CONTADORES
   --------------------------------------------------------- */

.resumen-tipos {

    display: flex;

    align-items: center;

    gap: 22px;

    flex-shrink: 0;
}


.resumen-tipo {

    display: inline-flex;

    align-items: baseline;

    gap: 6px;

    color: #64748b;

    font-size: 0.84rem;

    font-weight: 600;

    white-space: nowrap;
}


.resumen-tipo strong {

    color: var(--gold-dark);

    font-family: 'Poppins', sans-serif;

    font-size: 1.35rem;

    font-weight: 800;

    line-height: 1;
}

/* ---------------------------------------------------------
   OPCIONES: ORDENAR + MOSTRAR
   --------------------------------------------------------- */

.opciones-eventos {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    flex-wrap: wrap;
}


.formulario-orden,
.formulario-paginacion-opciones {

    display: flex;

    align-items: center;

    gap: 8px;

    margin: 0;
}


.formulario-orden label,
.formulario-paginacion-opciones label {

    color: #475569;

    font-size: 0.82rem;

    font-weight: 700;

    white-space: nowrap;
}


.formulario-orden select,
.formulario-paginacion-opciones select {

    min-height: 42px;

    padding: 0 34px 0 12px;

    border: 1px solid #dfe3e8;

    border-radius: 9px;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 0.84rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.formulario-orden select:hover,
.formulario-paginacion-opciones select:hover {

    border-color: #cbd5e1;
}


.formulario-orden select:focus,
.formulario-paginacion-opciones select:focus {

    outline: none;

    border-color: var(--gold);

    box-shadow:
        0 0 0 3px rgba(200, 162, 77, 0.13);
}


.formulario-paginacion-opciones span {

    color: #64748b;

    font-size: 0.82rem;

    font-weight: 600;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   SEPARADOR ENTRE ORDENAR Y MOSTRAR
   --------------------------------------------------------- */

.formulario-paginacion-opciones {

    padding-left: 12px;

    border-left: 1px solid #e5e7eb;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .opciones-eventos {

        margin-left: auto;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    /*
     * Los dos controles ocupan todo el ancho,
     * igual que los campos de los filtros superiores.
     */

    .opciones-eventos {

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 13px;
    }


    /*
     * Cada formulario se comporta como un campo
     * de filtro independiente.
     */

    .formulario-orden,
    .formulario-paginacion-opciones {

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 7px;

        margin: 0;

        padding: 0;

        border: none;

        background: transparent;
    }


    /*
     * MISMA ETIQUETA QUE LOS FILTROS SUPERIORES
     */

    .formulario-orden label,
    .formulario-paginacion-opciones label {

        display: block;

        width: 100%;

        margin: 0 0 0 3px;

        color: #475569;

        font-size: 0.82rem;

        font-weight: 700;

        white-space: nowrap;
    }


    /*
     * MISMO SELECT QUE LOS FILTROS SUPERIORES
     */

    .formulario-orden select,
    .formulario-paginacion-opciones select {

        width: 100%;

        min-height: 48px;

        padding: 0 14px;

        box-sizing: border-box;

        border: 1px solid #dfe3e8;

        border-radius: 10px;

        background: #ffffff;

        color: #1f2937;

        font-family: inherit;

        font-size: 0.92rem;

        font-weight: 400;

        cursor: pointer;

        transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background 0.2s ease;
    }


    .formulario-orden select:hover,
    .formulario-paginacion-opciones select:hover {

        border-color: #cbd5e1;
    }


    .formulario-orden select:focus,
    .formulario-paginacion-opciones select:focus {

        outline: none;

        border-color: var(--gold);

        box-shadow:
            0 0 0 3px rgba(200, 162, 77, 0.13);
    }


    /*
     * "POR PÁGINA"
     */

    .formulario-paginacion-opciones {

        display: grid;

        grid-template-columns: minmax(0, 1fr) auto;

        column-gap: 10px;

        row-gap: 7px;

        align-items: center;

        padding: 0;

        border: none;
    }


    .formulario-paginacion-opciones label {

        grid-column: 1 / -1;
    }


    .formulario-paginacion-opciones select {

        width: 100%;
    }


    .formulario-paginacion-opciones span {

        color: #64748b;

        font-size: 0.82rem;

        font-weight: 600;

        white-space: nowrap;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .opciones-eventos {

        gap: 12px;
    }


    .formulario-orden,
    .formulario-paginacion-opciones {

        width: 100%;

        padding: 0;

        border: none;

        background: transparent;
    }


    .formulario-orden select,
    .formulario-paginacion-opciones select {

        min-height: 46px;

        font-size: 0.92rem;
    }


    .formulario-paginacion-opciones {

        grid-template-columns: minmax(0, 1fr) auto;
    }


    .formulario-paginacion-opciones span {

        font-size: 0.78rem;
    }

}