:root {
    --color-primary: #1a3a5c;
    --color-primary-dark: #0f2840;
    --color-accent: #c9a227;
    --color-accent-light: #e8c547;
    --color-bg-light: #faf9f7;
    --color-bg-dark: #0f2840;
    --color-bg-cream: #f5f3ef;
    --color-text-dark: #1a1a1a;
    --color-text-light: #ffffff;
    --color-text-muted: #6b7280;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--color-bg-dark); color: var(--color-text-dark); line-height: 1.6; overflow: hidden; }
body.normal-scroll { overflow-y: auto; overflow-x: hidden; background: var(--color-bg-cream); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all 0.4s var(--transition-smooth); }
.header.scrolled { background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px); box-shadow: 0 2px 40px rgba(0, 0, 0, 0.1); }
.top-bar { background: var(--color-primary-dark); padding: 10px 0; font-size: 0.85rem; }
.header.scrolled .top-bar { padding: 6px 0; }
.top-bar-content { max-width: 1400px; margin: 0 auto; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; color: var(--color-text-light); }
.top-bar a { color: var(--color-text-light); transition: color 0.3s ease; }
.top-bar a:hover { color: var(--color-accent); }
.top-bar-left { display: flex; gap: 30px; }
.top-bar-item { display: flex; align-items: center; gap: 8px; }
.nav-main { padding: 15px 0; transition: all 0.4s var(--transition-smooth); }
.header.scrolled .nav-main { padding: 10px 0; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 15px; z-index: 1001; }
.logo-img { height: 60px; width: auto; border-radius: 8px; transition: all 0.4s var(--transition-smooth); }
.header.scrolled .logo-img { height: 50px; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-text-light); transition: color 0.4s var(--transition-smooth); line-height: 1.2; }
.header.scrolled .logo-text { color: var(--color-primary); }
.logo-text span { display: block; font-size: 0.7rem; font-family: var(--font-body); font-weight: 400; opacity: 0.9; letter-spacing: 2px; text-transform: uppercase; }
.nav-menu { display: flex; gap: 5px; list-style: none; }
.nav-link { display: block; padding: 14px 28px; font-size: 0.95rem; font-weight: 500; color: var(--color-text-light); border-radius: 50px; transition: all 0.3s var(--transition-smooth); position: relative; overflow: hidden; cursor: pointer; }
.header.scrolled .nav-link { color: var(--color-primary); }
.nav-link::before { content: ''; position: absolute; inset: 0; background: var(--color-accent); border-radius: 50px; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--transition-smooth); z-index: -1; }
.nav-link:hover::before, .nav-link.active::before { transform: scaleX(1); transform-origin: left; }
.nav-link:hover, .nav-link.active { color: var(--color-text-dark); }
.menu-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.menu-toggle span { display: block; width: 30px; height: 2px; background: var(--color-text-light); transition: all 0.3s ease; }
.header.scrolled .menu-toggle span { background: var(--color-primary); }

/* SPLIT SCREEN CONTAINER */
.split-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; display: flex; overflow: hidden; transition: transform 0.6s ease, opacity 0.6s ease; }
body.normal-scroll .split-container { pointer-events: none; }
body.normal-scroll .split-container.exiting-down { transform: translateY(-100vh); opacity: 0; }
body.normal-scroll .split-container.exiting-up { transform: translateY(100vh); opacity: 0; }
body:not(.normal-scroll) .split-container { transform: translateY(0); opacity: 1; }

.split-left { width: 50%; height: 100%; position: relative; overflow: hidden; background: var(--color-primary-dark); }
.split-left-track { position: absolute; width: 100%; transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1); }
.split-left-panel { width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 60px; }

.split-right { width: 50%; height: 100%; position: relative; overflow: hidden; }
.split-right-track { position: absolute; width: 100%; transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1); }
.split-right-panel { width: 100%; height: 100vh; position: relative; }
.split-right-panel img { width: 100%; height: 100%; object-fit: cover; }
.split-right-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(15, 40, 64, 0.2) 0%, transparent 30%); }

