/* ========================================
   RIVEHNS - Premium Engineering & Construction
   ======================================== */

/* ===== CUSTOM FONTS ===== */
@font-face {
    font-family: 'Museo Cyrl';
    src: url('../museo/Museo300-Regular.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Ageo Font Faces for Titles */
@font-face {
    font-family: 'Ageo';
    src: url('../assets/ageo/AgeoTrial-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('../assets/ageo/AgeoTrial-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('../assets/ageo/AgeoTrial-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('../assets/ageo/AgeoTrial-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('../assets/ageo/AgeoTrial-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('../assets/ageo/AgeoTrial-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('../assets/ageo/AgeoTrial-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ageo';
    src: url('../assets/ageo/AgeoTrial-Heavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== CLIENTS SECTION ===== */
.clients.section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.clients-header {
    text-align: center;
    margin-bottom: 3rem;
}

.clients-header .section-label {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.clients-header .section-title {
    color: var(--color-accent);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin: 0;
}

/* Container for all rows */
.clients-logos {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Individual row styling */
.clients-row {
    width: 100%;
    display: grid;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    justify-content: center;
}

/* Row with 5 columns */
.clients-row.cols-5 {
    grid-template-columns: repeat(5, minmax(150px, 220px));
}

/* Row with 4 columns */
.clients-row.cols-4 {
    grid-template-columns: repeat(4, minmax(150px, 240px));
}

/* Client logo images directly in grid */
.clients-row img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    animation: float 4s ease-in-out infinite;
}

/* Staggered animation delays for each image */
.clients-row img:nth-child(1) { animation-delay: 0s; }
.clients-row img:nth-child(2) { animation-delay: 0.4s; }
.clients-row img:nth-child(3) { animation-delay: 0.8s; }
.clients-row img:nth-child(4) { animation-delay: 1.2s; }
.clients-row img:nth-child(5) { animation-delay: 1.6s; }

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.clients-row img:hover {
    animation-play-state: paused;
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

/* Responsive design */
@media (max-width: 1024px) {
    .clients-row.cols-5 {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
    
    .clients-row.cols-4 {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
    
    .clients-row img {
        max-height: 85px;
    }
}

@media (max-width: 768px) {
    .clients-logos {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .clients-row.cols-5,
    .clients-row.cols-4 {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .clients-row img {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .clients.section {
        padding: 2rem 0;
    }
    
    .clients-header {
        margin-bottom: 2rem;
    }
    
    .clients-logos {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .clients-row.cols-5,
    .clients-row.cols-4 {
        grid-template-columns: repeat(1, minmax(150px, 1fr));
        gap: 1.25rem;
    }
    
    .clients-row img {
        max-height: 80px;
    }
}

@font-face {
    font-family: 'Museo Cyrl';
    src: url('../museo/Museo700-Regular.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HK Grotesk';
    src: url('../HKGrotesk-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HK Grotesk';
    src: url('../HKGrotesk-Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HK Grotesk';
    src: url('../HKGrotesk-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'HK Grotesk';
    src: url('../HKGrotesk-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HK Grotesk';
    src: url('../HKGrotesk-BoldLegacy.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-black: #0B0F14;
    --color-gray-dark: #3C4653;
    --color-gray-light: #EEF2F6;
    --color-white: #FFFFFF;
    --color-accent: #24487F; /* Azul oscuro nuevo */
    --color-accent-hover: #24487F;
    --color-green: #489C44; /* Verde nuevo */
    
    /* Typography */
    --font-heading: 'Ageo', 'Museo Cyrl', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-subtitle: 'Geometria', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */

/* ===== HOMEPAGE TITLES (uniform size & color) ===== */
.page-index .section-title,
.page-index .values-main-title,
.page-index .services-title,
.page-index .service-title,
.page-index .value-item-title,
.page-index .servicio-card-title,
.page-index h2,
.page-index h3 {
    color: var(--color-accent) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: none;
    line-height: 1.25;
    margin: 0 0 0.75rem 0;
    font-size: clamp(1.25rem, 2.0vw, 1.6rem);
}

.page-index .values-main-title {
    font-size: clamp(1.25rem, 2.0vw, 1.6rem); /* ensure same size for section headings */
}

.page-index .service-title,
.page-index .servicio-card-title {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}
/* Ensure service titles on homepage remain white (override earlier rule) */
.page-index .service-title {
    color: var(--color-white) !important;
}

/* Increase service title size on homepage */
.page-index .service-title {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}
h1, h2, h3 {
    font-family: 'Ageo', var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-black);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    text-align: justify;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.section {
    padding: 1.5rem 0;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header.centered {
    text-align: center;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #5A8ACC);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
}

/* ===== TOP BAR ===== */
.topbar {
    display: none;
}



/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hide header when scrolling down */
.header.hidden {
    transform: translateY(-100%);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.header.hidden.scrolled {
    box-shadow: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--spacing-lg);
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 180px;
    height: 40px;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-white {
    opacity: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-color {
    opacity: 0;
}

.header.scrolled .logo-white {
    opacity: 0;
}

.header.scrolled .logo-color {
    opacity: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-left: auto;
}

.nav-link {
    position: relative;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color var(--transition-base);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-link {
    color: var(--color-black);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.header.scrolled .header-social {
    color: var(--color-black);
    background-color: rgba(0, 0, 0, 0.05);
}

.header-social:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.header.scrolled .header-social:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
}

.header.scrolled .menu-toggle span {
    background-color: var(--color-black);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-secondary:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.hero-title-overlay h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: white;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    margin: 0;
    animation: fadeInScale 1s ease-out;
}

/* Typing Effect Styles */
.typing-main {
    display: inline-block;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    margin: 0 0 1.5rem 0 !important;
    line-height: 1.3;
    min-height: 1.3em;
    border-right: 3px solid rgba(255, 255, 255, 0.7);
    white-space: normal;
    word-wrap: break-word;
    max-width: 800px;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: rgba(255, 255, 255, 0.7);
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

.typing-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin: 1rem 0 0 0;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInSubtitle 0.8s ease-out 2s forwards;
    max-width: 700px;
    line-height: 1.5;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    max-width: 900px;
    padding: var(--spacing-md);
}

/* INDEX ONLY: place hero title at left center */
.hero#inicio .hero-title-overlay {
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 700px;
}

.hero#inicio .hero-title-overlay h1 {
    font-size: clamp(1.25rem, 2.8vw, 2.2rem); /* smaller but readable */
    letter-spacing: 0.02em;
    line-height: 1.18;
    word-spacing: normal;
    text-transform: none; /* keep original casing */
    max-width: 620px; /* ensure wrapping to multiple lines */
}

.hero-logo {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hero-logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.2));
    transition: all 0.5s ease;
}

.hero-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    cursor: pointer;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-indicator:hover .scroll-circle {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

.scroll-circle {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.scroll-circle::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--color-white);
    border-radius: 2px;
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about {
    padding: var(--spacing-lg) 0;
}

.about-video-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 10px 30px rgba(46, 80, 144, 0.1);
    border: 3px solid var(--color-white);
    outline: 2px solid rgba(46, 80, 144, 0.2);
    outline-offset: 4px;
    transition: all var(--transition-slow);
}

.about-image:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2), 
                0 15px 40px rgba(46, 80, 144, 0.15);
    transform: translateY(-4px);
}

.about-image img,
.about-image iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.video-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(46, 80, 144, 0.95) 0%, rgba(31, 58, 107, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
    animation: badge-pulse 3s ease-in-out infinite;
}

.video-overlay-badge svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.about-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-accent), #5A8ACC, var(--color-accent));
    border-radius: 18px;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-slow);
}

.about-image:hover::before {
    opacity: 0.15;
}

.reveal-mask {
    clip-path: inset(0 100% 0 0);
}

.about-text {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-list {
    list-style: none;
}

.about-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    transform: rotate(45deg);
}

/* ===== MISSION & VISION ===== */
/* ===== VALUES SECTION ===== */
.values-section {
    padding: 3rem 1.5rem;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(11,15,20,0.03);
}

.values-section::before,
.values-section::after {
    display: none; /* remove decorative gradients */
}

.values-section .container {
    position: relative;
    z-index: 1;
    padding: 0 4rem; /* lateral space */
    margin: 0 auto;
}

.values-intro {
    margin-bottom: 1.25rem;
    text-align: center;
    margin-top: 0.5rem;
}

.values-intro-text {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-gray-dark);
    margin: 0 auto;
    font-family: var(--font-body);
    text-align: center;
    max-width: 820px;
}

.values-main-title {
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    color: var(--color-accent);
    margin-top: 0;
    white-space: normal;
    font-family: 'Ageo', var(--font-heading);
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item:hover::before {
    left: 0;
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0.6rem auto 0.6rem auto; /* centrar icono */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(72,156,68,0.12);
    border-radius: 50%; /* círculo */
    color: var(--color-green);
    transition: transform 0.22s ease, background 0.22s ease;
    box-shadow: 0 6px 20px rgba(11,15,20,0.04);
    flex: 0 0 auto;
}

.value-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.2;
    display: block;
}

.value-item:hover .value-icon {
    background: var(--color-green);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
}

/* Responsive: smaller icons on narrow viewports */
@media (max-width: 768px) {
    .value-icon {
        width: 44px;
        height: 44px;
        box-shadow: 0 6px 16px rgba(11,15,20,0.03);
    }
    .value-icon svg {
        width: 18px;
        height: 18px;
    }
    .values-section .container {
        padding: 0 1.25rem;
    }
    .values-grid {
        gap: 1rem;
    }
}

.value-item-title {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem); /* más pequeña */
    font-weight: 700;
    color: var(--color-green);
    margin: 0.6rem 0 0.6rem 0;
    text-transform: none; /* mayúsculas opcionales */
    letter-spacing: 0.4px;
    font-family: 'Ageo', var(--font-heading);
    text-align: center;
}

.value-item-text {
    font-size: clamp(0.82rem, 1.2vw, 0.95rem); /* más pequeña */
    color: var(--color-gray-dark);
    line-height: 1.5;
    text-align: center; /* centrado */
    margin: 0.45rem auto 0 auto;
    font-family: var(--font-subtitle);
    max-width: 280px; /* limitar ancho para lectura */
}

.mission-vision {
    background-color: var(--color-gray-light);
    position: relative;
}

.mv-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.mv-sticky {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
}

.mv-bg {
    width: 100%;
    height: 100%;
    background-color: var(--color-gray-light);
    background-image: url("../assets/Dise%C3%B1o%20sin%20t%C3%ADtulo.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 1;
    /* fallback subtle gradient overlay via pseudo-element */
    position: relative;
}

.mv-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11,15,20,0.55) 0%, rgba(46,80,144,0.35) 100%);
    pointer-events: none;
}

.mv-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
    padding: var(--spacing-xxl) var(--spacing-lg);
}

.mv-block {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mv-text {
    font-size: 1.125rem;
    line-height: 1.9;
    max-width: 600px;
}

.mv-image-container {
    margin-top: var(--spacing-lg);
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mv-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.mv-image-container:hover img {
    transform: scale(1.05);
}

/* ===== SERVICES ===== */
.services {
    background-color: var(--color-white);
    padding: 0;
}

.services-header {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.services-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -1px;
    line-height: 1.2;
    font-family: 'Ageo', var(--font-heading);
}

.services-stacking-container {
    position: relative;
    height: 300vh;
}

.service-stack-item {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background-color: var(--color-white);
}

.service-stack-item:not(:last-child) {
    border-bottom: 1px solid var(--color-gray-light);
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
    z-index: 0;
}

.service-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter var(--transition-slow);
}

.service-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 15, 20, 0.9) 0%, rgba(11, 15, 20, 0.3) 50%, transparent 100%);
    transition: opacity var(--transition-slow);
}

.service-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--color-white);
}

.service-content .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Two-column layout inside service cards: title/desc left, includes list right */
.service-row {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}
.service-left {
    flex: 1 1 55%;
}
.service-right {
    flex: 0 0 35%;
    background: rgba(255,255,255,0.04);
    padding: 1rem 1.25rem;
    border-radius: 8px;
}
.includes-title {
    font-size: 0.95rem;
    color: var(--color-white);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}
.service-includes {
    list-style: disc;
    padding-left: 1rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-white);
}
.service-includes li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.service-focus {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.95);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .service-row {
        flex-direction: column;
        gap: 1rem;
    }
    .service-right {
        flex-basis: auto;
        width: 100%;
    }
}

.service-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    font-family: 'Ageo', var(--font-heading);
}

.service-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-white);
    max-width: 500px;
    line-height: 1.6;
    opacity: 0.9;
}

.service-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 10px 28px;
    background-color: transparent;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.service-btn:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: translateX(5px);
}

.service-stack-item:hover .service-bg {
    transform: scale(1.02);
}

.service-stack-item:hover .service-bg img {
    filter: grayscale(0%);
}

/* ===== EXPERIENCE ===== */
.experience {
    background-color: var(--color-white);
    padding: 0.25rem 0;
}

.experience-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.experience-content {
    max-width: 600px;
}

.experience-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -1px;
    line-height: 1.2;
}

.experience-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--color-gray-dark);
    line-height: 1.8;
    opacity: 0.85;
}

