/* ========================================
   Variables y Reset
   ======================================== */
:root {
    --primary-dark: #1a1a1a;
    --primary-navy: #00477d;
    --accent-teal: #2596be;
    --accent-gold: #c9a961;
    --accent-green: #00477d;
    --bg-dark: #00477d;
    --bg-medium: #0a5a8d;
    --text-light: #e8e8e8;
    --text-gray: #a0a0a0;
    --white: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 10001;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
    z-index: 10000;
}

body.cursor-hover .cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent-gold);
    transition: width 0.12s ease, height 0.12s ease, background-color 0.12s ease, transform 0.12s ease;
}

body.cursor-hover .cursor-outline {
    width: 24px;
    height: 24px;
    border-color: var(--accent-gold);
    border-width: 1px;
    transition: width 0.12s ease, height 0.12s ease, border-color 0.12s ease, transform 0.12s ease, opacity 0.12s ease;
}

/* During hover or click animations, avoid using negative/inverted coloring */
body.cursor-hover .custom-cursor,
body.cursor-clicked .custom-cursor {
    mix-blend-mode: normal;
}

/* Ensure click state keeps solid accent color (no negative) */
body.cursor-clicked .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    background-color: var(--accent-gold);
    transition: transform 0.12s ease, background-color 0.12s ease;
}

/* Keep outline click animation as before */
body.cursor-clicked .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Click effect */
body.cursor-clicked .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

body.cursor-clicked .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    .custom-cursor {
        display: none;
    }
}

/* Reducir animaciones para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Tipografía
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    font-style: italic;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
}


p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

a, button, input, textarea {
    cursor: none;
}

::selection {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b76a;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) var(--bg-dark);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 71, 125, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 71, 125, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.logo a .navbar-logo {
    height: 32px;
    width: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    -webkit-mask-image: url('images/logo.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('images/logo.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.logo a span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.logo a:hover .navbar-logo {
    background-color: var(--accent-gold);
    transform: scale(1.5) translateX(20px);
}

.logo a:hover span {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.btn-cta {
    background: transparent;
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-cta:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

/* Language Selector */
.language-selector {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 2rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    /* prefer emoji-capable fonts so flag sequences render on Windows/macOS/Linux */
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', 'Twemoji Mozilla', 'Inter', sans-serif;
    height: 44px; /* match .btn-cta height */
    display: inline-flex;
    align-items: center;
}

/* Visually-hidden helper for accessibility (keeps native select available but out of sight) */
.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Custom language dropdown */
.language-dropdown {
    display: inline-block;
    position: relative;
    font-family: Inter, sans-serif;
}

.language-current {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    height: 44px;
}

