/* =========================================
   DP MAGICIAN — ESTILO FINAL REFINADO
   ========================================= */

:root {
    --bg-deep: #070d1f;
    --text-main: #eaf0ff;
    --text-muted: rgba(234, 240, 255, .7);
    --accent: #4f8cff;
    --gold: #d4af37;
    --container: 1120px;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background simulado */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 35% 35%, rgba(80, 140, 255, .25) 0%, rgba(80, 140, 255, 0) 60%),
        linear-gradient(to bottom, rgba(7, 13, 31, 0.9), rgba(7, 13, 31, 1));
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

svg {
    fill: currentColor;
}

.container {
    max-width: var(--container);
    width: 90%;
    margin: 0 auto;
}

main#contenido {
    flex: 1;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    transition: background 0.3s ease;
    padding: 10px 0;
}

.site-header.is-scrolled {
    background: rgba(7, 13, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    color: var(--text-main);
}

.nav-link:hover,
.nav-link.is-active {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-social {
    display: flex;
    gap: 12px;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 12px;
}

/* Hide mobile lang switch by default on desktop */
.nav-lang-mobile {
    display: none;
}

.lang-switch {
    display: flex;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 12px;
    align-items: center;
}

.lang-link {
    color: var(--text-muted);
    transition: 0.2s;
    opacity: 0.6;
}

.lang-link:hover {
    color: white;
    opacity: 1;
}

.lang-link.active {
    color: var(--accent);
    opacity: 1;
    cursor: default;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 980px) {
    .header-social {
        border-right: none;
        padding-right: 0;
    }

    /* Hide desktop lang switch on mobile */
    .header-right .lang-switch {
        display: none;
    }

    /* Mobile Menu Lang Switch */
    .nav-lang-mobile {
        margin-top: auto;
        padding-top: 20px;
        /* border-top removed as per user request */
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .nav-lang-mobile .lang-link {
        font-size: 1.1rem;
        padding: 5px;
    }
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-aurora {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    height: 100%;
    position: relative;
    padding-bottom: 0;
}

.hero-copy {
    padding-bottom: 12vh;
    align-self: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 1;
    margin: 0 0 16px 0;
    font-weight: 700;
    font-style: normal;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 24px;
    display: block;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 45ch;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    flex: 1;
}

.hero-img {
    height: 92vh;
    width: auto;
    max-width: none;
    filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.5));
    margin-bottom: -1px;
    object-fit: cover;
    object-position: bottom center;
}

.gte-badge {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 28px 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    min-width: auto;
    max-width: 90%;
}

.gte-badge:hover {
    background: rgba(20, 25, 40, 0.95);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.6);
}

.gte-icon {
    width: 36px;
    height: auto;
}

.gte-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.gte-big {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.gte-small {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4f8cff, #3e70cc);
    color: white;
    box-shadow: 0 4px 20px rgba(79, 140, 255, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Grouping buttons for mobile centering */
.btn-group-mobile-center {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (max-width: 980px) {
    .btn-group-mobile-center {
        justify-content: center;
    }
}

/* --- CITAS --- */
.section-quote {
    padding: 80px 0;
    text-align: center;
    background: #050814;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 1;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    color: #fff;
    margin: 0;
}

/* --- SECCIONES CONTENIDO --- */
.section-content {
    padding-top: 100px;
    padding-bottom: 0;
    background: transparent;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.col-text {
    padding-bottom: 100px;
    align-self: center;
}

.text-group {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.col-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.content-img-lg {
    width: 100%;
    height: auto;
    margin-bottom: -1px;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.3));
    object-fit: cover;
}

/* --- PREMIOS & COLABS --- */
.section-centered {
    padding: 100px 0;
    text-align: center;
    background: transparent;
}

.center-title {
    font-size: 2.2rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.static-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.award-link {
    display: inline-block;
    transition: 0.3s;
}

.award-img {
    height: 180px;
    width: auto;
    opacity: 0.8;
    filter: grayscale(1);
    transition: 0.3s;
}

.award-link:hover .award-img {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

.collab-link img {
    height: 70px;
    width: auto;
    opacity: 0.8;
    transition: 0.3s;
}

.collab-link:hover img {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 980px) {
    .collab-link img {
        height: 100px;
        max-width: 90%;
    }
}

.spacer-big {
    height: 100px;
}

/* --- FINAL CTA --- */
.final-cta {
    padding: 100px 0;
    background: transparent;
}

/* Espaciado ajustado para galería */
.tight-spacing .final-cta {
    padding-top: 40px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* --- FOOTER --- */
.site-footer {
    padding: 60px 0;
    background: #02040a;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    width: 250px;
}

.footer-center {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex: 1;
}

.footer-center a:hover {
    color: var(--accent);
}

.footer-right {
    width: 250px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --- RESPONSIVE MOBILE OPTIMIZADO --- */
@media (max-width: 980px) {
    .container {
        width: 95%;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .header-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .brand {
        z-index: 20;
        flex-shrink: 0;
    }

    .brand-text {
        display: none;
    }

    .header-right {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-left: 10px;
    }

    .header-social {
        position: static !important;
        transform: none !important;
        display: flex !important;
        gap: 8px;
        align-items: center;
        margin: 0 auto;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }

    .header-social svg {
        width: 14px;
        height: 14px;
    }

    .nav-toggle {
        flex-shrink: 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        z-index: 9998;
        pointer-events: none;
        display: block !important;
    }

    .nav-menu {
        pointer-events: auto;
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        min-width: 250px;
        height: 100%;
        background: rgba(7, 13, 31, 1);
        display: flex;
        flex-direction: column;
        padding: 80px 30px;
        gap: 25px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.1rem;
        font-weight: 400;
        font-style: normal;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.8;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 12px;
        display: block;
    }

    .nav-link.is-active,
    .nav-link:hover {
        opacity: 1;
        color: white;
        padding-left: 10px;
    }

    .nav-toggle {
        display: block;
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 9999;
    }

    .nav-toggle-lines {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        margin: 19px auto;
        position: relative;
    }

    .nav-toggle-lines::before,
    .nav-toggle-lines::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: white;
        left: 0;
    }

    .nav-toggle-lines::before {
        top: -8px;
    }

    .nav-toggle-lines::after {
        top: 8px;
    }

    /* AJUSTES QUIRÚRGICOS HERO MÓVIL */
    .hero {
        height: auto;
        min-height: auto;
        padding-top: 95px;
        padding-bottom: 0px;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-copy {
        order: 1;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }

    .hero h1 {
        white-space: normal;
        font-size: 2.6rem;
        margin-bottom: 10px;
    }

    .lead {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-ctas {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
        margin-bottom: 15px;
    }

    .hero-ctas .btn {
        padding: 12px 10px;
        font-size: 0.85rem;
        flex: 1;
        white-space: nowrap;
    }

    .hero-badges {
        justify-content: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .hero-visual {
        order: 2;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        position: relative;
        margin-top: 10px;
    }

    /* REPARACIÓN BOTÓN GTE MÓVIL */
    .gte-badge {
        position: absolute;
        bottom: 85px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: auto;
        max-width: 95%;
        white-space: nowrap;
        animation: none !important;
        background: rgba(10, 15, 30, 0.95);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        margin: 0;
        z-index: 10;
        padding: 8px 40px;
        justify-content: center;
    }

    .gte-badge:hover {
        transform: translateX(-50%);
    }

    .gte-big {
        font-size: 0.75rem;
    }

    .gte-small {
        font-size: 0.65rem;
    }

    .gte-icon {
        width: 28px;
    }

    .hero-img {
        height: auto;
        width: auto;
        max-height: 450px;
        max-width: 95%;
        margin-bottom: 0;
        z-index: 1;
    }

    /* FIN AJUSTES QUIRÚRGICOS */

    /* AJUSTE TÍTULOS MÓVIL (PREMIOS/COLABORACIONES) */
    .center-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
        padding-left: 0;
        padding-right: 0;
    }

    .grid-layout {
        display: flex;
        flex-direction: column;
        gap: 50px;
        text-align: center;
        align-items: center;
    }

    .layout-reverse .col-visual,
    .layout-normal .col-visual {
        order: 2;
    }

    .layout-reverse .col-text,
    .layout-normal .col-text {
        order: 1;
        padding-bottom: 0;
    }

    .col-visual {
        align-items: flex-end;
        justify-content: center;
    }

    .content-img-lg {
        max-height: 350px;
        width: auto;
        margin: 0 auto;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .cta-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        flex-wrap: nowrap;
    }

    @media (max-width: 400px) {
        .cta-actions {
            flex-wrap: wrap;
        }
    }

    .site-footer {
        padding: 40px 0;
        text-align: center;
    }

    .footer-grid {
        flex-direction: column;
        gap: 0;
    }

    .footer-center,
    .footer-right {
        display: none !important;
    }

    .footer-left {
        width: auto;
        margin: 0 auto;
        opacity: 0.6;
        font-size: 0.85rem;
    }

    .static-row {
        gap: 30px;
    }

    .award-img {
        height: 90px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- BIOGRAFÍA ESPECÍFICO --- */
.page-bio .bio-hero {
    padding-top: 100px;
    padding-bottom: 30px;
    text-align: center;
    background: transparent;
    border-bottom: none;
}

.page-bio .bio-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.page-bio .bio-hero .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.6;
}

.timeline-date {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(79, 140, 254, 0.1);
    border: 1px solid rgba(79, 140, 254, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-bio .col-visual {
    align-items: center !important;
    display: flex;
    justify-content: center;
}

.page-bio .section-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.22rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-bio .section-content {
    padding-top: 40px;
    padding-bottom: 100px;
    background: transparent;
    border-bottom: none;
}

.bio-img-small {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
}

@media (max-width: 980px) {
    .page-bio .grid-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .page-bio .layout-reverse .col-text,
    .page-bio .layout-normal .col-text {
        order: 1 !important;
    }

    .page-bio .layout-reverse .col-visual,
    .page-bio .layout-normal .col-visual {
        order: 2 !important;
    }

    .page-bio .section-content h2 {
        font-size: 1.8rem;
    }

    .page-bio .bio-hero h1 {
        font-size: 2.5rem;
    }
}

/* --- CONTACT PAGE --- */
.contact-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.premium-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-text {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-content-section {
    padding-bottom: 100px;
}

.contact-centered-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper {
    width: 100%;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.05);
}

.form-group select option {
    background: var(--bg-deep);
    color: #fff;
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-left: 5px;
    display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ff4d4d;
}

.form-group.has-error .error-msg {
    display: block;
}

.h-pot-field {
    display: none;
}

.btn-submit {
    background: var(--accent);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(79, 140, 255, 0.5);
    filter: brightness(1.1);
}

.form-status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 13, 31, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.form-status.active {
    opacity: 1;
    visibility: visible;
}

.status-content {
    background: #111a35;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-status.active .status-content {
    transform: scale(1);
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.success-icon {
    background: rgba(79, 140, 255, 0.1);
    color: var(--accent);
    display: none;
}

.error-icon {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    display: none;
}

.form-status.success .success-icon {
    display: flex;
}

.form-status.error .error-icon {
    display: flex;
}

.status-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.status-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-close-status {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-status:hover {
    background: rgba(255, 255, 255, 0.1);
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .info-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SERVICIOS PAGE STYLES
   ========================================= */

.services-hero {
    padding-top: 100px;
    padding-bottom: 20px;
    text-align: center;
}

.services-intro {
    padding-bottom: 0px;
    overflow: hidden;
}

.services-intro .grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 50px;
    align-items: flex-end;
}

.services-main-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px 20px 0 0;
    filter: drop-shadow(0 -10px 40px rgba(0, 0, 0, 0.3));
    margin-bottom: 0;
    display: block;
    transform: translateY(2px);
}

.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(79, 140, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(79, 140, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
    background: var(--accent);
    color: white;
}

.service-card-icon svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

.service-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    z-index: 1;
}

.service-card-link {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    opacity: 1;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-link {
    color: #fff;
}

@media (max-width: 980px) {
    .services-intro .grid-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 100%;
        padding: 0;
    }

    .services-intro .col-text {
        order: 1;
        text-align: center;
        padding: 0 20px;
    }

    .services-intro .col-visual {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .services-main-img {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin-bottom: 0;
        transform: translateY(5px);
    }

    .services-grid-compact {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 30px auto 0;
    }

    /* AJUSTE BOTÓN MÓVIL */
    .btn-magic-types {
        width: 95%;
        max-width: 400px;
        margin: 15px auto 0;
        font-size: 0.65rem;
        /* Ajustado para que quepa */
        padding: 10px 4px;
        display: flex;
        justify-content: center;
        letter-spacing: 0;
    }
}

/* =========================================
   GALERÍA / SOCIAL WIDGETS
   ========================================= */

.gallery-section {
    padding-top: 30px;
    padding-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.social-widget {
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.social-widget:hover {
    border-color: rgba(79, 140, 255, 0.3);
    transform: translateY(-5px);
}

.social-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.social-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.social-profile svg {
    color: var(--accent);
}

.social-handle {
    font-size: 0.95rem;
    color: #fff;
}

.social-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}

.social-btn-sm {
    font-size: 0.75rem;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    transition: 0.2s;
}

.social-btn-sm:hover {
    background: var(--accent);
}

/* YouTube Content Wrapper */
.yt-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.yt-list {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    flex: 1;
}

.yt-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    text-decoration: none !important;
}

.yt-item:last-child {
    border-bottom: none;
}

.yt-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.yt-thumb-sm {
    width: 100px;
    height: 56px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.yt-thumb-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Required for line-clamp to work in Chrome/Safari */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Instagram Content (Grid) */
.insta-grid-container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
    min-height: 380px;
}

.insta-item {
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    overflow: hidden;
    position: relative;
    /* Clave para posicionar imagen absoluta */
    cursor: pointer;
}

.insta-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    border-color: rgba(79, 140, 255, 0.3);
}

.insta-item img {
    position: absolute;
    /* Forza a la imagen a ocupar todo el espacio */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

/* Widget Footer Link */
.widget-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.3s;
}

.widget-footer-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.widget-footer-link svg {
    transition: transform 0.3s;
}

.widget-footer-link:hover svg {
    transform: translateX(3px);
}

@media (max-width: 850px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 20px auto 0;
    }

    .insta-grid-container {
        min-height: auto;
    }
}

/* =========================================
   MODALES (Ventanas Flotantes)
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #0b1126;
    /* Fondo sólido oscuro para legibilidad */
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    /* Máximo alto de la pantalla */
    border-radius: 20px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.is-open .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.modal-content {
    padding: 40px;
    overflow-y: auto;
    /* Scroll interno si el texto es largo */
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
}

/* Scrollbar personalizada para el modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.modal-subtitle {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 15px;
    color: rgba(234, 240, 255, 0.85);
}

.modal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    color: rgba(234, 240, 255, 0.85);
}

.modal-body strong {
    color: #fff;
}

/* --- ESTILOS ESPECÍFICOS BOTÓN MAGIA Y MODAL TIPOS --- */
.btn-magic-types {
    display: block;
    width: 100%;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-magic-types:hover {
    background: var(--accent);
    box-shadow: 0 5px 20px rgba(79, 140, 255, 0.3);
    transform: translateY(-2px);
}

/* Modal Grid Tipos de Magia */
.types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.type-item {
    margin-bottom: 20px;
}

.type-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.type-img {
    width: 60px;
    height: auto;
    border-radius: 4px;
    /* Opcional si las imágenes originales no tienen borde */
}

.type-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

.type-desc {
    font-size: 0.95rem;
    color: rgba(234, 240, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .types-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}