/* VARIABLES Y RESET */
:root {
    --bg-deep: #080618;
    --bg-section: #0F0B24;
    --bg-card: #150F2E;
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-glow: rgba(139, 92, 246, 0.35);
    --text-light: #F0EBFF;
    --text-muted: rgba(240, 235, 255, 0.55);
    --glass: rgba(139, 92, 246, 0.07);
    --border-glass: rgba(139, 92, 246, 0.22);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.25);
    --font-main: 'Cinzel', serif;
    --font-title: 'Cinzel', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h4, .logo { font-family: var(--font-title); }
h3 { font-family: 'Cormorant Garamond', serif; }
p { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(90deg, #A78BFA, #E879F9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 10%; background: var(--glass); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass); position: fixed;
    width: 100%; top: 0; z-index: 1000;
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 75px; width: auto; display: block; }
.footer-about .logo img { height: 48px; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-light); }

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #7C3AED); color: white; border: none;
    padding: 1.1rem 2.8rem; border-radius: 50px; cursor: pointer;
    font-weight: bold; transition: 0.3s; font-size: 1rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 35px rgba(139, 92, 246, 0.55); transform: translateY(-2px); }

.btn-secondary {
    background: transparent; color: var(--text-light); border: 1px solid var(--accent);
    padding: 1rem 2rem; border-radius: 50px; cursor: pointer;
    text-decoration: none; transition: 0.3s; display: inline-block;
}
.btn-secondary:hover { background: var(--accent); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4); }

.btn-icon {
    background: var(--glass); border: 1px solid var(--border-glass);
    color: var(--text-light); padding: 0.8rem; border-radius: 12px; cursor: pointer; transition: 0.3s;
}
.btn-icon:hover { background: var(--accent); border-color: var(--accent); }

/* HERO */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
    background: linear-gradient(to bottom, rgba(8, 6, 24, 0.45), var(--bg-deep)), url('../assets/herotarot.png');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.08) 0%, var(--bg-deep) 75%); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 20px; }
.hero-eyebrow {
    font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent-light); opacity: 0.85; margin-bottom: 1.2rem;
    font-weight: 600;
}
.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.1; margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    color: var(--text-muted); line-height: 1.8;
    margin-bottom: 2.5rem; max-width: 580px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* FILTROS MEJORADOS */
.filter-section { padding: 10rem 10% 2rem 10%; background: var(--bg-section); }
.filters-container-box { display: flex; flex-direction: column; gap: 1rem; }
.filters-wrapper { display: flex; gap: 1rem; flex-wrap: wrap; align-items: stretch; }

.search-box {
    flex: 2; min-width: 240px; background: var(--glass); border: 1px solid var(--border-glass);
    border-radius: 12px; display: flex; align-items: center; padding: 0 1.2rem;
    backdrop-filter: blur(10px); height: 52px;
}
.search-box input {
    background: transparent; border: none; color: var(--text-light); padding: 0 0.9rem;
    width: 100%; outline: none; font-family: var(--font-main); font-size: 0.95rem;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box i { opacity: 0.55; flex-shrink: 0; color: var(--accent-light); }

.filter-select {
    flex: 1; min-width: 160px; background: var(--glass); color: var(--text-light);
    border: 1px solid var(--border-glass); border-radius: 12px;
    padding: 0 2.8rem 0 1.2rem; cursor: pointer; outline: none; height: 52px;
    font-family: var(--font-main); font-size: 0.95rem;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    backdrop-filter: blur(10px);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23A78BFA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.filter-select:hover { border-color: rgba(139, 92, 246, 0.5); }
.filter-select:focus { border-color: var(--accent); box-shadow: 0 0 18px rgba(139, 92, 246, 0.22); }
.filter-select option { background: var(--bg-card); color: var(--text-light); }

.results-info { font-size: 0.85rem; opacity: 0.6; margin-top: 0.5rem; }

/* DIRECTORIO & CARDS */
.directory-container { padding: 3rem 10% 8rem 10%; min-height: 50vh; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2.5rem; position: relative;}
#directorio-preview .grid-container { grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; }
.card {
    background: var(--bg-card); border: 1px solid var(--border-glass);
    padding: 22px; border-radius: 20px; backdrop-filter: blur(10px); transition: 0.4s;
    display: flex; flex-direction: column; box-shadow: var(--shadow-card);
}
.card:hover { transform: translateY(-10px); border-color: var(--accent-light); box-shadow: var(--shadow-hover); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 15px; margin-bottom: 1.2rem; background: #1a0533; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.card-tag {
    display: inline-block;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: var(--accent-light);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 2px 7px;
}
.stars { color: #E2C96B; margin: 8px 0; font-size: 0.95rem; }

/* VISIBILIDAD PREMIUM — badges en tarjetas */
.card-vis-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.card-vis-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px;
}
.card-vis-badge--destacado {
    background: linear-gradient(135deg, rgba(234,179,8,0.22), rgba(251,191,36,0.12));
    border: 1px solid rgba(234,179,8,0.45);
    color: #fcd34d;
}
.card-vis-badge--verificado {
    background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(167,139,250,0.12));
    border: 1px solid rgba(167,139,250,0.45);
    color: #c4b5fd;
}
.card-vis-badge--destacado::before { content: "✦ "; }
.card-vis-badge--verificado::before { content: "✓ "; }

/* Tarjeta grande */
.card--grande {
    border-color: rgba(167,139,250,0.4);
    box-shadow: 0 0 0 1px rgba(167,139,250,0.2), var(--shadow-card);
}
/* Wrapper imagen con fondo blurreado (tarjeta grande) */
.card-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.2rem;
    background: #1a0533;
    aspect-ratio: 2/1;
}
.card-img-wrap::before {
    content: '';
    position: absolute;
    inset: -8%;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6) saturate(1.3);
    z-index: 0;
}
.card .card-img-main {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: unset !important;
    object-fit: contain;
    z-index: 1;
    border-radius: 0;
    margin: 0;
}