/* Panel Content */
.panel-content { max-width: 500px; color: var(--color-text-light); }
.panel-content.centered { text-align: center; max-width: 450px; }
.hero-logo { width: 120px; height: auto; margin-bottom: 30px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.panel-content.centered .hero-logo { margin: 0 auto 30px; }
.hero-subtitle { font-size: 1rem; text-transform: uppercase; letter-spacing: 5px; color: var(--color-accent); margin-bottom: 20px; }
.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 5rem); font-weight: 600; line-height: 1; margin-bottom: 10px; }
.hero-title-sub { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 400; font-style: italic; color: var(--color-accent-light); }
.section-label { display: inline-block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 4px; color: var(--color-accent); margin-bottom: 20px; font-weight: 500; }
.section-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 600; line-height: 1.15; margin-bottom: 25px; }
.section-text { font-size: 1.1rem; line-height: 1.9; opacity: 0.9; margin-bottom: 35px; }
.section-cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 35px; background: var(--color-accent); color: var(--color-text-dark); font-weight: 600; font-size: 1rem; border-radius: 50px; transition: all 0.4s var(--transition-smooth); }
.section-cta:hover { background: var(--color-text-light); transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }

/* Progress Dots */
.progress-dots { position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: 1001; display: flex; flex-direction: column; gap: 18px; transition: opacity 0.3s ease; }
body.normal-scroll .progress-dots { opacity: 0; pointer-events: none; }
.progress-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); border: 2px solid rgba(255, 255, 255, 0.4); cursor: pointer; transition: all 0.4s ease; }
.progress-dot:hover { background: rgba(255, 255, 255, 0.5); transform: scale(1.2); }
.progress-dot.active { background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.3); box-shadow: 0 0 20px rgba(201, 162, 39, 0.5); }

/* Scroll Indicator */
.scroll-indicator { position: fixed; bottom: 40px; left: 25%; transform: translateX(-50%); z-index: 1001; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--color-text-light); font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.9; transition: opacity 0.4s ease; }
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }
body.normal-scroll .scroll-indicator { display: none; }
.scroll-mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.6); border-radius: 12px; position: relative; }
.scroll-mouse::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; background: var(--color-accent); border-radius: 2px; animation: scrollWheel 1.5s infinite; }
@keyframes scrollWheel { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* NORMAL SECTIONS */
.normal-content { display: none; transition: opacity 0.4s ease; }
body.normal-scroll .normal-content { display: block; }
.normal-section { padding: 100px 20px; }
.normal-section:first-child { padding-top: 160px; }
.container { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-label { color: var(--color-accent); }
.section-header .section-title { color: var(--color-primary); }

#experiencias { background: var(--color-bg-cream); }
.experiences-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 30px; }
.experience-card { background: var(--color-text-light); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); transition: all 0.5s var(--transition-smooth); }
.experience-card:hover { transform: translateY(-10px); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15); }
.experience-image { position: relative; height: 280px; overflow: hidden; }
.experience-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--transition-smooth); }
.experience-card:hover .experience-image img { transform: scale(1.1); }
.experience-tags { position: absolute; top: 20px; left: 20px; display: flex; gap: 10px; }
.experience-tag { background: rgba(255, 255, 255, 0.95); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; color: var(--color-primary); }
.experience-price { position: absolute; bottom: 20px; right: 20px; background: var(--color-accent); color: var(--color-text-dark); padding: 10px 20px; border-radius: 25px; font-weight: 700; font-size: 1.1rem; }
.experience-content { padding: 30px; }
.experience-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--color-primary); margin-bottom: 15px; }
.experience-description { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 25px; }
.experience-cta { display: inline-flex; align-items: center; gap: 10px; color: var(--color-primary); font-weight: 600; transition: all 0.3s ease; }
.experience-cta:hover { color: var(--color-accent); gap: 15px; }