/* Updated 2026-02-17 - Fix carousel button clicks */
.experience-collage {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.coverflow-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coverflow-wrapper {
    width: 100%;
    height: 100%;
    perspective: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    pointer-events: none;
}

.collage-item {
    position: absolute;
    width: 400px;
    height: 350px;
    background-color: var(--color-gray-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Posiciones del coverflow */
.collage-item[data-index="0"] {
    transform: translateX(-250px) translateZ(-200px) rotateY(35deg) scale(0.85);
    opacity: 0.5;
    z-index: 1;
}

.collage-item[data-index="1"] {
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 3;
}

.collage-item[data-index="2"] {
    transform: translateX(250px) translateZ(-200px) rotateY(-35deg) scale(0.85);
    opacity: 0.5;
    z-index: 1;
}

.collage-item.active {
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1) !important;
    opacity: 1 !important;
    z-index: 3 !important;
}

.collage-item:hover img {
    transform: scale(1.05);
}

/* Botones de navegación */
.coverflow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    pointer-events: auto !important;
    outline: none;
}

.coverflow-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.coverflow-nav:hover {
    background-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.coverflow-nav:hover svg {
    stroke: white;
}

.coverflow-nav svg {
    stroke: var(--color-primary);
    transition: stroke 0.3s ease;
    pointer-events: none;
}

.coverflow-prev {
    left: 20px;
}

.coverflow-next {
    right: 20px;
}

/* Indicadores */
.coverflow-indicators {
    display: flex;
    gap: 12px;
    margin-top: 12px; /* reduced spacing under collage */
    justify-content: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.coverflow-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    pointer-events: auto;
    outline: none;
}

.coverflow-indicators .indicator:hover {
    background-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.coverflow-indicators .indicator:active {
    transform: scale(0.9);
}

.coverflow-indicators .indicator.active {
    background-color: var(--color-primary);
    width: 30px;
    border-radius: 5px;
}

.coverflow-indicators .indicator:hover {
    background-color: var(--color-primary);
    opacity: 0.7;
}

/* Responsive Coverflow */
@media (max-width: 1024px) {
    .collage-item {
        width: 350px;
        height: 300px;
    }
    
    .collage-item[data-index="0"] {
        transform: translateX(-200px) translateZ(-150px) rotateY(30deg) scale(0.8);
    }
    
    .collage-item[data-index="2"] {
        transform: translateX(200px) translateZ(-150px) rotateY(-30deg) scale(0.8);
    }
    
    .coverflow-nav {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .experience-collage {
        height: 400px;
    }
    
    .coverflow-container {
        height: 350px;
    }
    
    .collage-item {
        width: 300px;
        height: 250px;
    }
    
    .collage-item[data-index="0"] {
        transform: translateX(-150px) translateZ(-100px) rotateY(25deg) scale(0.75);
    }
    
    .collage-item[data-index="2"] {
        transform: translateX(150px) translateZ(-100px) rotateY(-25deg) scale(0.75);
    }
    
    .coverflow-nav {
        width: 40px;
        height: 40px;
    }
    
    .coverflow-prev {
        left: 10px;
    }
    
    .coverflow-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .experience-collage {
        height: 350px;
    }
    
    .coverflow-container {
        height: 300px;
    }
    
    .collage-item {
        width: 250px;
        height: 200px;
    }
    
    .collage-item[data-index="0"] {
        transform: translateX(-100px) translateZ(-80px) rotateY(20deg) scale(0.7);
    }
    
    .collage-item[data-index="2"] {
        transform: translateX(100px) translateZ(-80px) rotateY(-20deg) scale(0.7);
    }
    
    .coverflow-nav {
        width: 35px;
        height: 35px;
    }
    
    .coverflow-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .coverflow-indicators {
        margin-top: 20px;
        gap: 8px;
    }
    
    .coverflow-indicators .indicator {
        width: 8px;
        height: 8px;
    }
    
    .coverflow-indicators .indicator.active {
        width: 24px;
    }
}

/* ===== EXPERIENCE STATS ===== */
.experience-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem !important;
    margin-top: 0.6rem !important;
    padding-top: 0;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.3rem !important;
}

.stat-number {
    font-family: 'Ageo', var(--font-heading);
    font-size: 1.3rem !important;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.2rem !important;
    display: flex;
    align-items: center;
    gap: 0.2rem !important;
}

.stat-number[data-suffix]::after {
    content: attr(data-suffix);
    font-family: var(--font-body);
    font-weight: 700;
    margin-left: 1px;
}

.stat-label {
    font-size: 0.75rem !important;
    font-weight: 600;
    color: var(--color-gray-dark);
    letter-spacing: 0.5px;
    font-family: 'Ageo', var(--font-heading);
    text-transform: uppercase;
}

/* Responsive Experience Stats */
@media (max-width: 1024px) {
    .experience-stats {
        gap: 0.45rem;
        margin-top: 0.65rem;
        padding-top: 0;
    }
    
    .stat-number {
        font-size: 1.2rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 768px) {
    .experience-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        margin-top: 0.5rem;
        padding-top: 0;
    }
    
    .stat-number {
        font-size: 1.1rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .experience-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
        margin-top: 0.5rem;
        padding-top: 0;
    }
    
    .stat-number {
        font-size: 1rem !important;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
    }
}

/* ===== PROJECTS ===== */
.projects {
    background-color: var(--color-gray-light);
}

.projects-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
    max-width: 1600px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--color-white);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.project-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-info {
    padding: var(--spacing-md);
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.project-title {
    font-size: 1.25rem;
    color: var(--color-black);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: 0.75rem;
    transition: all var(--transition-base);
    border-bottom: 2px solid transparent;
}

.project-link::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform var(--transition-base);
}

.project-link:hover {
    border-bottom-color: var(--color-accent);
    gap: 0.75rem;
}

.project-link:hover::after {
    transform: translateX(3px);
}

.projects-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Responsive projects */
@media (max-width: 1024px) {
    .projects-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-showcase {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .project-card {
        height: 400px;
    }
}

/* ===== CLIENTS ===== */
.clients {
    background-color: var(--color-white);
    overflow: hidden;
}

.clients-marquee {
    margin-top: var(--spacing-lg);
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    gap: var(--spacing-xl);
    animation: marquee 40s linear infinite;
}

.client-logo {
    flex-shrink: 0;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1;
    transition: all var(--transition-base);
}

.client-logo:hover {
    filter: none;
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.clients-grid {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.clients-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    justify-items: center;
    max-height: none;
    overflow: visible;
}

.clients-grid .client-logo {
    animation: none;
    width: 120px;
    height: 60px;
}

.clients-toggle {
    text-align: center;
    margin-top: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .clients-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .clients-grid .client-logo {
        width: 110px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .clients-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .clients-grid .client-logo {
        width: 100px;
        height: 50px;
    }
}

/* ===== PUBLICATIONS ===== */
/* ===== SCROLL-DRIVEN VIDEO ===== */
.scroll-video {
    background-color: #000;
    padding: 0;
    position: relative;
    z-index: 1;
}

.scroll-video-container {
    height: 250vh; /* Restore comfortable scroll length */
    position: relative;
    width: 100%;
}

.scroll-video-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* Reduced black overlay for video */
.scroll-video-sticky::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Very light darkness */
    z-index: 2;
    pointer-events: none;
}

.scroll-video-header-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    /* Removed box styling for integration */
    background: transparent;
    backdrop-filter: none;
    border: none;
}

.scroll-video-header-overlay .section-label {
    color: var(--color-white);
    background: var(--color-accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-video-header-overlay .section-title {
    color: var(--color-white);
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-weight: 700;
}

/* ===== CONTACT OVERLAY LAYOUT ===== */
.contact {
    padding-top: 2rem; /* Reduced from var(--spacing-xl) */
    padding-bottom: var(--spacing-xl);
    padding-left: 0;
    padding-right: 0;
    overflow: visible; /* Allow card overlap */
    background: #fff;
}

.contact-layout {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 600px;
}

.contact-info-box {
    width: 65%;
    max-height: 520px; /* Limit height slightly */
    background-color: #ecf8ff; /* Deep Blue base */
    /* Overlay with photo background */
    background-image: linear-gradient(135deg, rgba(11, 37, 89, 0.85) 0%, rgba(6, 24, 61, 0.9) 100%), url('../assets/img/r3_1_1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 14rem 3rem 3rem; /* Reduced padding for finer look */
    border-radius: 20px 0 0 20px;
    position: relative;
    z-index: 1;
    display: flex; /* Helps vertically center content if less text */
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.contact-info-content-inner {
    position: relative;
    z-index: 2;
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero-bg.jpg') center/cover no-repeat; /* Fallback or reuse exist img */
    opacity: 0.1;
    mix-blend-mode: overlay;
    border-radius: 20px 0 0 20px;
    pointer-events: none;
}

.page-index .contact-title-large {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important; /* Force white color override global h2 */
}

.contact-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 400px;
}

.contact-direct-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    color: #4facfe; /* Light blue accent icon */
    transform: translateY(2px);
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-details a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.info-details a:hover {
    opacity: 0.7;
}

/* Right Side: Form Card */
.contact-form-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    padding: 2.5rem;
    z-index: 10;
}

.contact-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-weight: 600;
}

.new-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.new-contact-form input,
.new-contact-form textarea {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-black);
    outline: none;
    transition: border-color 0.3s;
}

.new-contact-form input:focus,
.new-contact-form textarea:focus {
    border-color: var(--color-accent);
}

.new-contact-form textarea {
    resize: none;
    min-height: 100px;
}

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #666;
    margin-bottom: 0.5rem;
}

.form-checkbox-wrapper input {
    width: auto;
    margin-top: 3px;
}

.form-checkbox-wrapper a {
    color: var(--color-accent);
    text-decoration: underline;
}

.form-action-right {
    display: flex;
    justify-content: flex-end; /* Button aligned right as typically seen in cards, or full width */
}

.btn-box-submit {
    background-color: #9cb3c9; /* Light slate blue/gray from image reference */
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-box-submit:hover {
    background-color: #8aa3bb;
}

/* Success Message Overlay for the card */
.contact-form-card .form-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}
.contact-form-card .form-success.active {
    display: flex;
}

/* Responsive Logic */
@media (max-width: 991px) {
    .contact-layout {
        flex-direction: column;
        height: auto;
        min-height: auto;
        margin: 0 1rem;
    }
    
    .contact-info-box {
        width: 100%;
        padding: 3rem 2rem 5rem 2rem; /* Extra bottom padding for overlap */
        border-radius: 12px 12px 0 0;
    }

    .contact-form-card {
        position: relative;
        width: 90%;
        top: 0;
        transform: translateY(-3rem); /* Slight overlap upwards */
        margin: 0 auto;
        padding: 2rem;
        border-radius: 8px;
    }
}

@media (max-width: 600px) {
    .form-row-compact {
        grid-template-columns: 1fr;
    }
    .contact-title-large {
        font-size: 1.75rem;
    }
    .contact-info-box {
        padding: 2rem 1.5rem 4rem 1.5rem;
    }
    .contact-form-card {
        width: 100%;
        transform: translateY(-2rem);
    }
}

/* ===== NOSOTROS PAGE ===== */
.nosotros-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nosotros-hero .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.nosotros-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.nosotros-hero-bg img,
.nosotros-hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nosotros-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.nosotros-logo {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.nosotros-logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
}

.nosotros-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nosotros-about {
    padding: var(--spacing-lg) 0;
    background: var(--color-white);
}

.nosotros-about-split {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 560px;
    overflow: hidden;
}

.nosotros-about-panel {
    background: #efefef;
    padding: clamp(2rem, 4vw, 3.4rem);
    display: grid;
    align-content: center;
    gap: 1.2rem;
}

.nosotros-about-title {
    margin: 0;
    color: #e0005a;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
}

.nosotros-about-media {
    min-height: 100%;
}

.nosotros-about-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ===== PROYECTOS HERO - Centered vertically, aligned left ===== */
.proyectos-hero {
    justify-content: flex-start;
    padding-left: var(--spacing-xxl);
    padding-right: 0;
}

.proyectos-hero .nosotros-hero-content {
    align-items: flex-start;
    text-align: left;
}

/* ===== CLIENTES HERO - Centered vertically, aligned right ===== */
.clientes-hero {
    justify-content: flex-end;
    padding-right: var(--spacing-xxl);
    padding-left: 0;
}

.clientes-hero .nosotros-hero-content {
    align-items: flex-end;
    text-align: right;
}

.nosotros-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.nosotros-intro-text {
    font-size: clamp(1.05rem, 1.35vw, 1.45rem);
    line-height: 1.35;
    color: var(--color-gray-dark);
    margin: 0;
    max-width: 640px;
}

/* Video Section */
.nosotros-video-section {
    padding: var(--spacing-lg) 0;
    background: #F5F5F5;
}

.nosotros-video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nosotros-video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.nosotros-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mission & Vision Sections */
.nosotros-mission {
    padding: var(--spacing-lg) 0;
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

.nosotros-vision {
    padding: var(--spacing-lg) 0;
    background: #FAFAFA;
    position: relative;
    overflow: hidden;
}

.nosotros-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.nosotros-mv-grid-reverse {
    direction: rtl;
}

.nosotros-mv-grid-reverse > * {
    direction: ltr;
}

.nosotros-mv-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-slow);
}

.nosotros-mv-image:hover {
    transform: scale(1.02);
}

.nosotros-mv-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.nosotros-mv-image:hover img {
    transform: scale(1.05);
}

.nosotros-mv-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 80, 144, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.nosotros-mv-content {
    padding: var(--spacing-sm);
}

.nosotros-mv-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    background: rgba(46, 80, 144, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
}

.nosotros-mv-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
}