@media (min-width: 700px) {
    .card--grande { grid-column: span 2; }
}

/* LOADER DE ESTADO */
.loader-container {
    grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 4rem 0; opacity: 0.7;
}
.loader {
    width: 48px; height: 48px; border: 4px solid var(--border-glass);
    border-bottom-color: var(--accent); border-radius: 50%;
    display: inline-block; box-sizing: border-box;
    animation: rotation 1s linear infinite; margin-bottom: 1rem;
}
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ESTADO VACÍO */
.no-results-box { 
    text-align: center; padding: 5rem 2rem; display: flex; flex-direction: column; 
    align-items: center; gap: 1.5rem; opacity: 0.8;
}

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { font-size: 1.1rem; opacity: 0.7; margin-top: 0.75rem; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }

/* DISCIPLINAS */
.disciplines-container { padding: 8rem 10%; }
.disciplines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.discipline-card {
    background: var(--bg-card); border: 1px solid var(--border-glass);
    padding: 3rem 2rem; border-radius: 24px; text-align: center; transition: 0.3s;
    box-shadow: var(--shadow-card);
}
.discipline-card:hover { transform: translateY(-8px); border-color: var(--accent-light); box-shadow: var(--shadow-hover); }
.disciplines-more {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.3rem;
    font-family: var(--font-title);
    color: var(--text-muted);
    letter-spacing: 2px;
}
.discipline-card i { width: 48px; height: 48px; color: var(--accent-light); margin-bottom: 1.2rem; }
.discipline-card h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.discipline-card p { color: var(--text-muted); font-size: 1.2rem; }

/* CÓMO FUNCIONA */
.steps-section {
    padding: 6rem 10%;
    background: var(--bg-section);
    text-align: center;
}
.steps-section .section-title { margin-bottom: 3.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; position: relative; }
.step {
    background: var(--bg-card); border: 1px solid var(--border-glass);
    border-radius: 24px; padding: 2.5rem 2rem; transition: 0.3s; position: relative;
    box-shadow: var(--shadow-card);
}
.step:hover { transform: translateY(-8px); border-color: var(--accent-light); box-shadow: var(--shadow-hover); }
.step-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(232, 121, 249, 0.1));
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem auto;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.step-icon i { width: 28px; height: 28px; color: var(--accent-light); }
.step:hover .step-icon {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* CTA */
.cta-section { padding: 5rem 10%; background: var(--bg-deep); }
.cta-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(167, 139, 250, 0.06));
    border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 28px; padding: 5rem 3rem; text-align: center;
    backdrop-filter: blur(12px); position: relative; overflow: hidden;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.cta-card::before {
    content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 500px; height: 500px; background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 65%);
    pointer-events: none;
}
.cta-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.cta-card p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* CONTACTO */
.contact-section { padding: 6rem 10% 8rem; background: var(--bg-section); text-align: center; }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-inner .section-title { margin-bottom: 1.5rem; }
.contact-lead { color: var(--text-muted); font-size: 1.25rem; line-height: 1.8; margin-bottom: 3.5rem; }

