/* ================================================================
   MATZ GLOBAL ESPAÑA - Layout
   Header, Hero, Footer y secciones generales
   ================================================================ */

/* ============== HEADER ============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease);
    backdrop-filter: blur(0px);
}

.header.is-scrolled {
    background: rgba(5, 8, 22, 0.85);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.3));
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 1280px) {
    .nav-menu {
        gap: 2rem;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease);
    position: relative;
    white-space: nowrap;
}

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

.nav-link:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-gold);
    transition: width 0.3s var(--ease);
}

.nav-link:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.65rem 1.5rem;
    background: var(--grad-gold);
    color: var(--bg-primary) !important;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-gold);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-strong);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============== HERO ============== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: orbFloat 15s ease-in-out infinite;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.hero-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

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

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(251, 191, 36, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 191, 36, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 960px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1.25rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--gold-light);
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    border-radius: 50%;
    animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-description {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: bobble 2.5s ease-in-out infinite;
}

.hero-scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
    position: relative;
}

.hero-scroll-mouse span {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { opacity: 0.4; }
    100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

@keyframes bobble {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* ============== SECCIONES GENÉRICAS ============== */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.section-kicker::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--grad-gold);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.section-lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Section backgrounds alternados */
.section-about {
    background:
        radial-gradient(ellipse at top, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        var(--bg-primary);
}

.section-how {
    background: var(--bg-secondary);
    position: relative;
}

.section-how::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom right, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-why {
    background: var(--bg-primary);
}

.section-testimonials {
    background:
        radial-gradient(ellipse at center, rgba(251, 191, 36, 0.04) 0%, transparent 60%),
        var(--bg-secondary);
}

.section-events {
    background: var(--bg-primary);
}

.section-cta {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* ============== FOOTER ============== */
.footer {
    background: #030611;
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .nav-logo {
    margin-bottom: 1.25rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s var(--ease);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-credit {
    color: var(--gold-dark) !important;
    font-weight: 500;
}

/* ============== PARTNERS ============== */
.section-partners {
    background: var(--bg-primary);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.partners-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2.5rem;
}

.partners-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s var(--ease);
}

.partner-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
    background: var(--bg-card-hover);
}

.partner-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-gold-soft);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.partner-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============== FLOATING WHATSAPP ============== */
.float-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s var(--ease);
    animation: floatPulse 3s ease-in-out infinite;
}

.float-whatsapp svg {
    width: 28px;
    height: 28px;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0); }
}