.nosotros-mv-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    margin-bottom: var(--spacing-sm);
    border-radius: 2px;
}

.nosotros-mv-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nosotros-logo img {
        height: 70px;
    }

    .nosotros-hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .nosotros-about-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .nosotros-about-panel {
        padding: 1.8rem 1.2rem;
    }

    .nosotros-about-title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .nosotros-about-media {
        height: 320px;
    }

    .nosotros-intro-text {
        font-size: 1rem;
        line-height: 1.45;
    }

    .nosotros-video-wrapper {
        border-radius: 12px;
        max-width: 100%;
    }

    .nosotros-mv-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .nosotros-mv-grid-reverse {
        direction: ltr;
    }

    .nosotros-mv-title {
        font-size: 1.75rem;
    }

    .nosotros-mv-text {
        font-size: 1rem;
    }

    .nosotros-mv-content {
        padding: var(--spacing-xs);
    }

    .nosotros-about,
    .nosotros-video-section,
    .nosotros-mission,
    .nosotros-vision {
        padding: var(--spacing-md) 0;
    }
}

/* ===== PROYECTOS PAGE ===== */
.proyectos-wrapper {
    background: #FAFAFA;
}

.proyecto-item {
    padding: var(--spacing-lg) 0;
    background: var(--color-white);
}