.language-current .flag-icon { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.language-current .chev { width: 14px; height: 14px; margin-left: 0.25rem; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.85; }

.language-list {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 160px;
    padding: 0.35rem 0.35rem;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    z-index: 60;
}

.language-list li {
    list-style: none;
    padding: 0.45rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: var(--text-light);
    transition: background 0.12s ease;
}

.language-list li:hover { background: rgba(255,255,255,0.03); }
.language-list li.selected { background: rgba(255,255,255,0.06); }
.language-list .flag-icon { width: 22px; height: 16px; border-radius: 3px; }

.language-dropdown.open .language-list { display: block; }

/* Ensure language dropdown matches nav layout at smaller widths */
.nav-menu .language-dropdown { margin: 0 auto; }

.language-selector:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.language-selector option {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* Make the schedule button and language select match heights and alignment */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.nav-menu .language-selector {
    margin: 0 auto;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 50%, var(--primary-navy) 100%);
    overflow: hidden;
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* make waves larger vertically so they feel more dramatic */
    height: 60%;
    pointer-events: none;
    z-index: 1;
}

.wave-path {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.wave1, .wave2, .wave3 {
    /* keep origin settings on paths, but animation runs on the group */
    transform-origin: center bottom;
    transform-box: fill-box;
}
/* NOTE: We animate the group (.waveWrap) instead of the path so the two copies
   of each path side-by-side become a continuous panorama. The translateX -50%
   on the group shifts one full copy width and the next copy takes its place.
   Adjust durations, or Y scaling above to tune motion/size as needed. */

/* For a seamless loop we move the duplicated group exactly by the width of the viewBox
   (1440px). Each wave group contains two copies of the same path placed 1440px apart.
   Animating translateX by -1440px moves one full copy and the second one appears in its place. */
@keyframes wave1-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes wave2-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes wave3-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Make waves slightly taller for a more dramatic effect */
.wave1, .wave2, .wave3 {
    /* each layer gets a subtle vertical scale; change values to taste */
    transform-origin: center bottom;
}
.wave1 { transform: scaleY(1.08); }
.wave2 { transform: scaleY(1.12); }
.wave3 { transform: scaleY(1.18); }

/* apply animation on the containing group so we move both duplicates together */
.waveWrap { transform-box: fill-box; transform-origin: 0 0; }
.wave1Wrap { animation: wave1-move 18s linear infinite; }
.wave2Wrap { animation: wave2-move 24s linear infinite; }
.wave3Wrap { animation: wave3-move 30s linear infinite; }
/* small performance hint for smooth animation */
.waveWrap { will-change: transform; }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Animaciones de entrada */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Container y Secciones
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.section-description {
    font-size: 1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ========================================
   Servicios
   ======================================== */
.services {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 0;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(10px);
}

.service-card.visible {
    animation: fadeInUp 0.6s forwards;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    background: var(--accent-gold);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-gold);
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    color: var(--bg-dark);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.9;
    font-size: 0.95rem;
    font-weight: 300;
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-card-expandable .service-icon {
    margin-bottom: 0;
}

.service-info-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: transparent;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-info-toggle:hover,
.service-info-toggle[aria-expanded="true"] {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.service-info-toggle .toggle-icon {
    width: 18px;
    height: 18px;
}

.service-info-toggle[aria-expanded="true"] .toggle-icon line:first-child {
    opacity: 0;
}

.service-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.service-extra.open {
    max-height: 420px;
    opacity: 1;
    margin-top: 1.5rem;
    overflow-y: auto;
    padding-right: 0.75rem;
}

.service-extra.open::-webkit-scrollbar {
    width: 6px;
}

.service-extra.open::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.service-extra.open::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
}

.service-extra-item + .service-extra-item {
    margin-top: 1.25rem;
}

.service-extra-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--text-light);
}

.service-extra-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.service-extra-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    text-transform: uppercase;
}

/* ========================================
   Experiencia
   ======================================== */
.experience {
    background: var(--bg-medium);
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.experience-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-teal));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    filter: grayscale(20%);
}

.profile-image:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(201, 169, 97, 0.2);
}

.image-placeholder svg {
    width: 150px;
    height: 150px;
    color: rgba(255, 255, 255, 0.3);
}

.experience-text {
    opacity: 0;
    transform: translateX(-30px);
}

.experience-text.visible {
    animation: fadeInRight 0.8s forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subtitle-text {
    font-size: 1rem;
    color: var(--accent-gold);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.experience-bio {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.experience-location {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-gold);
    font-weight: 300;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.experience-location svg {
    width: 24px;
    height: 24px;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    color: var(--accent-gold);
    transition: var(--transition);
    vertical-align: middle;
}

.linkedin-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
}

/* Timeline */
.timeline-section {
    margin-top: 5rem;
}

.timeline-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(201, 169, 97, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
}

.timeline-item.visible {
    animation: fadeInRight 0.6s forwards;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-gold);
    border: 3px solid var(--bg-medium);
    border-radius: 0;
    transform: rotate(45deg);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-gold);
}

.timeline-year {
    display: inline-block;
    background: transparent;
    color: var(--accent-gold);
    padding: 0.4rem 1rem;
    border-radius: 0;
    font-weight: 300;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid var(--accent-gold);
    letter-spacing: 0.1em;
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.9;
    font-weight: 300;
}

/* ========================================
   Galería
   ======================================== */
