:root {
    /* Colors - Premium Dark Mode */
    --primary: #F5F5F5; /* Now Off-White for text */
    --accent: #E5E7EB;
    --accent-light: #9CA3AF;
    --light: #161616;
    --dark: #0D0D0D;
    --slate: #9CA3AF;
    
    /* Sophisticated Grayscale System (Dark baseline) */
    --white: #F5F5F5;   
    --gray-50: #1A1A1A;
    --gray-100: #262626;
    --gray-200: #333333;
    --gray-300: #404040;
    --gray-400: #525252;
    --gray-500: #737373;
    --gray-600: #A3A3A3;
    --gray-700: #D4D4D4;
    --gray-800: #E5E5E5;
    --gray-900: #F5F5F5;
    --black: #0D0D0D; /* Deep charcoal baseline */
    --nav-bg: rgba(13, 13, 13, 0.8);
    
    --border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-ui: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max-width: 1400px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--black);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.accent {
    color: var(--accent);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500); 
    margin-bottom: 20px;
    border-bottom: 2px solid var(--gray-300); /* Structural gray line */
    padding-bottom: 4px;
}

p {
    font-size: 1.1rem;
    color: var(--gray-700);
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--gray-400); /* Softer gray border */
    margin-left: 16px;
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--black);
    color: var(--black);
}

.btn-gray {
    background-color: var(--gray-200);
    color: var(--black);
    border: 1px solid var(--gray-300);
}

.btn-gray:hover {
    background-color: var(--gray-300);
    border-color: var(--gray-400);
    color: var(--black);
}

/* Specific Hero Buttons for Contrast */
.hero .btn-primary {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
}

.hero .btn-primary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-100);
}

.hero .btn-secondary {
    border: 1px solid var(--white);
    color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    font-size: 0.8rem;
}

.btn-outline:hover {
    background-color: var(--gray-100); /* Structural gray tone on hover */
    border-color: var(--gray-400);
    color: var(--black);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 55px; /* Compacted header */
    width: auto;
    display: block;
}

.social-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 20px;
}

.social-link {
    background-color: #D1D5DB !important; /* Visible Gray */
    color: #1A1A1A !important; /* Dark icon */
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px; /* More professional square-ish */
}

.social-link:hover {
    background-color: #9CA3AF !important;
    color: #000000 !important;
}

.logo-item {
    flex-shrink: 0;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 30px;
    background: var(--gray-50); 
    border-radius: 4px;
    border: 1px solid var(--border);
    font-weight: 700;
    color: var(--white); /* High contrast white */
    transition: var(--transition);
}

/* Redundant Program Styles Removed */

/* Cleanup lingering styles */

.btn-social-box {
    margin-top: 30px;
}

.btn-redes {
    background: var(--gray-100);
    color: var(--white);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-redes:hover {
    background: var(--gray-200);
    color: var(--white);
}

.social-link {
    color: var(--gray-700); /* Much darker gray icons for header */
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--black);
}

.relative {
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: var(--black);
    /* Significantly darkened overlay for absolute contrast */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('./Fotos/Fotos/WhatsApp Image 2026-05-13 at 17.30.16.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    padding-top: 80px;
}

.hero h1 {
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-size: 4rem;
}

.hero h1 .accent {
    color: var(--white); /* Ensure the highlighted part is also white in hero */
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: var(--gray-400);
}

.hero .eyebrow {
    color: var(--white);
    border-bottom: 2px solid var(--white);
    opacity: 0.9;
}

.hero p {
    color: rgba(255, 255, 255, 0.95); /* High contrast white */
    font-weight: 500;
    max-width: 650px;
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Partners */
.partners {
    padding: 60px 0;
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.tagline {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: var(--gray-600);
    opacity: 0.8;
}

.partners .tagline {
    color: #FFFFFF !important; /* Reverse contrast tagline */
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-slider {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc((-250px - 40px) * var(--count, 6))); }
}

.logo-track.reverse {
    animation: scrollLogosReverse 50s linear infinite; /* Slower */
}

@keyframes scrollLogosReverse {
    0% { transform: translateX(calc((-250px - 40px) * var(--count, 6))); }
    100% { transform: translateX(0); }
}

.logo-track {
    display: flex;
    width: calc(300px * var(--count, 6) * 2);
    animation: scrollLogos 50s linear infinite; /* Slower */
    gap: 40px;
}

.logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Expert Section */
.expert {
    padding: var(--section-padding);
    background-color: var(--black);
}

.image-stack {
    position: relative;
}

.main-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--light);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--black);
    color: var(--white);
    padding: 24px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    border: 1px solid var(--gray-800);
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
}