.proyecto-item.proyecto-alt {
    background: #FAFAFA;
}

.proyecto-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.proyecto-card.proyecto-reverse {
    direction: rtl;
}

.proyecto-card.proyecto-reverse > * {
    direction: ltr;
}

.proyecto-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.proyecto-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.proyecto-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.proyecto-image:hover img {
    transform: scale(1.05);
}

.proyecto-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(46, 80, 144, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(46, 80, 144, 0.3);
}

.proyecto-content {
    padding: var(--spacing-sm);
}

.proyecto-title {
    font-family: 'Ageo', var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.proyecto-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    margin-bottom: var(--spacing-md);
    border-radius: 2px;
}

.proyecto-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.proyecto-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-dark);
}

.proyecto-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Responsive Proyectos */
@media (max-width: 768px) {
    .proyecto-item {
        padding: var(--spacing-md) 0;
    }

    .proyecto-card,
    .proyecto-card.proyecto-reverse {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        direction: ltr;
    }

    .proyecto-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        top: 15px;
        right: 15px;
    }

    .proyecto-title {
        font-size: 1.5rem;
    }

    .proyecto-list li {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-xs);
    }
}

/* ===== CLIENTES PAGE ===== */
.clientes-intro {
    padding: var(--spacing-lg) 0;
    background: var(--color-white);
}