.gallery {
    background: var(--bg-dark);
    padding: 6rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(30%);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

/* Gallery caption overlay */
.gallery-item figure {
    position: relative;
    height: 100%;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    /* Keep a slightly stronger overlay so captions are readable always */
    background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.7));
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 300;
    /* Make captions visible by default (no hover required) */
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-align: left;
    z-index: 1;
}

/* Keep hover rule to allow small animation but not necessary for visibility */
.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: none;
}

/* On touch devices, keep captions visible */
@media (max-width: 768px) {
    .gallery-caption {
        opacity: 1;
        transform: none;
        background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.6));
    }
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Gallery Modal / Lightbox */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
}

.gallery-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.gallery-modal-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .gallery-modal-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .gallery-modal-image {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* ========================================
   Testimonios
   ======================================== */
.testimonials {
    background: var(--bg-dark);
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    padding: 4rem;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-quote svg {
    width: 50px;
    height: 50px;
    color: var(--accent-gold);
    opacity: 0.4;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testimonial-author strong {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
    font-family: 'Cormorant Garamond', serif;
}

.testimonial-author span {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.testimonial-btn svg {
    width: 24px;
    height: 24px;
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    transform: rotate(45deg);
}

.dot.active {
    background: var(--accent-gold);
    width: 10px;
}

/* ========================================
   Contacto
   ======================================== */
.contact {
    background: var(--bg-medium);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
}

.contact-info.visible {
    animation: fadeInRight 0.8s forwards;
}

.contact-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.contact-item svg {
    width: 28px;
    height: 28px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-weight: 300;
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-item a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 300;
}

.contact-item a:hover {
    color: var(--accent-gold);
}

/* Formulario */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form.visible {
    animation: fadeInUp 0.8s forwards;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.contact-form .btn {
    width: 100%;
    cursor: pointer;
    border: 1px solid var(--accent-gold);
    font-family: 'Inter', sans-serif;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: rotate(180deg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-brand .footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Make it white */
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 1.2rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(6, 42, 61, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(400px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.toast.success {
    border-left: 4px solid var(--accent-gold);
    background: var(--primary-navy);
}

.toast.error {
    border-left: 4px solid #ff4757;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.toast.success .toast-icon {
    background: var(--accent-gold);
}

.toast.error .toast-icon {
    background: #ff4757;
}

.toast-message {
    color: var(--text-dark);
    font-weight: 500;
}

.toast.success .toast-message {
    color: var(--white);
}

/* ========================================
   LinkedIn Posts
   ======================================== */
.linkedin-posts {
    display: none;
    background: #f8f9fa;
    padding: 5rem 0;
}

.linkedin-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.linkedin-feed .IN-widget {
    min-height: 200px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: 0;
        top: -100vh; /* hide above the viewport */
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999; /* ensure it sits below the navbar (navbar has z-index:1000) */
    }

    .nav-menu.active {
        top: 70px; /* slide down under the fixed navbar */
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .experience-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-placeholder {
        max-width: 300px;
    }

    .timeline {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -33px;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .linkedin-feed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   Brand Signature Section
   ======================================== */
.brand-signature-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(5, 74, 120, 0.3) 0%, rgba(37, 150, 190, 0.1) 100%);
    border-top: 1px solid rgba(201, 169, 97, 0.1);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.brand-signature-section.brand-signature-variant {
    background: linear-gradient(135deg, rgba(6, 42, 61, 0.5) 0%, rgba(11, 90, 122, 0.2) 100%);
}

.brand-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    animation: fadeInScale 1s ease-in-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.brand-signature-logo {
    height: 60px;
    width: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    -webkit-mask-image: url('images/logo.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('images/logo.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background-color: var(--accent-gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-signature:hover .brand-signature-logo {
    background-color: var(--accent-gold);
    transform: scale(2) rotate(5deg);
}

.brand-signature-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-signature:hover .brand-signature-text {
    opacity: 0;
    transform: translateY(10px);
}

@media (max-width: 768px) {
    .brand-signature-section {
        padding: 2.5rem 0;
    }

    .brand-signature-logo {
        height: 45px;
        width: 45px;
    }

    .brand-signature-text {
        font-size: 1.4rem;
    }
}