.contact-items {
    border-top: 1px solid var(--border-glass);
}
.contact-item {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border-glass);
    text-decoration: none; color: inherit;
    transition: 0.3s;
}
.contact-item i { color: var(--accent-light); width: 26px; height: 26px; flex-shrink: 0; transition: 0.3s; }
.contact-item-text { flex: 1; text-align: left; }
.contact-item-label { display: block; font-family: 'Cinzel', serif; font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.contact-item-value { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--text-light); font-weight: 500; transition: 0.3s; }
.contact-item-arrow { color: var(--text-muted); width: 20px; height: 20px; flex-shrink: 0; transition: 0.3s; }
.contact-item:hover .contact-item-value {
    background: linear-gradient(90deg, #A78BFA, #E879F9);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contact-item:hover .contact-item-arrow { color: var(--accent-light); transform: translate(3px, -3px); }
.contact-item:hover > i { filter: drop-shadow(0 0 8px rgba(167,139,250,0.6)); }
.contact-form { background: var(--bg-card); padding: 3rem; border-radius: 24px; border: 1px solid var(--border-glass); backdrop-filter: blur(10px); box-shadow: var(--shadow-card); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.form-control {
    width: 100%; background: rgba(139, 92, 246, 0.05); border: 1px solid var(--border-glass);
    padding: 1.2rem; border-radius: 12px; color: var(--text-light); outline: none; transition: 0.3s; font-family: var(--font-main);
}
.form-control::placeholder { color: rgba(240, 235, 255, 0.3); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 20px rgba(139, 92, 246, 0.25); background: rgba(139, 92, 246, 0.08); }
textarea.form-control { resize: vertical; min-height: 150px; }

.hidden { display: none !important; }

/* FOOTER */
.main-footer { padding: 5rem 10% 2rem 10%; background: #04030F; border-top: 1px solid var(--border-glass); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-about .logo { font-size: 1.3rem; margin-bottom: 1rem; }
.footer-about p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-links h4, .footer-social h4 { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-light); opacity: 0.7; margin-bottom: 1.2rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.social-icons { display: flex; gap: 1rem; }
.social-btn {
    width: 40px; height: 40px; background: var(--glass); border: 1px solid var(--border-glass);
    border-radius: 10px; padding: 9px; cursor: pointer; transition: 0.3s; color: var(--text-light);
    display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); color: white; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: var(--text-muted); opacity: 0.5; padding-top: 2rem; border-top: 1px solid var(--border-glass); }
.admin-secret-link {
    color: rgba(240, 235, 255, 0.3);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: color 0.2s;
}
.admin-secret-link:hover { color: var(--accent-light); }

/* MODAL DE PERFIL INDIVIDUAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 3, 15, 0.88); backdrop-filter: blur(12px);
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s ease; padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-card); border: 1px solid var(--border-glass);
    border-radius: 24px; width: 100%; max-width: 900px; max-height: 90vh;
    overflow-y: auto; position: relative;
    transform: translateY(50px) scale(0.95);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(139, 92, 246, 0.15);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(139, 92, 246, 0.15); border: 1px solid var(--border-glass); color: var(--text-light);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s; z-index: 10;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }

.modal-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0; align-items: start; }
.modal-image-container { position: sticky; top: 0; width: 100%; height: 78vh; max-height: 78vh; overflow: hidden; }
.modal-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.modal-info { padding: 3.5rem 3rem 3.5rem 2.5rem; }

.modal-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.2rem; }
.modal-badge {
    background: rgba(139, 92, 246, 0.15); color: var(--accent-light);
    padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
    display: inline-block; border: 1px solid var(--border-glass);
}
.modal-title { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1.2; color: var(--text-light); }
.modal-bio { margin: 1.5rem 0; color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
.modal-stats {
    display: flex; gap: 3rem; margin-bottom: 2.5rem;
    border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass);
    padding: 1.5rem 0;
}
.stat-item h5 { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 1px;}
.stat-item p { font-size: 1.1rem; font-weight: bold; color: var(--text-light); display: flex; align-items: center; gap: 8px;}
.stat-item i { color: var(--accent-light); width: 18px; height: 18px; }

/* ANIMACIONES (SCROLL REVEAL) */
.reveal {
    opacity: 0; transform: translateY(40px); visibility: hidden;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); visibility: visible; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; visibility: visible; transition: none; }
}

/* ==========================================
   ANIMACIONES DE HOVER
   ========================================== */

/* NAV — subrayado que crece desde la izquierda */
.nav-links a {
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1.5px;
    background: var(--accent-light);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }

/* LOGO — glow sutil */
.logo img { transition: filter 0.3s; }
.logo:hover img { filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.6)); }