.clientes-intro-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.clientes-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    background: rgba(46, 80, 144, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
}

.clientes-intro-title {
    font-family: 'Ageo', var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.clientes-intro-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
    margin: 0;
}

/* Clientes Grid */
.clientes-grid-section {
    padding: var(--spacing-lg) 0;
    background: #FAFAFA;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.cliente-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.cliente-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 80, 144, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.cliente-card:hover::before {
    opacity: 1;
}

.cliente-card-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cliente-card img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all var(--transition-normal);
}

.cliente-card:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* Stats Section */
.clientes-stats {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, #1f3a6b 100%);
    position: relative;
    overflow: hidden;
}

.clientes-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    color: var(--color-white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
}

.stat-plus,
.stat-percent {
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-left: 5px;
    opacity: 0.8;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Responsive Clientes */
@media (max-width: 768px) {
    .clientes-intro {
        padding: var(--spacing-md) 0;
    }

    .clientes-grid-section {
        padding: var(--spacing-md) 0;
    }

    .clientes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }

    .cliente-card {
        padding: var(--spacing-sm);
        min-height: 110px;
    }

    .cliente-card img {
        max-height: 60px;
    }

    .clientes-stats {
        padding: var(--spacing-md) 0;
    }

    .stats-grid {
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

/* ===== PUBLICACIONES PAGE ===== */
.publicaciones-section {
    padding: var(--spacing-lg) 0;
    background: #FAFAFA;
}

.publicaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--spacing-lg);
}

.publicacion-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.publicacion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.publicacion-header {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #F0F0F0;
}

.publicacion-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    background: var(--color-accent);
    padding: 6px 14px;
    border-radius: 20px;
}

.publicacion-meta {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-gray-dark);
}

.publicacion-date,
.publicacion-comments {
    display: flex;
    align-items: center;
    gap: 6px;
}

.publicacion-date svg,
.publicacion-comments svg {
    opacity: 0.6;
}

.publicacion-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.publicacion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.publicacion-card:hover .publicacion-image img {
    transform: scale(1.08);
}

