/* ══════════════════════════════════════════════════════════
   Destino Bergen — Mockup CSS
   Light premium theme with Bergen red accents
   ══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'ITC Avant Garde';
    src: url('../fonts/ITCAvantGardeStd-Bold.ttf') format('truetype');
    font-weight: 700;
}
@font-face {
    font-family: 'ITC Avant Garde';
    src: url('../fonts/ITCAvantGardeStd-Md.ttf') format('truetype');
    font-weight: 500;
}

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

:root {
    --bergen-red: #E8364F;
    --bergen-red-glow: rgba(232, 54, 79, 0.15);
    --bergen-bg: #e4e6e1;
    --bergen-bg-alt: #d8dbd5;
    --bergen-darker: #2a2a32;
    --neon-magenta: #C832B4;
    --neon-cyan: #00A0B0;
    --neon-blue: #2864F0;
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    --card-radius: 20px;
    --section-max-width: 1200px;
}

html {
    background: var(--bergen-bg);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

body {
    font-family: 'ITC Avant Garde', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    background: transparent;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ───── Animated Bubbles Background ───── */
#bg-bubbles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ───── NAVIGATION ───── */
.nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}
.nav-bar.scrolled {
    background: rgba(228, 230, 225, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 40px;
}
.nav-logo img {
    height: 30px;
    transition: height 0.3s ease;
}
.nav-bar.scrolled .nav-logo img { height: 30px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--bergen-red);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    padding: 10px 24px;
    border-radius: 100px;
    background: var(--bergen-red);
    color: #fff !important;
    font-weight: 700;
    font-size: 12px !important;
    letter-spacing: 1.5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--bergen-red-glow);
}
.nav-cta::after { display: none !important; }

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ───── HERO — MANIFIESTO (Scroll-sequence) ───── */
.manifiesto-fixed-wrap {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh; height: 100dvh;
    z-index: 1;
    overflow: hidden;
    opacity: 1;
}
#manifiesto {
    position: relative;
    z-index: 3;
    height: 700vh;
    background: transparent;
    pointer-events: none;
}
.manifiesto-canvas-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}
.manifiesto-canvas-wrap canvas {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}
.manifiesto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1;
}
.manifiesto-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}
.manifiesto-text .text-block {
    position: absolute;
    opacity: 0;
    max-width: 850px;
    padding: 0 40px;
    color: #f0f0f5;
}
.manifiesto-text .text-block h2 {
    font-size: clamp(30px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.7);
    margin-bottom: 16px;
}
.manifiesto-text .text-block h2 span.highlight {
    color: var(--bergen-red);
}
.manifiesto-text .text-block p {
    font-size: clamp(16px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}
.manifiesto-scroll-hint {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.manifiesto-scroll-hint i {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
}
.manifiesto-scroll-hint span {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.manifiesto-fadeout {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 4;
    pointer-events: none;
}

/* ───── SECTION COMMONS ───── */
.section-inner {
    position: relative;
    z-index: 1;
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding: 120px 40px;
}
.animated-bg {
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 3;
}
.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}
.section-label.red { color: var(--bergen-red); }
.section-label.magenta { color: var(--neon-magenta); }
.section-label.cyan { color: var(--neon-cyan); }
.section-label.blue { color: var(--neon-blue); }
.section-heading {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.15;
}
.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* Subtle dividers */
.glow-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    position: relative;
    z-index: 3;
}

/* ───── CTA LAND ROBER ───── */
#cta-landrober {
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.cta-landrober-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 48px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}
.cta-landrober-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, var(--bergen-red), var(--neon-magenta), transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}
.cta-landrober-card h2 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-landrober-card p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn.red {
    background: var(--bergen-red);
    color: #fff;
}
.cta-btn.red:hover { box-shadow: 0 8px 40px var(--bergen-red-glow); }
.cta-btn.magenta {
    background: var(--neon-magenta);
    color: #fff;
}
.cta-btn.magenta:hover { box-shadow: 0 8px 40px rgba(200, 50, 180, 0.3); }