.experience-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.features {
    margin-top: 40px;
}

.feature {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature i {
    color: var(--accent);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.feature h4 {
    font-family: var(--font-ui);
    margin-bottom: 5px;
}

.intervention-model {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.intervention-model h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.intervention-contrast {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.intervention-accent {
    color: var(--accent);
}

/* Services / Pillars */
.services {
    background-color: var(--black);
    color: var(--gray-100); /* Improved contrast from white to light gray */
    padding: var(--section-padding);
}

.services .section-header .eyebrow {
    color: var(--gray-300); /* Contrast fix for visibility */
}

.services .section-header h2 {
    color: var(--white); /* Contrast fix for visibility */
}

.services p {
    color: rgba(255, 255, 255, 0.7);
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.grid-pillars {
    display: block;
    /* Let container handle it */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-content: center;
    gap: 30px;
    max-width: 1300px; /* Caps columns so extra tracks can't push cards left on wide screens */
    margin: 0 auto;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background-color: #22c35e;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Floating FAQ Button */
.faq-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--gray-100);
    color: var(--white);
    border: 1px solid var(--border);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--gray-200);
}

@media (max-width: 768px) {
    .faq-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

.faq-panel {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 340px;
    max-width: calc(100vw - 40px);
    max-height: 70vh;
    background-color: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.faq-panel[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .faq-panel {
        bottom: 80px;
        left: 20px;
    }
}

.faq-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.faq-panel-header h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
}

.faq-close-btn {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.faq-close-btn:hover {
    color: var(--white);
}

.faq-list {
    overflow-y: auto;
    padding: 8px 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 14px 20px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
}

.faq-question:hover {
    color: var(--accent-light);
}

.faq-answer {
    padding: 0 20px 16px;
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-panel-footer {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
}

.faq-whatsapp-link {
    display: block;
    text-align: center;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 4px;
    transition: var(--transition);
}

.faq-whatsapp-link:hover {
    background-color: #22c35e;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: var(--gray-50);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

/* Expandable "Saber más" content */
.expand-block {
    margin-top: 12px;
}

.expand-block[hidden] {
    display: none;
}

.expand-heading {
    font-family: var(--font-ui);
    margin-bottom: 8px;
}

.read-more-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 14px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
}

.read-more-btn:hover {
    opacity: 0.75;
}

.read-more-btn-sm {
    font-size: 0.85rem;
    margin-top: 10px;
}


.service-card h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.service-card p {
    color: var(--gray-600) !important;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

.service-card i {
    color: var(--primary) !important;
    opacity: 1 !important;
    margin-bottom: 24px;
}

.service-card h3 {
    color: var(--primary) !important;
    opacity: 1 !important;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--slate) !important;
    opacity: 1 !important;
    font-size: 0.95rem;
    line-height: 1.7; /* Increased line-height */
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: var(--gray-100);
}

/* Individual Executive Processes */
.individual-processes {
    padding: var(--section-padding);
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.process-modalities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.process-tag {
    background-color: var(--gray-100);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
}

.process-areas {
    text-align: center;
    margin-top: 30px;
    color: var(--gray-700);
}

.process-areas strong {
    color: var(--white);
}

/* Companies Section & Inline Logos */
.inline-logo {
    height: 2.2em; /* Further increased for identification */
    width: auto;
    vertical-align: middle;
    margin-left: 15px; /* Spacing to the left now that logo is on the right */
    filter: none !important; 
    opacity: 1 !important;
    transition: var(--transition);
}

.author:hover .inline-logo,
.logo-item:hover .inline-logo {
    transform: scale(1.1);
}

.companies-section {
    padding: var(--section-padding);
    background-color: var(--white);
    text-align: center;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.company-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.company-logo-box img.logo {
    height: 55px; /* Compacted header */
    width: auto;
    max-width: 120px;
}

.company-logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.company-logo-box span {
    font-size: 1rem;
    line-height: 1.7;
    color: #111827; /* Darker as requested */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inline-logo.btr-logo {
    height: auto !important; /* Very wide logo, cap width instead of height */
    max-height: 1.6em;
    max-width: 90px;
    width: auto;
}

.inline-logo.cordoba-logo {
    height: 55px !important; /* Compact icon, needs a size boost to read clearly */
    width: auto;
}

.inline-logo.cic-logo,
.inline-logo.guelty-logo {
    height: 55px !important; /* Compact icon, needs a size boost to read clearly */
    width: auto;
}

/* Blog Section */
.blog {
    padding: var(--section-padding);
    background-color: var(--black);
    color: var(--gray-100);
}

.blog .section-header .eyebrow {
    color: var(--gray-300);
}

.blog .section-header h2,
.blog .section-header p {
    color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--gray-50);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 0; /* Prevents long unbroken text from forcing the grid track wider */
    overflow-wrap: break-word;
}

.blog-card:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
    transform: translateY(-5px);
}

.blog-date {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.blog-card h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.3rem;
    overflow-wrap: break-word;
}

.blog-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
    overflow-wrap: break-word;
}

.empty-state {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    margin-top: 20px;
}

/* Booking Section */
.booking {
    padding: var(--section-padding);
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.calendar-container {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Contact Box removal fallback */
.contact-methods {
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-form form {
    display: grid;
    gap: 20px;
}

input,
textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.full-width {
    width: 100%;
}

/* Testimonials Slider */
.testimonials {
    padding: var(--section-padding) 0;
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    overflow: hidden;
}

.testimonials-slider {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
}

.testimonials-track {
    display: flex;
    width: calc(400px * var(--count, 6) * 2);
    animation: scrollTestimonials 60s linear infinite; /* Slower */
    gap: 30px;
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc((-400px - 30px) * var(--count, 6))); }
}

.testimonial-card {
    background-color: var(--gray-100);
    padding: 30px;
    border-radius: 4px;
    border: 1px solid var(--border);
    min-width: 350px; /* Shortened */
    max-width: 350px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--gray-800);
    margin-bottom: 20px;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.testimonial-card .stars {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--slate);
    margin-bottom: 30px;
    font-size: 1.15rem;
    line-height: 1.8;
}

.testimonial-card .author {
    display: flex;
    flex-direction: column;
}

.testimonial-card .author strong {
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
}

.testimonial-card .author span {
    color: var(--accent-light);
    font-size: 0.85rem;
}

.testimonial-card .author .inline-logo {
    height: 34px !important; /* Independent of the small span font-size so it reads clearly */
    width: auto;
}

@media (max-width: 968px) {
    .testimonial-card {
        width: 320px;
        padding: 30px;
    }

    .testimonials-track {
        animation: scrollTestimonials 100s linear infinite; /* Slower than desktop: same scroll distance, less time to read on a small screen */
    }
}

/* Footer */
.footer {
    background-color: var(--gray-950);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--gray-800);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 150px; /* Boosted for maximum visibility */
    width: auto;
    margin-bottom: 24px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    font-size: 1.05rem;
}

.footer-column h4 {
    color: var(--white);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.footer-social-list a:hover {
    color: var(--white);
}

.footer-social-list svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 40px;
    padding-right: 90px; /* Keep clear of the fixed WhatsApp button */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-copy a {
    color: inherit;
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-right: 0;
        padding-bottom: 70px; /* Keep clear of the fixed WhatsApp button */
    }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .grid,
    .contact-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        border-bottom: 1px solid var(--border);
        gap: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        text-align: center;
        padding: 0 20px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Gallery Section - Photo Album Slider */
.gallery {
    padding: var(--section-padding);
    background-color: var(--black);
    overflow: hidden;
}

.gallery-slider {
    margin-top: 50px;
    width: 100%;
    position: relative; /* For button positioning */
}

.gallery-container {
    overflow: visible; /* Allow peeking */
    width: 100%;
    max-width: 1200px; /* Control framing area */
    margin: 0 auto;
}

.gallery-track {
    display: flex;
    gap: 40px;
    width: max-content;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: -25px;
}

.gallery-nav.next {
    right: -25px;
}

@media (max-width: 768px) {
    .gallery-nav.prev { left: 10px; }
    .gallery-nav.next { right: 10px; }
}

.gallery-item {
    flex: 0 0 600px; /* 50% of 1200px container for half-peek */
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    opacity: 0.4; /* Stronger dim for sides */
    transition: var(--transition);
    filter: grayscale(80%); /* Added focus effect */
}

.gallery-item.active {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%);
    z-index: 5;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 85vw; /* Almost full width on mobile */
        height: 250px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* End of Gallery Styles */

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px;
    color: var(--white);
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: var(--gray-400) !important;
}