.publicacion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.publicacion-card:hover .publicacion-overlay {
    opacity: 1;
}

.publicacion-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.publicacion-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    transition: color var(--transition-normal);
}

.publicacion-card:hover .publicacion-title {
    color: var(--color-accent);
}

.publicacion-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
    margin-bottom: var(--spacing-md);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publicacion-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-normal);
    align-self: flex-start;
}

.publicacion-link svg {
    transition: transform var(--transition-normal);
}

.publicacion-link:hover {
    gap: 12px;
    color: #1f3a6b;
}

.publicacion-link:hover svg {
    transform: translateX(4px);
}

/* Responsive Publicaciones */
@media (max-width: 768px) {
    .publicaciones-section {
        padding: var(--spacing-md) 0;
    }

    .publicaciones-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .publicacion-image {
        height: 220px;
    }

    .publicacion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .publicacion-meta {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        font-size: 0.8125rem;
    }

    .publicacion-title {
        font-size: 1.25rem;
    }

    .publicacion-excerpt {
        font-size: 0.9375rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* ===== FOOTER ===== */
/* .contacto-hero reuses .nosotros-hero styles but allows right alignment if un-commented */
/*
.contacto-hero {
    
}
*/

.contacto-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
}

/* Header Section */
.contacto-header {
    text-align: center;
    margin-bottom: 60px;
}

.contacto-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-black);
    margin-bottom: 16px;
    font-weight: 700;
}

.contacto-header p {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Wrapper */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.contacto-main {
    min-height: 100%;
}

/* Form Card */
.contacto-form-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-accent);
    position: relative;
}

.contacto-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, #1f3a6b 100%);
    border-radius: 16px 16px 0 0;
}

.contacto-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 6px;
    font-size: 0.87rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e4ea;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-black);
    transition: all var(--transition-fast);
    background-color: var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(46, 80, 144, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

.form-actions {
    margin-top: 24px;
}

.form-actions .btn {
    width: 100%;
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #1f3a6b 100%);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(46, 80, 144, 0.3);
}

.form-actions .btn:active {
    transform: translateY(0);
}

#formStatus {
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

#formStatus.success {
    color: #27ae60;
}

#formStatus.error {
    color: #e74c3c;
}

/* Sidebar */
.contacto-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Info Card */
.contacto-info-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-accent);
}

.contacto-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f8;
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #1f3a6b 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    line-height: 1.4;
    margin: 2px 0;
}

.info-content a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.info-content a:hover {
    color: #1f3a6b;
    text-decoration: underline;
}

/* Map Wrapper */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-wrapper iframe {
    display: block;
    height: 250px !important;
}

.contact-info-card {
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    border-radius: 12px;
    padding: var(--spacing-md);
    display: flex;
    align-items: start;
    gap: var(--spacing-md);
    transition: all var(--transition-fast);
}

.contact-info-card:hover {
    border-color: var(--color-accent);
    transform: translateX(5px);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #1f3a6b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-white);
}

.contact-info-details h4 {
    font-size: 1rem;
    color: var(--color-black);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-info-details p {
    color: var(--color-gray-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.office-hours {
    background: var(--color-gray-light);
    border-radius: 12px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.office-hours h4 {
    font-size: 1.25rem;
    color: var(--color-black);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-gray-dark);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span:first-child {
    font-weight: 600;
    color: var(--color-black);
}

.quick-contact {
    display: flex;
    gap: var(--spacing-sm);
}

.quick-contact .btn {
    flex: 1;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--color-gray-light);
    margin-top: var(--spacing-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== RESPONSIVE - PAGES ===== */
@media (max-width: 1024px) {
    .about-grid,
    .mission-vision-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .values-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-stats,
    .clients-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 50vh;
    }

    .values-grid,
    .categories-grid,
    .team-stats,
    .clients-stats,
    .services-list-grid,
    .testimonials-grid,
    .social-media-grid {
        grid-template-columns: 1fr;
    }

    .projects-masonry {
        grid-template-columns: 1fr;
    }

    .project-card.large {
        grid-row: span 1;
    }

    .timeline-steps {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        display: none;
    }

    .clients-grid-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .featured-image,
    .post-image {
        height: 300px;
    }

    .featured-overlay {
        padding: var(--spacing-md);
    }

    .featured-overlay h3 {
        font-size: 1.75rem;
    }

    .project-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ===== SERVICIOS PAGE STYLES ===== */

/* Hero 360° Tour */
.servicios-hero-360 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--dark);
}

.servicios-hero-360 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* By default allow page scroll when mouse is over the hero by disabling iframe pointer events.
   User can click the hero to activate the iframe (then interact with the tour). */
.servicios-hero-360 iframe {
    pointer-events: none;
}

.servicios-hero-360.active iframe {
    pointer-events: auto;
}

/* 360 icon overlay centered */
.servicios-hero-360 .hero-360-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicios-hero-360 .hero-360-icon .icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
}

.servicios-hero-360 .hero-360-icon svg {
    display: block;
}

.hero-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.hero-title-overlay h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Servicios Content Section */
.servicios-content {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(to bottom, var(--light) 0%, #f8f9fa 100%);
}

.section-header.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-header .section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(218, 165, 32, 0.1);
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: var(--spacing-sm);
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

/* Servicios Cards Grid */
.servicios-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

/* Servicio Card */
.servicio-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, #d4a024 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

/* Featured Card */
.servicio-card-featured {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    transform: scale(1.05);
}

.servicio-card-featured .servicio-card-title,
.servicio-card-featured .servicio-card-desc,
.servicio-card-featured .servicio-features li {
    color: white;
}

.servicio-card-featured .servicio-icon svg {
    stroke: var(--gold);
}

.servicio-card-featured:hover {
    transform: scale(1.05) translateY(-12px);
}

/* Badge */
.servicio-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 16px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    z-index: 2;
}

/* Icon */
.servicio-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1) 0%, rgba(218, 165, 32, 0.05) 100%);
    border-radius: 16px;
    margin-bottom: var(--spacing-md);
    transition: all 0.4s ease;
}

.servicio-icon svg {
    stroke: var(--gold);
    transition: all 0.4s ease;
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2) 0%, rgba(218, 165, 32, 0.1) 100%);
}

/* Card Title */
.servicio-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    font-family: 'Ageo', var(--font-heading);
}