/* BOTÓN PRIMARY — shimmer sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 160%; }

/* BOTÓN SECONDARY — relleno deslizante */
.btn-secondary {
    background-image: linear-gradient(135deg, var(--accent) 50%, transparent 50%);
    background-size: 250% 100%;
    background-position: right;
    transition: background-position 0.4s ease, box-shadow 0.3s, color 0.3s;
}
.btn-secondary:hover { background-position: left; color: white; }

/* CARDS PROFESIONALES — zoom de imagen */
.card { overflow: hidden; }
.card img { transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.06); }
.card:hover .card-img-main { transform: none !important; }

/* Botón credenciales + accordion */
.btn-ver-cred {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: rgba(244, 244, 247, 0.75);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-ver-cred:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.6);
    color: #f4f4f7;
}

.btn-ver-cred .cred-chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn-ver-cred.open .cred-chevron { transform: rotate(180deg); }

.cred-accordion-list {
    margin-top: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.cred-item-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cred-item-row:last-child { border-bottom: none; }

.cred-item-row:hover { background: rgba(139, 92, 246, 0.1); }

.cred-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    flex-shrink: 0;
    opacity: 0.85;
}

.cred-item-icon svg { width: 13px; height: 13px; }

.cred-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.cred-item-nombre {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cred-item-tipo {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.85;
}

.cred-item-arrow {
    color: rgba(244, 244, 247, 0.35);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: color 0.15s;
}

.cred-item-row:hover .cred-item-arrow { color: rgba(244, 244, 247, 0.8); }

/* Botón WhatsApp modal */
.btn-wa-link { text-decoration: none; display: block; }

.btn-wa {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #25D366;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-wa:hover { background: #1ebe5d; }

.btn-wa--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255,255,255,0.1);
    color: rgba(244,244,247,0.6);
}


/* Redes sociales en modal de perfil */
.modal-redes {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.modal-red-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--red-color, #f4f4f7);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, border-color 0.2s;
    flex-shrink: 0;
}

.modal-red-btn svg {
    width: 18px;
    height: 18px;
}

