/* Design System - Colbast Capital (Indpired by J.P. Morgan Private Bank) */

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #0b0f19;
    border-top: 2px solid #CDBE9A;
    padding: 16px 5%;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner-text {
    color: #cbd3dd;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 760px;
    font-family: 'Inter', sans-serif;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cookie-banner-link {
    color: #CDBE9A;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-banner-btn {
    background: #CDBE9A;
    color: #0b0f19;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 11px 26px;
    border-radius: 2px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.cookie-banner-btn:hover {
    opacity: 0.85;
}

:root {
    --primary-color: #000000; /* Deep Black for authority */
    --secondary-color: #CDBE9A; /* Elegant Gold/Bronze for accents */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg-light: #ffffff;
    --bg-soft: #f9f9f9;
    --accent-blue: #002c5f; /* Original Colbast Navy Blue as a subtle accent */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --padding-section: 100px 5%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 500;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 5%;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

header.scrolled .logo {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

header.scrolled nav ul li a {
    color: var(--text-primary);
}

nav ul li a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 12px rgba(205, 190, 154, 0.55), 0 2px 8px rgba(205, 190, 154, 0.25);
}

/* Selector de idioma ES / EN */
.lang-switch {
    display: flex;
    align-items: center;
}

#lang-toggle {
    background: transparent;
    border: 1px solid rgba(205, 190, 154, 0.4);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    transition: var(--transition-smooth);
}

#lang-toggle:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 14px rgba(205, 190, 154, 0.3);
}

#lang-toggle .lang-sep {
    width: 1px;
    align-self: stretch;
    background: rgba(205, 190, 154, 0.35);
}

#lang-toggle [data-lang] {
    padding: 6px 13px;
    color: rgba(255, 255, 255, 0.55);
    transition: all 0.3s ease;
}

header.scrolled #lang-toggle [data-lang] {
    color: rgba(0, 0, 0, 0.45);
}

#lang-toggle [data-lang].active-lang {
    background: var(--secondary-color);
    color: #0b0f19;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform-origin: left center;
}

header.scrolled .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0px, -2px);
    background-color: #ffffff !important;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0px, 2px);
    background-color: #ffffff !important;
}

/* Hero Section */
/* Hero Section with Dynamic Motion */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 15, 25, 0.55), rgba(10, 15, 25, 0.75)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    animation: heroKenBurns 28s infinite alternate ease-in-out;
    z-index: 1;
}

.hero-glow-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(205, 190, 154, 0.15) 0%, rgba(0, 44, 95, 0.25) 50%, transparent 80%);
    animation: ambientGlow 10s infinite alternate ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero p {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.8s;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.08) translate(-10px, -8px);
    }
    100% {
        transform: scale(1.15) translate(10px, 8px);
    }
}

@keyframes ambientGlow {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Common Section Styles */
section {
    padding: var(--padding-section);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title .divider {
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    margin: 0 auto;
}

/* Services Grid - Single Line 4-Column Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1350px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-soft);
    padding: 40px 22px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.service-card:hover {
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-color: #eee;
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Performance Section Styling */
.performance {
    background-color: #0b0f19;
    padding: var(--padding-section);
}

.kpi-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color) !important;
}

/* Team Section - High-end Private Banking Style */
.team {
    background-color: var(--bg-light);
    padding: var(--padding-section);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 25px;
    max-width: 950px;
    margin: 0 auto;
}

.team-card {
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 15px;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: grayscale(15%);
}

.team-card[data-member="carlos-vasquez"] .team-image-wrapper img {
    object-position: center 25%;
}

.team-card:hover .team-image-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-view-btn {
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-view-btn::after {
    content: "→";
    transition: transform 0.3s ease;
}

.team-card:hover .team-view-btn::after {
    transform: translateX(5px);
}

.team-info {
    text-align: left;
}

.team-info h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-family: var(--font-serif);
    font-weight: 500;
    transition: color 0.3s ease;
}

.team-card:hover .team-info h3 {
    color: var(--accent-blue);
}

.team-role {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Team Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #ffffff;
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 2010;
    padding: 20px;
    transition: all 0.3s ease;
    font-weight: 300;
}

.modal-nav-btn:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 2%;
}

.modal-next {
    right: 2%;
}

.modal-image-col {
    background-color: #111;
    aspect-ratio: 4 / 5;
    position: relative;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.modal-details-col {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.modal-details-col h3 {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 8px;
    color: var(--primary-color);
}

.modal-details-col .modal-role {
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-block;
}

.modal-divider {
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-bottom: 25px;
}

.modal-details-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: justify;
}

/* Philosophy Section */
.philosophy {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 80px;
}

.philosophy-content {
    flex: 1;
}

.philosophy-image {
    flex: 1;
    height: 500px;
    background: url('https://images.unsplash.com/photo-1554469384-e58fac16e23a?q=80&w=1974&auto=format&fit=crop') center/cover;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: white;
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-col p, .footer-col a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
    }
    .modal-container {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    .modal-image-col {
        height: 280px;
    }
    .modal-details-col {
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-section: 60px 6%;
    }

    header {
        padding: 15px 6%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1050;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
    }

    nav ul li a {
        font-size: 1.1rem;
        color: #ffffff !important;
        letter-spacing: 2px;
    }

    .hero {
        padding: 0 6%;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .philosophy {
        flex-direction: column;
        gap: 40px;
    }

    .philosophy-image {
        width: 100%;
        height: 280px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-card-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    }

    .modal-container {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-image-col {
        height: 260px;
    }

    .modal-details-col {
        padding: 30px 25px;
        overflow-y: visible;
    }

    .modal-details-col h3 {
        font-size: 1.5rem;
    }

    footer {
        padding: 60px 6% 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}