/* ───── MEDRANDO ───── */
#medrando .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-card {
    padding: 40px 32px;
    border-radius: var(--card-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--card-radius);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.value-card:nth-child(1)::before {
    background: radial-gradient(ellipse at 50% 80%, rgba(232, 54, 79, 0.08), transparent 70%);
}
.value-card:nth-child(2)::before {
    background: radial-gradient(ellipse at 50% 80%, rgba(200, 50, 180, 0.08), transparent 70%);
}
.value-card:nth-child(3)::before {
    background: radial-gradient(ellipse at 50% 80%, rgba(0, 160, 176, 0.08), transparent 70%);
}
.value-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}
.value-card:hover::before { opacity: 1; }
.value-card:nth-child(1):hover { box-shadow: 0 8px 40px rgba(232, 54, 79, 0.12); }
.value-card:nth-child(2):hover { box-shadow: 0 8px 40px rgba(200, 50, 180, 0.10); }
.value-card:nth-child(3):hover { box-shadow: 0 8px 40px rgba(0, 160, 176, 0.10); }
.value-card i {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
    position: relative;
}
.value-card:nth-child(1) i { color: var(--bergen-red); }
.value-card:nth-child(2) i { color: var(--neon-magenta); }
.value-card:nth-child(3) i { color: var(--neon-cyan); }
.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}
.value-card p {
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
    line-height: 1.6;
}

/* ───── QUEN SOMOS ───── */
#quensomos .mission-block {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.mission-text {
    flex: 1;
}
.mission-text h3 {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.mission-text h3 span { color: var(--bergen-red); }
.mission-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}
.mission-visual {
    flex: 0.8;
    position: relative;
}
.mission-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.mission-visual::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--bergen-red-glow), transparent 50%);
    z-index: -1;
}

/* Team grid */
.team-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 48px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.team-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--card-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}
.team-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}
.team-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease;
}
.team-card:hover img { border-color: var(--bergen-red); }
.team-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.team-card p.team-role {
    font-size: 13px;
    color: var(--bergen-red);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.team-card p.team-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ───── PRODUCIÓNS ───── */
.productions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.production-card {
    border-radius: var(--card-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}
.production-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}
.production-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.production-card:hover .production-card-img { transform: scale(1.05); }
.production-card-imgwrap {
    overflow: hidden;
    position: relative;
}
.production-card-imgwrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}
.production-card-body {
    padding: 28px 24px;
}
.production-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.production-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}
.production-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bergen-red);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: gap 0.3s ease;
}
.production-link:hover { gap: 12px; }

/* ───── CONTACTO ───── */
#contacto .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form input,
.contact-form textarea {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-secondary); }
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--bergen-red);
    box-shadow: 0 0 20px var(--bergen-red-glow);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}
.contact-form .checkbox-row input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--bergen-red);
}
.contact-form .checkbox-row a {
    color: var(--bergen-red);
    text-decoration: none;
}
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.contact-info-card {
    padding: 28px 24px;
    border-radius: var(--card-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}
.contact-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info-card h4 i { color: var(--bergen-red); font-size: 22px; }
.contact-info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.contact-info-card a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-info-card a:hover { color: var(--bergen-red); }
.contact-map {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.horario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}
.horario-item {
    font-size: 13px;
}
.horario-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
}

/* ───── FOOTER ───── */
.site-footer {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 60px 40px 30px;
    background: var(--bergen-darker);
    color: #f0f0f5;
}
.footer-inner {
    max-width: var(--section-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand img {
    height: 32px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 14px;
    color: rgba(240, 240, 245, 0.6);
    line-height: 1.7;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f0f0f5;
}
.footer-col p {
    font-size: 14px;
    color: rgba(240, 240, 245, 0.6);
    display: block;
    margin-bottom: 8px;
    line-height: 1.6;
}
.footer-col a {
    font-size: 14px;
    color: rgba(240, 240, 245, 0.6);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.2s;
}
.footer-col > a {
    display: block;
    margin-bottom: 8px;
}
.footer-col a:hover { color: var(--bergen-red); }
.footer-bottom {
    max-width: var(--section-max-width);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(240, 240, 245, 0.6);
}
.footer-bottom .footer-eu img {
    height: 28px;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.footer-bottom .footer-eu img:hover { opacity: 1; }

/* ───── RESPONSIVE ───── */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .productions-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    #contacto .contact-wrapper { grid-template-columns: 1fr; }
    .mission-block { flex-direction: column; }
    .mission-visual { order: -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
    .nav-bar { padding: 14px 20px; }
    .section-inner { padding: 80px 20px; }

    #medrando .features-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .cta-landrober-card { padding: 40px 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .manifiesto-text .text-block { padding: 0 20px; }
    .intro-logo { width: 200px; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .horario-grid { grid-template-columns: 1fr; }
}