/* Card Description */
.servicio-card-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Features List */
.servicio-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.servicio-card-featured .servicio-features {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.servicio-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

.servicio-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.servicio-features li:last-child {
    margin-bottom: 0;
}

/* Mobile Styles for Servicios */
@media (max-width: 768px) {
    .servicios-hero-360 {
        height: 60vh;
        min-height: 450px;
    }

    .hero-title-overlay h1 {
        font-size: 3.5rem;
        letter-spacing: 0.15em;
    }

    .section-header .section-title {
        font-size: 1.75rem;
    }

    .servicios-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .servicio-card-featured {
        transform: scale(1);
    }

    .servicio-card-featured:hover {
        transform: translateY(-12px);
    }

    .servicio-card-title {
        font-size: 1.5rem;
    }

    .servicio-icon {
        width: 64px;
        height: 64px;
    }

    .servicio-icon svg {
        width: 48px;
        height: 48px;
    }

    .servicio-badge {
        top: 16px;
        right: 16px;
        font-size: 0.7rem;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .servicios-hero-360 {
        height: 50vh;
        min-height: 350px;
    }

    .hero-title-overlay h1 {
        font-size: 2.5rem;
        letter-spacing: 0.1em;
    }

    .section-header .section-label {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .section-header .section-title {
        font-size: 1.5rem;
    }

    .servicio-card {
        padding: var(--spacing-md);
    }

    .servicio-card-title {
        font-size: 1.25rem;
    }

    .servicio-card-desc {
        font-size: 0.9375rem;
    }

    .servicio-features li {
        font-size: 0.875rem;
    }

    .services-stacking-container {
        height: 280vh;
    }

    .service-stack-item {
        height: 100vh;
    }

    .service-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .service-desc {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 1.75rem;
    }

    .services-stacking-container {
        height: 290vh;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-desc {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .service-content .container {
        padding: 0 var(--spacing-md);
    }
}

/* ===== TEAM SECTION ===== */
.team.section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    background-color: #fff;
}

.team-header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.team-image-wrapper {
    width: 60%;
    margin: 0 auto var(--spacing-lg);
    border-radius: 8px;
    overflow: hidden;
    /* Removed shadow for cleaner look if desired, or keep it subtle */
}

.team-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    background-color: #f0f0f0;
}

.team-values {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
    padding: 0 1rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 120px;
    text-align: center;
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: #e5e9f0; /* Stronger grey background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.value-item:hover .value-icon {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(36, 72, 127, 0.2);
}

.value-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .team-image-wrapper { width: 90%; }
    .team-values { gap: 2rem; }
}

@media (max-width: 600px) {
    .team-values { 
        gap: 1.5rem; 
        justify-content: center;
    }
    .value-item { width: calc(50% - 1rem); }
}


/* ===== SEPARATE VALUES & TEAM ===== */
.team-image-wrapper-large {
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.values.section {
    padding-top: var(--spacing-lg);
    padding-bottom: 0.5rem; /* Reduced from var(--spacing-lg) */
    background-color: #fff;
}


/* Fix for Team Image Height */
.team-image-wrapper-large {
    height: 450px;
    border-radius: 0;
}

.team-image-wrapper-large .team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Focus on upper middle part of image usually better for team photos */
}


/* ===== FULL WIDTH TEAM IMAGE ===== */
.team-image-full {
    width: 100%;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* Start at left edge of viewport */
    height: 450px; /* Reduced height as requested */
    overflow: hidden;
    position: relative;
    left: 0;
}

.team-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

/* Ensure no overflow scrollbar due to 100vw */
body {
    overflow-x: hidden;
}


/* ===== FOOTER STYLES ===== */
.footer {
    background: linear-gradient(135deg, #0b2559 0%, #06183d 100%); /* Premium Deep Blue Gradient */
    color: #ffffff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Optional: Subtle pattern overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
}

.footer-logo {
    height: 60px; /* Adjust based on logo aspect ratio */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Ensure it is fully white if image transparency allows, but user said logo-blanco.png is used */
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: #fff;
    color: #0b2559;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}


/* Force Team Values Centering */
.team-values {
    justify-content: center !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* ===== FORCE VALUES CENTERING CLEANUP ===== */
.team-values {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 4rem !important; /* Increased gap */
    width: 100% !important;
    max-width: 1200px !important;
    margin: 2rem auto 0 !important;
    padding: 0 !important;
}

.value-item {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.value-icon {
    margin-bottom: 1rem !important;
}


/* ===== PUBLICACIONES MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: var(--color-white);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    z-index: 10;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: 300px;
    position: relative;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 30px;
}

.modal-meta-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
}

.modal-text p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .modal-image {
        height: 200px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

.publicacion-excerpt {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* ===== CONSTRUCCION PAGE ===== */

.construccion-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
}

.construccion-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.construccion-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.construccion-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.construccion-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.construccion-hero .hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.construccion-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.construccion-hero .hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Construction Sections */
.construccion-section {
    padding: 80px 0;
}

.section-light {
    background: #f8f9fb;
}

.section-dark {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
}

.section-final {
    background: linear-gradient(135deg, var(--color-accent) 0%, #1f3a6b 100%);
    color: var(--color-white);
    text-align: center;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Ageo', var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-black);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-final .section-header h2 {
    color: var(--color-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Construction Intro */
.construction-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text {
    padding-right: 20px;
}

.intro-text p {
    font-size: 1.05rem;
    color: var(--color-gray-dark);
    line-height: 1.8;
    margin-bottom: 16px;
}

.intro-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-black);
}

.benefit-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #1f3a6b 100%);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Methodology Grid */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.methodology-item {
    background: var(--color-white);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.methodology-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.methodology-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.methodology-item h3 {
    font-size: 1.3rem;
    color: var(--color-black);
    margin-bottom: 12px;
    font-weight: 700;
}

.methodology-item p {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: 8px;
}

.methodology-result {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* Project Types Grid */
.project-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project-type-card {
    background: var(--color-white);
    padding: 40px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    border-top: 3px solid transparent;
}

.project-type-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--color-accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.project-type-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.project-type-card h3 {
    font-size: 1.2rem;
    color: var(--color-black);
    font-weight: 700;
}

/* Differential Grid */
.differential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.differential-item {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

.differential-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.differential-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.differential-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    font-weight: 700;
}

.differential-item p {
    font-size: 1rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

/* Experience Counters */
.experience-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: block;
}

.counter-label {
    font-size: 1.05rem;
    color: var(--color-gray-dark);
    font-weight: 600;
}

/* Final Content */
.final-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.final-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.final-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    opacity: 0.95;
}

.final-cta {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .construccion-hero {
        height: 400px;
    }

    .construccion-hero .hero-title {
        font-size: 1.8rem;
    }

    .construccion-hero .hero-subtitle {
        font-size: 1.05rem;
    }

    .construction-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-text {
        padding-right: 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .methodology-grid,
    .project-types-grid,
    .differential-grid,
    .experience-counters {
        grid-template-columns: 1fr;
    }

    .final-content h2 {
        font-size: 1.8rem;
    }

    .final-content p {
        font-size: 1rem;
    }

    .construccion-hero .hero-cta {
        flex-direction: column;
    }

    .construccion-hero .hero-cta .btn {
        width: 100%;
    }
}

/* Methodology Horizontal Accordion Styles */
.methodology-accordion-vertical {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item-vertical {
    margin-bottom: 1.2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.accordion-item-vertical:hover {
    box-shadow: 0 4px 12px rgba(36, 72, 127, 0.15);
}

.accordion-header-vertical {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #24487F 0%, #2d5a9e 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header-vertical:hover {
    background: linear-gradient(135deg, #1a3560 0%, #24487F 100%);
}

.accordion-step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #489C44;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    min-width: 50px;
}

.accordion-title {
    flex: 1;
}

.accordion-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item-vertical.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content-vertical {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.accordion-item-vertical.active .accordion-content-vertical {
    max-height: 400px;
}

.accordion-content-vertical {
    padding: 0 1.5rem;
}

.accordion-item-vertical.active .accordion-content-vertical {
    padding: 1.5rem;
}

.accordion-content-vertical p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
}

.accordion-content-vertical p:last-child {
    margin-bottom: 0;
}

.accordion-result {
    padding: 1rem;
    background-color: rgba(72, 156, 68, 0.1);
    border-left: 4px solid #489C44;
    margin-top: 1rem !important;
    font-weight: 500;
    color: #24487F;
}

.accordion-service-image-redesign {
    margin: 0.8rem 0 0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-service-image-redesign img {
    display: block;
    width: 100%;
    height: min(32vh, 240px);
    object-fit: cover;
    object-position: center;
}

/* ========================================
   CONSTRUCCION PAGE REDESIGN STYLES
   ======================================== */

.construction-white-section {
    background-color: #FFFFFF;
    padding: 4rem 0 !important;
}

.construction-blue-section {
    background: linear-gradient(135deg, #24487F 0%, #2d5a9e 100%);
    color: white;
    padding: 4rem 0 !important;
}

.construction-blue-section .section-header h2 {
    color: white;
}

.construction-blue-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.construction-green-section {
    background: linear-gradient(135deg, #489C44 0%, #5aaf55 100%);
    color: white;
    padding: 4rem 0 !important;
}

.construction-green-section .section-header h2 {
    color: white;
}

/* Intro Content Redesign */
.construction-intro-redesign {
    margin-bottom: 2rem;
}

.intro-text-redesign {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text-redesign strong {
    color: #24487F;
    font-weight: 600;
}

/* Benefits Grid Redesign */
.benefits-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card-redesign {
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f9ff 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #489C44;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(36, 72, 127, 0.08);
}

.benefit-card-redesign:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(36, 72, 127, 0.15);
}

.benefit-icon-redesign {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: #489C44;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.benefit-card-redesign h3 {
    color: #24487F;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.benefit-card-redesign p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Grid Redesign */
.projects-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.project-card-redesign {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card-redesign:hover {
    border-color: #24487F;
    box-shadow: 0 8px 20px rgba(36, 72, 127, 0.15);
    transform: translateY(-5px);
}

.project-icon-redesign {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.project-icon-redesign svg {
    width: 28px;
    height: 28px;
    stroke: #24487F;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-icon-redesign svg * {
    fill: none !important;
    stroke: #24487F !important;
}

.project-card-redesign h3 {
    color: #24487F;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

/* Differential Grid Redesign */
.differential-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.differential-card-redesign {
    background: rgba(255, 255, 255, 0.15);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.differential-card-redesign:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.differential-icon-redesign {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.differential-icon-redesign svg {
    width: 30px;
    height: 30px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.differential-icon-redesign svg * {
    fill: none !important;
    stroke: #ffffff !important;
}

.differential-card-redesign h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.differential-card-redesign p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Counters Grid Redesign */
.counters-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 2.2rem;
    margin-top: 2rem;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.counter-card-redesign {
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f9ff 100%);
    padding: 2.35rem 2rem;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid #489C44;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.counter-card-redesign:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(72, 156, 68, 0.15);
}

.counter-number-redesign {
    font-size: 3rem;
    font-weight: 700;
    color: #24487F;
    margin-bottom: 0.95rem;
    line-height: 1;
}

.counter-label-redesign {
    color: #666;
    font-size: 1.12rem;
    font-weight: 500;
    margin: 0;
}

/* Final CTA Redesign */
.final-content-redesign {
    text-align: center;
    padding: 3rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.final-content-redesign h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.final-content-redesign p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.final-cta-redesign {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-cta-construction {
    display: inline-block;
    background-color: #489C44;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: 2px solid #489C44;
}

.btn-cta-construction:hover {
    background-color: transparent;
    color: white;
    box-shadow: 0 0 30px rgba(72, 156, 68, 0.6);
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
    .benefits-grid-redesign,
    .projects-grid-redesign,
    .differential-grid-redesign {
        grid-template-columns: repeat(2, 1fr);
    }

    .counters-grid-redesign {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .construction-white-section,
    .construction-blue-section,
    .construction-green-section {
        padding: 2rem 0 !important;
    }

    .benefits-grid-redesign,
    .projects-grid-redesign,
    .differential-grid-redesign,
    .counters-grid-redesign {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .final-content-redesign h2 {
        font-size: 1.5rem;
    }

    .final-content-redesign p {
        font-size: 0.95rem;
    }

    .project-icon-redesign {
        width: 46px;
        height: 46px;
    }

    .project-icon-redesign svg {
        width: 24px;
        height: 24px;
    }

    .differential-icon-redesign {
        width: 48px;
        height: 48px;
    }

    .differential-icon-redesign svg {
        width: 26px;
        height: 26px;
    }

    .counter-number-redesign {
        font-size: 2rem;
    }
}