#nosotros { background: var(--color-bg-dark); color: var(--color-text-light); padding: 100px 20px; }
#nosotros .section-header .section-title { color: var(--color-text-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text { font-size: 1.1rem; line-height: 1.9; margin-bottom: 25px; opacity: 0.9; }
.about-features { margin-top: 40px; display: grid; gap: 25px; }
.about-feature { display: flex; gap: 20px; align-items: flex-start; }
.about-feature-icon { width: 50px; height: 50px; background: var(--color-accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-feature-icon svg { width: 24px; height: 24px; }
.about-feature h4 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 5px; }
.about-feature p { font-size: 0.95rem; opacity: 0.8; }
.about-image img { border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }

#contacto { background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-cream) 100%); padding: 100px 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-intro { font-size: 1.15rem; color: var(--color-text-muted); margin-bottom: 40px; line-height: 1.8; }
.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method { display: flex; align-items: center; gap: 20px; padding: 25px; background: var(--color-text-light); border-radius: 15px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); transition: all 0.4s; }
.contact-method:hover { transform: translateX(10px); }
.contact-method-icon { width: 60px; height: 60px; background: var(--color-primary); border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.contact-method-icon svg { width: 28px; height: 28px; color: var(--color-text-light); }
.contact-method-icon.whatsapp { background: #25D366; }
.contact-method h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); margin-bottom: 5px; }
.contact-method p { font-size: 1.15rem; font-weight: 600; color: var(--color-primary); }
.contact-form-wrapper { background: var(--color-text-light); padding: 50px; border-radius: 25px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); }
.contact-form { display: flex; flex-direction: column; gap: 25px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--color-primary); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 16px 20px; border: 2px solid #e5e7eb; border-radius: 12px; font-family: var(--font-body); font-size: 1rem; transition: all 0.3s ease; background: var(--color-bg-light); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--color-accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 40px; background: var(--color-primary); color: var(--color-text-light); border: none; border-radius: 50px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.4s; }
.btn-submit:hover { background: var(--color-accent); color: var(--color-text-dark); }

.footer { background: var(--color-primary-dark); color: var(--color-text-light); padding: 80px 20px 30px; }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 60px; }
.footer-brand .logo-img { height: 70px; margin-bottom: 20px; }
.footer-brand p { opacity: 0.8; line-height: 1.8; }
.footer-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 25px; color: var(--color-accent); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { opacity: 0.8; transition: all 0.3s ease; }
.footer-links a:hover { opacity: 1; color: var(--color-accent); }
.footer-contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; opacity: 0.8; }
.footer-contact-item svg { width: 20px; height: 20px; color: var(--color-accent); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; font-size: 0.9rem; opacity: 0.7; }

.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4); z-index: 999; transition: all 0.4s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 35px; height: 35px; fill: white; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .split-container { flex-direction: column; }
    .split-left, .split-right { width: 100%; }
    .split-left { height: 60vh; }
    .split-right { height: 40vh; }
    .split-left-panel { height: 60vh; padding: 40px 30px; }
    .split-right-panel { height: 40vh; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    body { overflow-y: auto; }
    .split-container { display: none !important; }
    .normal-content { display: block !important; }
    .progress-dots, .scroll-indicator { display: none !important; }
    .mobile-hero { display: flex !important; }

    /* Header mobile fixes */
    .header { background: var(--color-primary-dark); }
    .top-bar { padding: 8px 0; }
    .top-bar-content { flex-direction: column; gap: 6px; text-align: center; padding: 0 15px; }
    .top-bar-left { flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 0.75rem; }
    .top-bar-item { gap: 5px; }
    .top-bar-right { font-size: 0.75rem; }

    /* Nav mobile fixes */
    .nav-main { padding: 10px 0; }
    .nav-container { padding: 0 15px; }
    .logo { gap: 10px; }
    .logo-img { height: 45px; }
    .logo-text { font-size: 1.1rem; }
    .logo-text span { font-size: 0.6rem; letter-spacing: 1px; }

    /* Hamburger menu */
    .menu-toggle { display: flex; position: relative; z-index: 1002; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: transform 0.4s ease;
        transform: translateX(100%);
        z-index: 1000;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-link { font-size: 1.3rem; padding: 15px 30px; color: var(--color-text-light) !important; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    /* Mobile hero fixes */
    .mobile-hero { padding-top: 0 !important; }
    .mobile-hero > div:first-child { padding: 130px 20px 30px !important; }
    .mobile-hero .hero-logo { width: 80px !important; }
    .mobile-hero .hero-title { font-size: 2.5rem !important; }
    .mobile-hero .hero-subtitle { font-size: 0.85rem !important; letter-spacing: 3px !important; margin-bottom: 10px !important; }
    .mobile-hero .hero-title-sub { font-size: 1.2rem !important; }

    /* Sections */
    .normal-section:first-child { padding-top: 40px; }
    .experiences-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

@media (min-width: 769px) {
    .mobile-hero { display: none !important; }
}