.modal-red-btn:hover {
    background: color-mix(in srgb, var(--red-color, #f4f4f7) 20%, transparent);
    border-color: color-mix(in srgb, var(--red-color, #f4f4f7) 50%, transparent);
    transform: translateY(-2px);
}

/* Modal credenciales público */
.cred-modal-content {
    max-width: 480px;
    padding: 2.5rem 2rem;
}

.cred-modal-body {
    padding-top: 0.5rem;
}

.cred-modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--accent-light, #a78bfa);
    margin: 0 0 0.3rem;
    text-align: center;
    letter-spacing: 1px;
}

.cred-modal-sub {
    text-align: center;
    color: rgba(244, 244, 247, 0.6);
    margin: 0 0 1.75rem;
    font-size: 0.9rem;
}

.cred-doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 0.65rem;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.cred-doc-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.cred-doc-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    border-radius: 10px;
    color: var(--accent-light);
    flex-shrink: 0;
}

.cred-doc-info {
    flex: 1;
    min-width: 0;
}

.cred-doc-nombre {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cred-doc-tipo {
    display: block;
    font-size: 0.72rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
    opacity: 0.85;
}

.cred-doc-ver {
    color: rgba(244, 244, 247, 0.5);
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.cred-doc-item:hover .cred-doc-ver {
    color: rgba(244, 244, 247, 0.9);
}

/* Visor de credencial (lightbox) */
.cred-viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cred-viewer-overlay.active { opacity: 1; }
.cred-viewer-overlay.hidden { display: none; }

.cred-viewer-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f4f4f7;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2101;
    transition: background 0.2s;
}

.cred-viewer-close:hover { background: rgba(255, 255, 255, 0.22); }

.cred-viewer-inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cred-viewer-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.cred-viewer-iframe {
    width: 85vw;
    height: 88vh;
    border: none;
    border-radius: 8px;
    background: white;
}

/* DISCIPLINE CARDS — ícono flota hacia arriba */
.discipline-card { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s; }
.discipline-card i { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); display: inline-block; }
.discipline-card:hover i { transform: scale(1.25) translateY(-6px); }
.discipline-card:hover h3 { color: var(--accent-light); }
.discipline-card h3 { transition: color 0.3s; }

/* STEPS — número hace pulso */
.step { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s; }
/* el hover del step-icon ya está definido en su bloque */

/* SEARCH BOX — glow al pasar el mouse */
.search-box { transition: border-color 0.3s, box-shadow 0.3s; }
.search-box:hover { border-color: rgba(139, 92, 246, 0.5); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 18px rgba(139, 92, 246, 0.22); }

/* SOCIAL ICONS — escala y rotación */
.social-btn { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s; }
.social-btn:hover { transform: scale(1.2) rotate(-8deg); }

/* FOOTER LINKS — deslizamiento */
.footer-links a { position: relative; padding-left: 0; transition: padding-left 0.25s, color 0.25s; }
.footer-links a:hover { padding-left: 8px; }

/* CTA CARD — glow en hover */
.cta-card { transition: border-color 0.4s, box-shadow 0.4s; }
.cta-card:hover { border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 0 90px rgba(139, 92, 246, 0.18), inset 0 1px 0 rgba(255,255,255,0.07); }

/* SECTION BACKGROUND ALTERNATION */
body { background-color: var(--bg-deep); }
.disciplines-container { background: var(--bg-deep); }
.directory-container { background: var(--bg-deep); }

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MEDIA QUERIES RESPONSIVE */
@media (max-width: 992px) {
    .contact-item-value { font-size: 1.35rem; }
    .info-list { align-items: center; }
    .disciplines-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #0F0B24;
        border-left: 1px solid var(--border-glass);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 0.95rem; }

    /* FILTROS MÓVIL */
    .filter-section { padding: 7rem 5% 2rem 5%; }
    .filter-section .section-title { font-size: 1.8rem; margin-bottom: 1.5rem !important; text-align: center; }
    .filters-container-box { gap: 0.85rem; }
    .filters-wrapper { flex-direction: column; gap: 0.75rem; }
    .search-box { min-width: unset; width: 100%; height: 50px; padding: 0 1rem; }
    .search-box input { padding: 0 0.7rem; font-size: 0.95rem; }
    .filter-select {
        min-width: unset; width: 100%; height: 50px;
        padding: 0 2.6rem 0 1rem;
        background-position: right 0.9rem center;
    }
    .btn-icon {
        width: 100%; height: 50px; border-radius: 12px;
        justify-content: center; display: flex; align-items: center; gap: 0.6rem;
        background: var(--glass); border: 1px solid var(--border-glass);
        color: var(--text-light); font-family: var(--font-main); font-size: 0.9rem;
        backdrop-filter: blur(10px); margin-top: 0.25rem;
    }
    .btn-icon::after { content: 'Limpiar filtros'; font-size: 0.9rem; letter-spacing: 0.02em; }
    .btn-icon:hover { background: var(--accent); border-color: var(--accent); }
    .results-info { text-align: center; margin-top: 0.75rem; font-size: 0.8rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .disciplines-grid { grid-template-columns: 1fr; }
    .navbar { padding: 0.7rem 5%; }
    .logo img { height: 42px; }
    .footer-about .logo img { height: 44px; }
    .disciplines-container, .steps-section, .cta-section, .contact-section { padding-left: 5%; padding-right: 5%; }
    .contact-form { padding: 2rem 1.5rem; }

    .modal-grid { grid-template-columns: 1fr; }
    .modal-image-container { position: relative; height: 250px; max-height: 250px; }
    .modal-image { position: relative; }
    .modal-info { padding: 2rem 1.5rem; }
    .modal-stats { flex-direction: column; gap: 1.5rem; }

    .btn-wa-link { display: inline-block; }
    .btn-wa { width: auto; padding: 0.9rem 1.4rem; font-size: 0.95rem; }
    .btn-ver-cred { display: inline-flex; width: auto; padding: 0.4rem 0.7rem; font-size: 0.72rem; }

    .hero { height: auto; min-height: 100vh; padding: 7rem 0 3rem; background-attachment: scroll; }
    .hero-content h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .hero-eyebrow { font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 0.9rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.8rem; line-height: 1.6; }
    .hero-actions { gap: 0.7rem; }
    .btn-primary, .btn-secondary { padding: 0.9rem 1.8rem; font-size: 0.9rem; }
}

/* ========================================== */
/* INTRO SPLASH — Bienvenidos a LA TRAMA      */
/* ========================================== */
html.intro-active, html.intro-active body { overflow: hidden; }

.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #050212;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: introFadeOut 0.9s ease-in 4.6s forwards;
}

.intro-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 420px at 85% 5%, rgba(255, 180, 110, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 1200px 520px at 15% 100%, rgba(255, 110, 170, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 950px 700px at 70% 55%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 750px 600px at 10% 25%, rgba(90, 50, 180, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, #030114 0%, #0a051e 22%, #15072e 44%, #1e0a38 62%, #2a0f40 78%, #3d1545 92%, #4a1a48 100%);
    opacity: 0;
    animation: introStarsIn 1.8s ease-out 0s forwards;
}

.intro-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(240, 235, 255, 0.8), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(167, 139, 250, 0.9), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(240, 235, 255, 0.7), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(232, 121, 249, 0.8), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(240, 235, 255, 0.6), transparent),
        radial-gradient(1px 1px at 10% 60%, rgba(167, 139, 250, 0.7), transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(240, 235, 255, 0.9), transparent),
        radial-gradient(1px 1px at 30% 50%, rgba(232, 121, 249, 0.6), transparent),
        radial-gradient(1.2px 1.2px at 75% 40%, rgba(240, 235, 255, 0.9), transparent),
        radial-gradient(1px 1px at 5% 85%, rgba(240, 235, 255, 0.7), transparent),
        radial-gradient(1px 1px at 95% 90%, rgba(167, 139, 250, 0.8), transparent);
    background-size: 100% 100%;
    opacity: 0;
    animation: introStarsIn 1.5s ease-out 0.3s forwards, introStarsTwinkle 3s ease-in-out 1.8s infinite;
}

.intro-content {
    position: relative;
    text-align: center;
    padding: 0 2rem;
}

.intro-welcome {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(0.75rem, 1.8vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: var(--accent-light);
    opacity: 0;
    transform: translateY(15px);
    animation: introFadeUp 0.9s ease-out 0.4s forwards;
    margin-bottom: 1.2rem;
    padding-left: 0.6em;
}

.intro-title-wrap {
    position: relative;
    display: inline-block;
}

.intro-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 11vw, 7.5rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    background: linear-gradient(90deg, #F0EBFF 0%, #A78BFA 40%, #E879F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
    opacity: 0;
    transform: scale(0.92);
    animation: introTitleIn 1.3s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
    position: relative;
    z-index: 1;
}

.intro-shooting-star {
    position: absolute;
    left: -6%;
    right: -6%;
    top: -55%;
    width: 112%;
    height: 170%;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}

.star-trail {
    stroke-dasharray: 780;
    stroke-dashoffset: 780;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.85)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    animation: drawStarTrail 1s cubic-bezier(0.4, 0, 0.2, 1) 2.3s forwards;
}

.star-sparkle {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 8px #FFFFFF) drop-shadow(0 0 16px #A78BFA);
    animation: starAppear 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 3.1s forwards, starPulse 1.6s ease-in-out 3.7s infinite;
}

@keyframes drawStarTrail {
    to { stroke-dashoffset: 0; }
}

@keyframes starAppear {
    0% { opacity: 0; }
    60% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes starPulse {
    0%, 100% { filter: drop-shadow(0 0 8px #FFFFFF) drop-shadow(0 0 16px #A78BFA); }
    50% { filter: drop-shadow(0 0 14px #FFFFFF) drop-shadow(0 0 28px #E879F9); }
}

.intro-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-light), #E879F9, var(--accent-light), transparent);
    margin: 1.8rem auto 0;
    animation: introLine 1.1s ease-out 2s forwards;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

@keyframes introFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes introTitleIn {
    to { opacity: 1; transform: scale(1); }
}

@keyframes introLine {
    to { width: min(260px, 70vw); }
}

@keyframes introStarsIn {
    to { opacity: 1; }
}

@keyframes introStarsTwinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes introFadeOut {
    to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-splash { animation: introFadeOut 0.4s ease-in 1.8s forwards; }
    .intro-welcome, .intro-title, .intro-line, .intro-stars, .intro-sky {
        animation-duration: 0.3s;
        animation-delay: 0s;
    }
    .star-trail, .star-sparkle {
        animation-duration: 0.4s;
        animation-delay: 0.5s;
    }
}