/* --- AJUSTES ESPECÍFICOS PARA SECCIÓN "RECONOCIMIENTOS" (.block) --- */

/* Asegurar que el H2 principal de la sección sea blanco */
.block h2 {
    color: var(--white-color);
    /* Heredado de .block pero lo ponemos explícito */
}

/* Asegurar que los H3 dentro del contenido específico sean blancos */
.block .view-content h3 {
    color: var(--white-color);
}

/* Asegurar que los párrafos dentro del contenido específico sean blancos */
.block .view-content p {
    color: var(--white-color);
    opacity: 0.9;
    /* Puedes ajustar la opacidad si quieres */
}

/* Asegurar que los elementos de lista sean blancos */
.block .view-content ul li {
    color: var(--white-color);
    opacity: 0.9;
    /* Puedes ajustar la opacidad si quieres */
}

/* Asegurar que los iconos de la lista sean blancos y el fondo contraste */
.block .view-content ul li i {
    color: var(--white-color);
    /* Color del icono en sí */
    background-color: rgba(255, 255, 255, 0.2);
    /* Fondo semitransparente blanco */
}

/* Mantener los estilos base de .block que ya ponían color blanco general */
.block {
    /* ... (otros estilos existentes para .block) ... */
    color: #ffffff;
    /* Esto ya estaba, pero lo dejamos como base */
    /* ... (asegúrate que los estilos de fondo y animación se mantienen) ... */
}

/* --- (El resto de tu archivo CSS existente va aquí) --- */
/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #142334;
    /* Tu color base */
    --secondary-color: #1f3447;
    /* Versión más clara */
    --tertiary-color: #0d1a28;
    /* Versión más oscura */
    --accent-color: #2a4a63;
    /* Color de acento derivado */

    /* Mantener colores neutros existentes */
    --light-bg: #f4f8f7;
    --white-color: #ffffff;
    --dark-text: #142334;
    /* Usar tu color para texto oscuro */
    --light-text: #e8f3f1;
    --grey-text: #5f7a74;
    --border-color: #cfe2de;
    --shadow-light: rgba(20, 35, 52, 0.08);
    /* Sombras con tu color */
    --shadow-medium: rgba(20, 35, 52, 0.12);
    --shadow-dark: rgba(20, 35, 52, 0.2);
    --font-primary: 'NewYorkFont', serif;
    --font-body: 'Poppins', sans-serif;
    --font-decorative: var(--font-primary);
    --container-width: 1240px;
    --transition-main: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: 0.2s ease-out;
    --border-radius: 8px;
    --header-height-initial: 70px;
    --header-height-scrolled: 60px;
    --header-height-current: var(--header-height-initial);
    /* JS Updated */
}

/* --- Estilos Base (Desktop - Dos Columnas) --- */
.adaptive-layout {
    display: flex;
    flex-wrap: wrap;
    /* Importante para que funcione bien en diferentes anchos */
    align-items: center;
    /* Alinea verticalmente los contenedores */
    gap: 2rem;
    /* Espacio entre texto e imagen */
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.adaptive-text-content {
    flex: 1 1 50%;
    /* Ocupa aprox 50%, flexible */
    order: 1;
    /* Texto a la izquierda por defecto */
    /* Estilos para los textos internos */
}

.adaptive-image-content {
    flex: 1 1 45%;
    /* Ocupa aprox 45%, flexible */
    order: 2;
    /* Imagen a la derecha por defecto */
}

.adaptive-image-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Estilos específicos para los textos (igual que antes) */
.adaptive-text-content .text-pretitle {
    /* H3 */
    color: #888;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.adaptive-text-content .text-headline {
    /* H2 */
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
}

.adaptive-text-content .text-paragraph {
    /* P */
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    line-height: 1.65;
    margin: 0;
    color: #FFF;
}


/* --- Media Query (Móvil - Apilado y REORDENADO) --- */
@media (max-width: 991px) {
    /* Usamos un breakpoint más común como 991px o 768px */

    .adaptive-layout {
        /* Cambiamos a Grid para facilitar el reordenamiento complejo */
        display: grid;
        grid-template-columns: 1fr;
        /* Una sola columna */
        gap: 1.5rem;
        /* Espacio vertical */
        text-align: center;
        /* Centrar todo en móvil */
    }

    /* Clave: Hacemos que los hijos del contenedor de texto sean */
    /* tratados como hijos directos del grid para poder reordenarlos */
    .adaptive-text-content {
        display: contents;
        /* Permite reordenar h3, h2, p individualmente */
    }

    /* REORDENAMIENTO VISUAL para Móvil */
    .text-pretitle {
        order: 1;
    }

    /* 1. Pre-título (H3) */
    .text-headline {
        order: 2;
    }

    /* 2. Título (H2) */
    .adaptive-image-content {
        order: 3;
    }

    /* 3. Imagen */
    .text-paragraph {
        order: 4;
    }

    /* 4. Párrafo (P) */

    /* Asegurar que los elementos ocupen el ancho y se centren */
    .adaptive-text-content,
    /* Ya no es necesario porque es 'contents' */
    .adaptive-image-content,
    .text-pretitle,
    .text-headline,
    .text-paragraph {
        width: 100%;
        max-width: 100%;
        /* Evitar desbordamiento */
        text-align: center;
    }

    .adaptive-image-content img {
        margin-left: auto;
        margin-right: auto;
        /* Centrar imagen explícitamente */
    }
}

/* Ajustes menores opcionales para pantallas aún más pequeñas */
@media (max-width: 576px) {
    .adaptive-layout {
        gap: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .adaptive-text-content .text-headline {
        font-size: 1.6rem;
        /* Título un poco más pequeño */
    }

    .adaptive-text-content .text-paragraph {
        font-size: 0.9rem;
        /* Párrafo un poco más pequeño */
    }
}

/* --- @font-face para la fuente local NewYork --- */
@font-face {
    font-family: 'NewYorkFont';
    /* Nombre que usaremos en el CSS */
    src: url('../assets/Font/DREAM\ GLORY.ttf') format('opentype');
    /* Ajustado a '../assets/...' */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Reseteo y Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Solución para overflow horizontal potencial */
html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.75;
    background-color: var(--white-color);
    /* overflow-x: hidden; ya está arriba */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    /* Añadido por si acaso */
}



/* --- Tipografía --- */
h1,
h2 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -1.5px;
}

h2 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    margin-bottom: 3.5rem;
    text-align: center;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--grey-text);
    max-width: 68ch;
}

p.lead {
    font-size: 1.15rem;
    color: var(--dark-text);
    text-align: center;
    /* Para centrar el texto dentro del párrafo */
    font-weight: 400;
    margin-bottom: 2rem;
    width: 80%;
    /* Define un ancho para el párrafo (ajusta el valor según necesites) */
    margin-left: auto;
    /* Centra el párrafo horizontalmente */
    margin-right: auto;
    /* Centra el párrafo horizontalmente */
}

a {
    color: var(--tertiary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

/* Contenedores y Secciones */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8.5rem 0;
    overflow: visible;
    position: relative;
}

.section-bg {
    background-color: var(--light-bg);
}

/* Fondo claro por defecto */
#desarrollo-barranquilla,
#our-team,
#proyectos

/* Ajustado: Proyectos ahora tiene fondo claro */
    {
    background-color: #fff;
}

/* Fondo blanco específico */
#mapa-lotes {
    background-color: var(--light-bg);
}

/* Fondo claro para mapa */
.section-dark {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--white-color);
}

.section-dark p {
    color: var(--light-text);
    opacity: 0.85;
}

.text-center {
    text-align: center;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-main);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--shadow-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    transition: width var(--transition-main);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    color: var(--white-color);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(191, 160, 143, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(191, 160, 143, 0.4);
    color: var(--white-color);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.btn-secondary::before {
    display: none;
}

.btn-outline-light {
    background: transparent;
    color: var(--white-color);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
    transform: translateY(-3px);
}

.btn-outline-light::before {
    display: none;
}

/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height-initial);
    transition: all var(--transition-main);
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    height: var(--header-height-scrolled);
    box-shadow: 0 3px 20px var(--shadow-light);
    border-bottom: 1px solid var(--border-color);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 48px;
    /* TAMAÑO PARA PC */
    width: auto;
    transition: max-height 0.3s ease;
    margin-top: 0;
    /* Opcional: ajusta si es necesario para centrarlo */
}

/* Estilo cuando se hace scroll (en PC) */
#main-header.scrolled .logo img {
    max-height: 40px;
    /* Tamaño un poco más pequeño para PC al hacer scroll */
}

/* Estilos para Celular (pantallas de 768px o menos) */
@media (max-width: 768px) {
    .logo img {
        max-height: 34px;
        /* TAMAÑO PARA CELULAR */
    }

    /* En celular, el logo mantiene su tamaño al hacer scroll */
    #main-header.scrolled .logo img {
        max-height: 34px;
    }
}

#main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

#main-nav ul li {
    margin-left: 3rem;
}

#main-nav ul li a {
    font-family: var(--font-body);
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

#main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-main);
}

#main-nav ul li a:hover,
#main-nav ul li a.active {
    color: var(--primary-color);
}

#main-nav ul li a:hover::after,
#main-nav ul li a.active::after {
    width: 50%;
}

#mobile-nav-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* --- Pre-Hero Banner Section CON SLIDER --- */
#pre-hero-banner {
    position: relative;
    color: var(--white-color);
    text-align: center;
    overflow: hidden;
    margin-top: var(--header-height-current);
    transition: margin-top var(--transition-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    height: calc(100vh - var(--header-height-current));
    max-height: 900px;
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation-name: fadeBackground;
    animation-iteration-count: infinite;
    animation-duration: 18s;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.35));
    z-index: 2;
}

#pre-hero-banner .banner-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

#pre-hero-banner h1 {
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

#pre-hero-banner h1 .decorative-font {
    font-family: var(--font-decorative);
    font-weight: normal;
    color: #fdfdfd;
    letter-spacing: 0px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 18px rgba(0, 0, 0, 0.5);
    font-size: clamp(3.5rem, 9vw, 5.5rem);
}

#pre-hero-banner p.lead {
    color: var(--light-text);
    opacity: 0.95;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

#pre-hero-banner .btn {
    margin: 0.5rem;
}

#pre-hero-banner .btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: transparent;
    color: var(--primary-color);
}

#pre-hero-banner .btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--white-color);
}

/* CORRECCIÓN: Distribución uniforme para 7 slides */
/* Duración total: 21s (7 slides × 3s cada una) */

.slide {
    animation-duration: 21s;
    /* Cambiar de 18s a 21s */
}

.slide:nth-child(1) {
    background-image: url('../assets/imagenes/Vistas/Gran\ Malecon.png');
    animation-delay: 0s;
}

.slide:nth-child(2) {
    background-image: url('../assets/imagenes/Vistas/Vistas_Malecon\ \(2\).JPG');
    animation-delay: 3s;
    /* Cambiar de 6s a 3s */
}

.slide:nth-child(3) {
    background-image: url('../assets/imagenes/Vistas/Vistas_Malecon\ \(3\).JPG');
    animation-delay: 6s;
    /* Cambiar de 12s a 6s */
}

.slide:nth-child(4) {
    background-image: url('../assets/imagenes/Vistas/Vistas_Malecon\ \(4\).jpg');
    animation-delay: 9s;
    /* Cambiar de 12s a 9s */
}

.slide:nth-child(5) {
    background-image: url('../assets/imagenes/Vistas/Vistas_Malecon\ \(5\).jpg');
    animation-delay: 12s;
    /* Mantener */
}

.slide:nth-child(6) {
    background-image: url('../assets/imagenes/Vistas/Vistas_Malecon\ \(6\).jpg');
    animation-delay: 15s;
    /* Cambiar de 12s a 15s */
}

.slide:nth-child(7) {
    background-image: url('../assets/imagenes/Vistas/Vistas_Malecon\ \(7\).JPG');
    animation-delay: 18s;
    /* Cambiar de 12s a 18s */
}

/* ACTUALIZAR también los keyframes para 7 slides */
@keyframes fadeBackground {
    0% {
        opacity: 0;
    }

    4.76% {
        opacity: 1;
    }

    /* 1/21 = 4.76% */
    14.29% {
        opacity: 1;
    }

    /* 3/21 = 14.29% */
    19.05% {
        opacity: 0;
    }

    /* 4/21 = 19.05% */
    100% {
        opacity: 0;
    }
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-align: center;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@media (min-width: 769px) and (max-width: 1366px) {
    .scroll-down {
        display: none !important;
        /* Ocultar completamente en portátiles */
    }
}

/* OPCIONAL: También ocultar en tablets horizontales */
@media (min-width: 769px) and (max-width: 1024px) {
    .scroll-down {
        display: none !important;
    }
}

/* MANTENER visible solo en móviles y pantallas grandes */
@media (max-width: 768px) {
    .scroll-down {
        display: block;
        bottom: 30px;
    }
}

@media (min-width: 1367px) {
    .scroll-down {
        display: block;
        bottom: 60px;
    }
}

.scroll-down i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@media (min-width: 769px) {
    .scroll-down {
        bottom: 60px;
    }
}

@media (max-width: 768px) {
    #pre-hero-banner {
        min-height: 70vh;
        height: auto;
    }

    #pre-hero-banner h1 .decorative-font {
        font-size: clamp(3rem, 10vw, 4.5rem);
    }

    #pre-hero-banner p.lead {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
    }
}

@media (max-width: 576px) {
    #pre-hero-banner {
        min-height: 65vh;
    }

    #pre-hero-banner .btn {
        display: block;
        margin: 1rem auto;
        width: fit-content;
    }

    #pre-hero-banner .btn-secondary {
        margin-left: auto !important;
    }

    /* Ajuste específico para el botón secundario en móvil */
}

/* --- Divisores de Sección Creativos --- */
.angled-divider-top {
    position: absolute;
    top: -1px;
    left: 0;
    line-height: 0;
    z-index: 10;
}

.angled-divider-top svg {
    display: block;
    width: 100%;
}

.angled-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    line-height: 0;
    z-index: 10;
    transform: rotate(180deg);
}

.shape-fill {
    fill: var(--light-bg);
}

/* Cambiado a light-bg para que coincida con la sección de abajo */
.shape-fill-dark {
    fill: var(--primary-color);
}

.shape-fill-footer {
    fill: var(--dark-text);
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform var(--transition-main), box-shadow var(--transition-main), border-color var(--transition-main);
    transform-style: preserve-3d;
}

.feature-item:hover {
    transform: translateY(-12px) perspective(1000px) rotateY(2deg);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--secondary-color);
}

.feature-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1.8rem;
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    color: var(--white-color);
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    box-shadow: 0 5px 15px rgba(191, 160, 143, 0.3);
    transition: transform var(--transition-fast);
}

.feature-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--grey-text);
    max-width: none;
    margin-bottom: 0;
}

/* --- CTA Banner ("Descubre...") --- */
.cta-banner {
    background: var(--primary-color);
    padding: 4rem 0;
    color: var(--white-color);
    position: relative;
    z-index: 5;
    overflow: hidden;
    /* Para posibles pseudo-elementos futuros */
}

.cta-banner .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    /* Consistente con .container */
    position: relative;
    z-index: 2;
}

/* --- Corrección para el header --- */

/* En lugar de forzar content-box, usemos una solución más limpia */
#main-nav ul li {
    box-sizing: border-box;
    /* Cambiamos a border-box que es más predecible */
    padding: 0;
    /* Eliminamos cualquier padding que pueda estar causando el problema */
    margin-left: 3rem;
    /* Mantenemos el margen existente */
    display: flex;
    /* Aseguramos que los elementos se comportan como flex items */
    align-items: center;
    /* Centramos verticalmente */
}

/* Aseguramos que los elementos de navegación tengan altura adecuada */
#main-nav ul {
    height: 100%;
    /* Asegura que ocupe toda la altura del contenedor padre */
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    /* Alinea verticalmente al centro */
}

/* Ajustes para el contenedor principal del header */
#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    /* Asegura que ocupe toda la altura */
}

/* Alineación específica para el cambiador de idioma */
.language-switcher-container {
    margin-left: 1em;
    display: flex;
    align-items: center;
}

/* Esto es importante si hay problemas de desbordamiento */
html,
body {
    width: 100%;
    overflow-x: hidden;
}

/* Aseguramos que la transición de altura del header sea suave */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height-initial);
    transition: all var(--transition-main);
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
}

/* Aseguramos que EN quede correctamente posicionado */
#main-header .en-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    margin-left: 10px;
}

/* Para los casos de pantallas más pequeñas */
@media (max-width: 1024px) {
    #main-nav ul li {
        margin: 1.2rem 0;
        margin-left: 0;
    }

    /* Evita que la barra de navegación colapse en móvil */
    #main-header .container {
        flex-wrap: nowrap;
    }

    /* Asegura que el botón de idioma se mantenga visible */
    .language-switcher-container {
        position: absolute;
        right: 70px;
        /* Ajusta según sea necesario */
        top: 50%;
        transform: translateY(-50%);
    }
}

.cta-banner .text-content-block {
    flex-basis: 60%;
    min-width: 250px;
    text-align: left;
}

.cta-banner .text-content-block h2 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    /* Responsive font size */
    color: var(--white-color);
    line-height: 1.3;
    font-family: var(--font-body);
    /* Usar Poppins para este H2 */
    font-weight: 600;
    letter-spacing: 0px;
    text-align: left;
    /* Asegurar alineación izquierda */
}

.cta-banner .action-content {
    flex-basis: 35%;
    text-align: right;
    min-width: 150px;
}

.cta-button {
    /* Renombrado de .aura-button */
    display: inline-block;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    color: #FFF;
}

@media (max-width: 768px) {
    .cta-banner .content-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .cta-banner .text-content-block {
        flex-basis: 100%;
        text-align: center;
        /* Centro en móvil */
        margin-bottom: 20px;
    }

    .cta-banner .text-content-block h2 {
        text-align: center;
        /* Centro en móvil */
    }

    .cta-banner .action-content {
        flex-basis: 100%;
        text-align: center;
        margin-top: 0;
    }
}

/* --- Grid reutilizado (Gran Malecón, Ciudad del Río) --- */
.view-grid,
.ciudad-rio-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.view-content,
.ciudad-rio-content {
    /* No necesita CSS específico aquí */
}

.view-content ul,
.ciudad-rio-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.view-content ul li,
.ciudad-rio-content ul li {
    padding-left: 40px;
    position: relative;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--dark-text);
    line-height: 1.6;
}

.view-content ul li i,
.ciudad-rio-content ul li i {
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 25px;
    height: 25px;
    background-color: rgba(191, 160, 143, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-image img,
.ciudad-rio-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 45px var(--shadow-medium);
    object-fit: cover;
}

#gran-malecon h3 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--tertiary-color);
}

#gran-malecon .view-content h3:nth-of-type(2) {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {

    .view-grid,
    .ciudad-rio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .view-image,
    .ciudad-rio-image {
        order: -1;
        margin-bottom: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    #gran-malecon h3,
    #ciudad-del-rio h3 {
        text-align: center;
    }

    .view-content ul,
    .ciudad-rio-content ul {
        max-width: 500px;
        margin: 1.5rem auto;
        display: inline-block;
        text-align: left;
    }

    .view-content,
    .ciudad-rio-content {
        text-align: center;
    }

    .view-content p,
    .ciudad-rio-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {

    .view-image img,
    .ciudad-rio-image img {
        max-height: 350px;
    }
}

/* --- Gallery Section (Usada en Desarrollo Bquilla) --- */
.premium-gallery-container {
    margin-bottom: 4rem;
    margin-top: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-light);
    position: relative;
    cursor: pointer;
    transition: box-shadow var(--transition-main);
    height: 350px;
}

.gallery-item:hover {
    box-shadow: 0 18px 45px var(--shadow-medium);
}

.gallery-item .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item .slider-images {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.gallery-item .slider-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: var(--border-radius);
}

.gallery-item .overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(26, 46, 41, 0.85));
    color: var(--white-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.gallery-item:hover .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .overlay-content h4 {
    color: var(--white-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.gallery-item .overlay-content p {
    color: var(--light-text);
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.zoomed-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.zoomed-container.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.3s ease;
}

.close-zoom:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .gallery-item {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 280px;
    }
}

/* --- Estilos para el bloque con efecto malecon MÁS REALISTA --- */
.block {
    margin-bottom: 30px;
    /* Espacio entre bloques */
    border-radius: 15px;
    /* Bordes redondeados */
    padding: 40px 30px;
    /* Espaciado interno */
    color: #ffffff;
    /* Color del texto por defecto para buen contraste */
    overflow: hidden;
    /* Asegura que el fondo no se salga */
    position: relative;
    /* Necesario para la animación del fondo */

    /* --- Fondo Aurora Boreal con Múltiples Capas --- */
    background-color: var(--primary-color);
    /* Usar el color primario como base sólida */


    /* Tamaños diferentes para que se muevan a distintas velocidades relativas */
    background-size:
        400% 400%,
        /* Tamaño para la Capa 1 */
        300% 300%;
    /* Tamaño para la Capa 2 */

    /* Aplicamos la animación */
    animation: aura-flow 20s ease-in-out infinite;
    /* Más lenta y suave */
}

/* Keyframes para la animación de flujo tipo aurora */
@keyframes aura-flow {
    0% {
        background-position:
            0% 50%,
            /* Posición inicial Capa 1 */
            0% 50%;
        /* Posición inicial Capa 2 */
    }

    50% {
        background-position:
            100% 50%,
            /* Posición media Capa 1 (se mueve más por el tamaño) */
            80% 50%;
        /* Posición media Capa 2 (se mueve menos) */
    }

    100% {
        background-position:
            0% 50%,
            /* Posición final Capa 1 */
            0% 50%;
        /* Posición final Capa 2 */
    }
}

/* --- Contenedor interno y estilos de texto/acción para el bloque aurora --- */
.block .content-wrapper {
    /* Seleccionado dentro de .block */
    display: flex;
    justify-content: center;
    /* Centrado para el caso general */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
    align-content: center;
    flex-direction: column;
    /* Apilar por defecto */
}

/* Estilos para la parte del texto dentro de .block */
.block .text-content-block {
    /* Seleccionado dentro de .block */
    flex-basis: 100%;
    /* Ocupa todo el ancho por defecto */
    text-align: center;
    /* Centrado por defecto */
}

.block .text-content-block h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 2em;
    /* Ajusta según necesidad */
    font-weight: bold;
    color: var(--white-color);
    /* Asegurar color blanco */
}

.block .text-content-block p {
    font-size: 1.1em;
    /* Ajusta según necesidad */
    line-height: 1.6;
    color: var(--white-color);
    /* Asegurar color blanco */
    opacity: 0.9;
    /* Ligera transparencia */
    max-width: 60ch;
    /* Limitar ancho de línea */
    margin-left: auto;
    margin-right: auto;
}

/* Estilos para la parte de acción (botón/imagen) dentro de .block */
.block .action-content {
    /* Seleccionado dentro de .block */
    flex-basis: 100%;
    /* Ocupa todo el ancho por defecto */
    text-align: center;
    /* Centrado por defecto */
    margin-top: 20px;
    /* Espacio sobre el botón */
}

/* Estilos para el botón dentro de .block */
.block .m72-button {
    /* Seleccionado dentro de .block */
    display: inline-block;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.block .m72-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    color: #FFF;
    /* Asegurar color blanco al hacer hover */
}

/* --- Responsividad básica para el bloque aurora --- */
@media (min-width: 769px) {

    /* En pantallas más grandes, poner lado a lado */
    .block .content-wrapper {
        justify-content: space-between;
        /* Espacio entre texto y acción */
        text-align: left;
        /* Alinear texto a la izquierda */
    }

    .block .text-content-block {
        flex-basis: 60%;
        /* Más espacio para el texto */
        min-width: 250px;
        text-align: left;
        /* Alinear texto a la izquierda */
    }

    .block .text-content-block p {
        margin-left: 0;
        /* Quitar centrado auto */
        margin-right: 0;
    }

    .block .action-content {
        flex-basis: 35%;
        /* Espacio para la acción */
        text-align: right;
        /* Alinear acción a la derecha */
        min-width: 150px;
        margin-top: 0;
        /* Quitar margen superior */
    }
}

@media (max-width: 768px) {

    /* Ajustes específicos para móvil si es necesario */
    .block .text-content-block h2 {
        font-size: 1.6em;
        /* Reducir tamaño de fuente en móvil */
    }

    .block .text-content-block p {
        font-size: 1em;
        /* Reducir tamaño de fuente en móvil */
    }
}

/* --- Mapa Lotes Section --- */
#mapa-lotes {
    z-index: 5;
}

#mapa-lotes p.lead {
    margin-bottom: 3rem;
}

/* Más espacio entre texto y mapa */
.map-container {
    overflow: hidden;
    height: 500px;
    margin-top: 0;
    /* Quitar margen si el P.lead ya lo da */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
}

/* --- Our Team Section --- */
#our-team {
    z-index: 5;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Asumiendo una clase .section-title */
.team-members-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
}

.team-member {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    padding: 25px 20px;
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.member-content {
    /* Contenedor para texto */
}

.member-logo img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 20px auto;
    display: block;
}

/* Centrado y margen */
.member-logo-casa-verde img {
    height: 100px;
    width: 225px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 40px auto;
    display: block;
}

/* Centrado y margen */
.member-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-text);
}

.member-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--grey-text);
    margin-bottom: 0;
}

/* Estilos para la tarjeta INCITI */

.mi-contenedor-tarjeta-inciti {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    /* Reducido un poco el padding general */
    box-sizing: border-box;
}

.tarjeta-inciti {
    font-family: sans-serif;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 750px;
    width: 100%;
    text-align: center;
    position: relative;
}

.tarjeta-inciti-imagen-contenedor {
    position: relative;
    width: 100%;
    line-height: 0;
}

.tarjeta-inciti-imagen-fondo {
    display: block;
    width: 100%;
    height: auto;
}

.tarjeta-inciti-superposicion-gris {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    /* Ligeramente más oscuro para mejor contraste si es necesario */
}

.tarjeta-inciti-contenido {
    padding: 15px 15px;
    /* Padding base reducido */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    /* Sombra de texto un poco más fuerte */
    box-sizing: border-box;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.tarjeta-inciti-contenido h2 {
    margin-top: 0;
    /* No añadir margen superior innecesario aquí */
    margin-bottom: 10px;
    /* Espacio base reducido */
    font-size: 1.6em;
    /* Tamaño base reducido */
    font-weight: bold;
    line-height: 1.15;
    /* Línea más compacta */
    /* Considera si el texto del H2 puede ser más corto o si debe permitir dos líneas */
}

.tarjeta-inciti-logo-texto {
    margin-bottom: 15px;
    /* Espacio base reducido */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tarjeta-inciti-logo {
    max-width: 90px;
    /* Tamaño base reducido */
    height: auto;
    margin-bottom: 5px;
    /* Espacio reducido */
}

.tarjeta-inciti-subtexto {
    margin: 0;
    font-size: 1em;
    /* Tamaño base reducido */
    font-weight: bold;
}

.tarjeta-inciti-boton {
    display: inline-block;
    background-color: #4A89DC;
    color: white;
    padding: 10px 25px;
    /* Padding base ajustado */
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95em;
    /* Tamaño base reducido */
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tarjeta-inciti-boton:hover,
.tarjeta-inciti-boton:focus {
    background-color: #357ABD;
    outline: none;
}

.m72-button {
    /* Seleccionado dentro de .block */
    display: inline-block;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.m72-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    color: #FFF;
    /* Asegurar color blanco al hacer hover */
}

.text-content-block h2 {
    color: var(--white-color);
}


/* --- Media Query para Móviles --- */
@media (max-width: 600px) {
    .mi-contenedor-tarjeta-inciti {
        padding: 10px;
    }

    .tarjeta-inciti-contenido {
        padding: 10px 10px;
        /* Padding aún más reducido en móviles */
    }

    .tarjeta-inciti-contenido h2 {
        font-size: 1.25em;
        /* Título SIGNIFICATIVAMENTE más pequeño en móviles */
        margin-bottom: 8px;
        line-height: 1.1;
        /* Muy compacto */
    }

    .tarjeta-inciti-logo-texto {
        margin-bottom: 10px;
        /* Espacio reducido */
    }

    .tarjeta-inciti-logo {
        max-width: 65px;
        /* Logo más pequeño en móviles */
        margin-bottom: 3px;
    }

    .tarjeta-inciti-subtexto {
        font-size: 0.85em;
        /* Subtexto más pequeño */
    }

    .tarjeta-inciti-boton {
        padding: 8px 18px;
        /* Botón más compacto */
        font-size: 0.8em;
        /* Texto del botón más pequeño */
    }
}

/* Opcional: Para pantallas MUY pequeñas, si sigue siendo un problema */
@media (max-width: 420px) {
    .tarjeta-inciti-contenido h2 {
        font-size: 1.1em;
        /* Aún más pequeño */
        /* Si el texto del H2 es largo, considera usar vw para que se ajuste al ancho
           font-size: 5vw;  pero esto puede hacerlo muy pequeño en algunas pantallas */
    }

    .tarjeta-inciti-logo {
        max-width: 60px;
    }

    .tarjeta-inciti-subtexto {
        font-size: 0.8em;
    }

    .tarjeta-inciti-boton {
        padding: 7px 15px;
        font-size: 0.75em;
    }

    .tarjeta-inciti-contenido {
        padding: 8px;
        /* Padding mínimo */
    }

    .m72-button {
        /* Seleccionado dentro de .block */
        display: inline-block;
        padding: 12px 25px;
        background-color: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.7);
        color: #ffffff;
        text-decoration: none;
        border-radius: 25px;
        font-weight: bold;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .m72-button:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
        color: #FFF;
        /* Asegurar color blanco al hacer hover */
    }

    .text-content-block h2 {
        color: var(--white-color);
    }

}

/* --- Proyectos Section --- */
#proyectos {
    z-index: 5;
}

.project-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.project-column-media {
    /* No necesita CSS específico aquí */
}

.project-column-media .gallery-item {
    height: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: default;
}

.project-column-media .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    max-height: 400px;
    object-fit: cover;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-column-text {
    /* No necesita CSS específico aquí */
}

.project-column-text .feature-item {
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-light);
    padding: 2.5rem;
    background: var(--white-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.project-column-text .feature-item .icon {
    margin-bottom: 1.5rem;
    margin-left: 0;
    /* Alineado a la izquierda por defecto */
    margin-right: auto;
    /* Alineado a la izquierda por defecto */
}

.project-column-text .feature-item h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.project-column-text .feature-item p {
    text-align: left;
    font-size: 1rem;
    color: var(--grey-text);
    margin-bottom: 0;
}

.project-column-text .feature-item p strong {
    color: var(--dark-text);
    font-weight: 600;
}

/* Responsive para Proyectos */
@media (max-width: 992px) {
    .project-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-column-media {
        order: 0;
        /* Orden por defecto, visualmente abajo si el texto está arriba */
        max-width: 600px;
        margin: 0 auto 2rem auto;
        /* Centrado y margen inferior */
    }

    .project-column-text {
        order: -1;
        /* Texto primero en móvil */
    }

    .project-column-text .feature-item {
        text-align: center;
        /* Centrar todo el contenido del feature item */
        height: auto;
        /* Altura automática en móvil */
    }

    .project-column-text .feature-item .icon {
        margin-left: auto;
        /* Centrar icono en móvil */
        margin-right: auto;
    }

    .project-column-text .feature-item h3 {
        text-align: center;
        /* Centrar H3 en móvil */
    }

    .project-column-text .feature-item p {
        text-align: center;
        /* Centrar P en móvil */
    }
}


/* --- Contact Section --- */
#contact {
    position: relative;
    z-index: 5;
    padding-top: 10rem;
    padding-bottom: 10rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    /* Fondo para la sección oscura */
}

#contact .container {
    /* No necesita CSS específico aquí */
}

#contact h2 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

#contact .section-subtitle {
    color: var(--light-text);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

/* Centrado */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-color);
    /* Fondo blanco sólido */
    padding: 2.5rem;
    border-radius: var(--border-radius);
    /* border: 1px solid rgba(255, 255, 255, 0.15); Considera quitar o cambiar el borde si no se ve bien */
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    /* Sombra más oscura para contraste */
    position: relative;
    z-index: 2;
}

/* Asegúrate de que los elementos del formulario tengan estilos si es necesario */
.contact-form-wrapper input,
.contact-form-wrapper textarea,
.contact-form-wrapper button {
    /* Estilos básicos para inputs y botón del formulario */
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark-text);
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(191, 160, 143, 0.2);
}

.contact-form-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-wrapper button {
    /* Usar estilos de .btn si quieres consistencia */
    cursor: pointer;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    transition: background var(--transition-fast);
}

.contact-form-wrapper button:hover {
    background: var(--secondary-color);
    /* O un color más oscuro/claro */
}

/* --- Footer --- */
#main-footer {
    background-color: var(--dark-text);
    color: var(--grey-text);
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
    z-index: 9;
    margin-top: -1px;
    /* Solapa ligeramente el divisor si existe */
}

#main-footer p {
    margin: 0.5rem 0;
    color: rgba(232, 243, 241, 0.6);
    font-size: 0.9rem;
}

#main-footer a {
    font-weight: 500;
    color: var(--grey-text);
}

#main-footer a:hover {
    color: var(--white-color);
    text-decoration: underline;
}

/* Cambiado hover a blanco */
.footer-logo {
    display: block;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    margin: 0 auto 1.5rem auto;
}

.social-icons {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: var(--grey-text);
    margin: 0 1rem;
    font-size: 1.4rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.container-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Asegura centrado */
#main-footer p[style*="font-size: 0.6em"] {
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
    color: rgba(232, 243, 241, 0.4);
}

/* --- Whatsapp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    color: #FFF;
}

/* --- Responsive General --- */
@media (max-width: 1024px) {
    html {
        font-size: 95%;
    }

    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 6.5rem 0;
    }

    :root {
        --header-height-initial: 65px;
        --header-height-scrolled: 55px;
    }

    #our-team .team-members-container {
        gap: 25px;
    }

    #our-team .team-member {
        max-width: calc(50% - 12.5px);
        min-width: calc(50% - 12.5px);
    }

    /* Ajuste para gap */
    #main-nav {
        display: none;
        position: fixed;
        top: var(--header-height-current);
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - var(--header-height-current));
        overflow-y: auto;
        transition: top var(--transition-main), max-height var(--transition-main), opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        z-index: 1001;
    }

    #main-nav.active {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    #main-nav ul li {
        margin: 1.2rem 0;
        margin-left: 0;
    }

    #main-nav ul li a::after {
        display: none;
    }

    #mobile-nav-toggle {
        display: block;
        z-index: 1002;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 90%;
    }

    section {
        padding: 5.5rem 0;
    }

    :root {
        --header-height-initial: 60px;
        --header-height-scrolled: 50px;
    }

    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        margin-bottom: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    #contact {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    #our-team .team-member {
        max-width: 90%;
        min-width: 90%;
        flex-basis: auto;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height-initial: 55px;
        --header-height-scrolled: 48px;
    }

    section {
        padding: 4.5rem 0;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
        letter-spacing: 0.8px;
    }

    #main-footer {
        padding: 4rem 0 2rem 0;
    }

    .social-icons a {
        margin: 0 0.7rem;
        font-size: 1.3rem;
    }

    /* Asegurar que el botón secundario del hero no tenga margen izquierdo forzado */
    #pre-hero-banner .btn-secondary {
        margin-left: auto !important;
        /* Sobreescribe el style inline */
    }
}

/* Utilidades */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body.mobile-nav-active {
    overflow: hidden;
}

/* Evita scroll del body cuando el menú móvil está abierto */

/* --- AJUSTES ESPECÍFICOS PARA SECCIÓN "RECONOCIMIENTOS" (.block) --- */

/* Asegurar que el H2 principal de la sección sea blanco */
.block h2 {
    color: var(--white-color);
    /* Heredado de .block pero lo ponemos explícito */
}

/* Asegurar que los H3 dentro del contenido específico sean blancos */
.block .view-content h3 {
    color: var(--white-color);
}

/* Asegurar que los párrafos dentro del contenido específico sean blancos */
.block .view-content p {
    color: var(--white-color);
    opacity: 0.9;
    /* Puedes ajustar la opacidad si quieres */
}

/* Asegurar que los elementos de lista sean blancos */
.block .view-content ul li {
    color: var(--white-color);
    opacity: 0.9;
    /* Puedes ajustar la opacidad si quieres */
}

/* Asegurar que los iconos de la lista sean blancos y el fondo contraste */
.block .view-content ul li i {
    color: var(--white-color);
    /* Color del icono en sí */
    background-color: rgba(255, 255, 255, 0.2);
    /* Fondo semitransparente blanco */
}

#gran-malecon .logos-container {
    display: flex;
    /* Distribuye los logos en una fila */
    justify-content: space-around;
    /* Espacio igualitario entre los logos */
    align-items: center;
    /* Alinea verticalmente los logos (si fuera necesario) */
    margin-top: 30px;
    /* Espacio entre el título y los logos */
    padding: 20px;
    /* Espacio alrededor de los logos */
}

#gran-malecon .logo-item {
    display: flex;
    flex-direction: column;
    /* Apila la imagen y el texto */
    align-items: center;
    /* Centra horizontalmente la imagen y el texto */
    text-align: center;
    /* Centra el texto */
    max-width: 150px;
    /* Ancho máximo para cada logo (ajusta según necesites) */
}

#gran-malecon .logo-item img {
    max-width: 100%;
    /* Asegura que la imagen no se desborde de su contenedor */
    height: auto;
    /* Mantiene la proporción de la imagen */
    margin-bottom: 10px;
    /* Espacio entre el logo y el texto */
}

#gran-malecon .logo-item .logo-text {
    font-size: 0.85em;
    /* Tamaño del texto descriptivo */
    color: #555;
    /* Color del texto (gris suave) */
}

.header-container {
    /* Reemplaza con tu clase real */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* O como necesites alinear */
}

/* Puede que necesites estilos específicos para el nuevo contenedor */
.language-switcher-container {
    /* Estilos para posicionar o decorar el botón si es necesario */
    margin-left: 1em;
    /* Ejemplo: añadir espacio a la izquierda */
}

/* Asegúrate que los estilos que antes aplicaban a li.language-switcher-item */
/* ahora apliquen a .language-switcher-container o #language-switcher directamente */
#language-switcher {
    /* Estilos del botón */
}

/* --- ESTILOS ADICIONALES PARA SECCIÓN BLOG EN INDEX --- */

/* --- Blog Section --- */
#blog {
    z-index: 5;
    background-color: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.blog-post {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-main), box-shadow var(--transition-main);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-main);
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 600;
}

.blog-content p {
    color: var(--grey-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    transition: all var(--transition-fast);
    align-self: flex-start;
    margin-top: auto;
}

.btn-read-more:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateX(5px);
}

.btn-read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.btn-read-more:hover::after {
    transform: translateX(3px);
}

/* Responsive para Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        gap: 1.5rem;
    }

    .blog-content {
        padding: 1.2rem;
    }
}

/* --- INVERTIR ORDEN DE PROYECTO EN PC --- */
@media (min-width: 993px) {

    /* Se aplica solo en pantallas más grandes que 992px */
    .project-container.reverse {
        direction: rtl;
        /* Invierte el orden de las columnas (de derecha a izquierda) */
    }

    .project-container.reverse>* {
        direction: ltr;
        /* Restablece la dirección del texto para el contenido interno */
    }
}

/* === DROPDOWN MENU OPTIMIZADO === */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    /* Coincide con tu margin-top: 5px + un poco más */
    background: transparent;
    z-index: 999;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 300px;
    box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 12px;
    padding: 8px 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #e0e0e0;
    margin-top: 5px;
}

.dropdown-content a {
    color: #333 !important;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    line-height: 1.3;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 400;
}

.dropdown-content a:last-child {
    border-bottom: none;
    font-weight: 600;
    color: var(--primary-color) !important;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateX(2px);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.dropdown-arrow {
    margin-left: 6px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* === MÓVIL OPTIMIZADO === */
@media (max-width: 768px) {
    .dropdown-content {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        min-width: auto;
        padding: 5px 0;
        margin: 8px 0 0 0;
        border-radius: 8px;
        border-left: 3px solid var(--primary-color);
    }

    .dropdown-content a {
        padding: 12px 15px 12px 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 15px;
        color: #555 !important;
    }

    .dropdown-content a:last-child {
        background-color: rgba(0, 123, 255, 0.05);
        border-radius: 5px;
        margin: 5px 10px;
        padding: 12px 15px;
    }

    .dropdown-content a:hover {
        background-color: var(--primary-color);
        color: white !important;
        border-radius: 5px;
        margin: 0 10px;
        transform: none;
    }

    /* Toggle manual en móvil */
    .dropdown.mobile-active .dropdown-content {
        display: block !important;
        animation: mobileSlideIn 0.3s ease-out;
    }

    .dropdown.mobile-active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Ocultar por defecto */
    .dropdown-content {
        display: none;
    }
}

@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
}

/* === CSS PARA GRID DE PROYECTOS === */
/* Añadir al final de tu archivo style.css */

.projects-showcase-section {
    padding: 8rem 0;
    background-color: var(--light-bg);
}

.projects-showcase-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
}

.projects-showcase-section p.lead {
    margin-bottom: 5rem;
}

/* Contenedor del Grid */
.projects-grid-container {
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tarjetas de Proyectos */
.project-card {
    background: var(--white-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all var(--transition-main);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

/* Contenedor de Imagen */
.project-card-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-main);
}

.project-card:hover .project-card-image {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 50%,
            rgba(20, 35, 52, 0.2) 100%);
    transition: opacity var(--transition-main);
}

.project-card:hover .project-card-overlay {
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 40%,
            rgba(20, 35, 52, 0.4) 100%);
}

/* Contenido de la Tarjeta */
.project-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.project-card-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-card-content p {
    color: var(--grey-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    max-width: none;
}

/* Botón de Proyecto */
.project-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: center;
    position: relative;
    overflow: hidden;
}

.project-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s;
}

.project-btn:hover::before {
    left: 100%;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 52, 71, 0.3);
    color: var(--white-color);
}

.project-btn.disabled {
    background: var(--grey-text);
    cursor: not-allowed;
    opacity: 0.7;
}

.project-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Tarjeta "Próximamente" */
.project-card.coming-soon {
    opacity: 0.85;
}

.project-card.coming-soon .project-card-image-container {
    position: relative;
}

.project-card.coming-soon .project-card-image {
    filter: grayscale(0.3);
}

.coming-soon-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(35deg);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

/* === RESPONSIVE DESIGN === */

/* Tablets grandes */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .projects-showcase-section {
        padding: 6rem 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .project-card-image-container {
        height: 200px;
    }

    .project-card-content {
        padding: 1.5rem;
    }

    .project-card-content h3 {
        font-size: 1.2rem;
    }

    .project-card-content p {
        font-size: 0.9rem;
    }

    .coming-soon-badge {
        font-size: 0.7rem;
        padding: 6px 30px;
    }
}

/* Móviles */
@media (max-width: 576px) {
    .projects-showcase-section {
        padding: 5rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .project-card-image-container {
        height: 220px;
    }

    .project-card-content h3 {
        font-size: 1.3rem;
    }

    .project-card-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .project-btn {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
    .coming-soon-badge {
        right: -25px;
        font-size: 0.65rem;
        padding: 5px 25px;
    }
}

/* Controles de slider */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 1;
    padding: 0 10px;
    box-sizing: border-box;
    pointer-events: none;
}

.slider-nav button {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    line-height: 1;
    pointer-events: auto;
}

.slider-nav button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1;
}

.slider-indicators span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-indicators span.active {
    background: white;
}

.zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    transition: background 0.3s ease;
    font-size: 1rem;
    line-height: 1;
    border-radius: 8px;
}

.zoom-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Carrusel de desarrollo */
/* === CARRUSEL DE DESARROLLO BARRANQUILLA (VERSIÓN CORREGIDA) === */
.development-carousel {
    max-width: 1400px;
    /* AUMENTAR: de 1200px a 1400px */
    margin: 4rem auto 0;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    /* Más redondeado */
    box-shadow: 0 20px 60px var(--shadow-medium);
    background: var(--white-color);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Transición más suave y lenta */
    will-change: transform;
    /* Optimización */
}

.carousel-slide {
    flex: 0 0 100%;
    /* Forma moderna de definir el tamaño */
    position: relative;
    overflow: hidden;
    /* Corrección clave para recortar la imagen */
}

.carousel-slide img {
    width: 100%;
    height: 600px;
    /* AUMENTAR: de 500px a 600px para más impacto */
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
    padding: 4rem 3rem 3rem;
    /* AUMENTAR: Más padding para el contenido */
    text-align: center;
}

.slide-content h3 {
    font-size: 2.8rem;
    /* AUMENTAR: de 2.2rem a 2.8rem */
    margin-bottom: 1rem;
    color: white !important;
    font-weight: 700;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 1.4rem;
    /* AUMENTAR: de 1.2rem a 1.4rem */
    margin: 0 !important;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    /* AUMENTAR: de 600px a 800px */
    margin-left: auto !important;
    margin-right: auto !important;
    color: #cfe2de;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    /* Aumentado */
    pointer-events: none;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Borde agregado */
    width: 60px;
    /* Aumentado de 50px */
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    /* Aumentado */
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    /* Sombra agregada */
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    /* Aumentado */
    padding: 2rem;
    /* Aumentado */
    background: var(--white-color);
    flex-wrap: wrap;
    /* Para móviles */
}

.dot {
    width: 14px;
    /* Aumentado */
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::before {
    /* Efecto interno */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    /* Más grande */
}

.dot:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.dot.active::before {
    background: var(--white-color);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .development-carousel {
        margin: 3rem auto 0;
    }

    .carousel-slide img {
        height: 450px;
    }

    .slide-content {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .slide-content h3 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .carousel-controls {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .development-carousel {
        margin: 2rem auto 0;
    }

    .carousel-container {
        border-radius: 15px;
    }

    .carousel-slide img {
        height: 350px;
    }

    .slide-content {
        padding: 2rem 1.5rem 1.5rem;
    }

    .slide-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .slide-content p {
        font-size: 1rem;
        line-height: 1.3;
    }

    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .carousel-controls {
        padding: 0 1rem;
    }

    .carousel-dots {
        padding: 1.5rem;
        gap: 10px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .dot::before {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 576px) {
    .carousel-slide img {
        height: 280px;
    }

    .slide-content {
        padding: 1.5rem 1rem 1rem;
    }

    .slide-content h3 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mantén estos estilos para proyectos */
.project-column-media .gallery-item {
    position: relative;
}

.project-column-media .slider-container {
    position: relative;
    height: 400px;
}

.project-column-media .slider-images img {
    height: 400px;
    object-fit: cover;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .development-carousel {
        margin: 2rem auto 0;
        padding: 0;
        /* SIN padding en el contenedor principal */
    }

    .carousel-container {
        border-radius: 15px;
        margin: 0 1rem;
        /* Margen lateral EN EL CONTAINER, no en development-carousel */
        max-width: calc(100% - 2rem);
        /* Asegurar que no se desborde */
    }

    .carousel-slide img {
        height: 350px;
    }

    .slide-content {
        padding: 2rem 1.5rem 1.5rem;
    }

    .slide-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .slide-content p {
        font-size: 1rem;
        line-height: 1.3;
    }

    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .carousel-controls {
        padding: 0 1rem;
        /* Mantener padding en controles */
    }

    .carousel-dots {
        padding: 1.5rem;
        gap: 10px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    .dot::before {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 576px) {
    .development-carousel {
        margin: 1.5rem auto 0;
        /* AGREGAR: Más padding en móviles pequeños */
    }

    .slide-content {
        padding: 1.5rem 0.8rem 1rem;
        /* REDUCIR: Aún más padding */
    }

    .slide-content h3 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-controls {
        padding: 0 0.3rem;
        /* MÍNIMO: Padding para evitar cortes */
    }
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.noticia-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, #e0e0e0);
}

.noticia-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.noticia-media {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.noticia-media img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-item:hover .noticia-media img {
    transform: scale(1.05);
}

.noticia-media .video-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.noticia-media .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.noticia-content {
    padding: 2rem;
}

.noticia-category {
    margin-bottom: 1rem;
}

.noticia-category span {
    background: var(--primary-color, #007bff);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-noticia .noticia-category span {
    background: var(--secondary-color, #28a745);
}

.article-noticia .noticia-category span {
    background: var(--secondary-color, #28a745);
}

.noticia-content h3 {
    color: var(--text-dark, #2c3e50);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.noticia-excerpt {
    color: var(--text-light, #666);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e0e0e0);
    font-size: 0.85rem;
    color: var(--text-light, #666);
}

.noticia-date {
    font-weight: 600;
}

.noticia-source {
    background: var(--light-bg, #f8f9fa);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 500;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color, #007bff);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color, #007bff);
}

.btn-read-more:hover {
    background: transparent;
    color: var(--primary-color, #007bff);
    transform: translateY(-2px);
}

.btn-read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-read-more:hover::after {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .noticia-content {
        padding: 1.5rem;
    }

    .noticia-media {
        height: 200px;
    }

    .noticia-media .video-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .noticias-grid {
        gap: 1.5rem;
    }

    .noticia-content {
        padding: 1.2rem;
    }

    .noticia-content h3 {
        font-size: 1.1rem;
    }

    .noticia-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Integración con el tema existente del sitio */
.section-bg {
    background-color: var(--light-bg, #f8f9fa);
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}



.lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light, #666);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* === BANNER SUPERPUESTO EN HERO === */
.overlay-banner {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    z-index: 15;
}

.overlay-banner-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}



.overlay-text {
    flex: 1;
    text-align: left;
}

.overlay-text h3 {
    color: var(--white-color);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'NewYorkFont', serif;
    /* Dream Glory */
}

.overlay-text p {
    display: none;
}

.overlay-action {
    flex: 0 0 auto;
}

.overlay-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white-color);
    padding: 10px 22px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: none;
    font-family: var(--font-body);
}

.overlay-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--white-color);
}

/* Ajustar el contenido principal del hero para dar espacio */
#pre-hero-banner .banner-content {
    margin-top: 8rem;
    /* Espacio para el banner superpuesto */
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .overlay-banner {
        top: 1rem;
        width: calc(100% - 2rem);
    }

    .overlay-banner-content {
        flex-direction: row;
        /* Mantener horizontal en tablet */
        text-align: left;
        gap: 1.5rem;
        padding: 1.2rem 1.5rem;
    }

    .overlay-text {
        text-align: left;
    }

    .overlay-text h3 {
        font-size: clamp(1rem, 2.2vw, 1.4rem);
        line-height: 1.15;
    }


    #pre-hero-banner .banner-content {
        margin-top: 9rem;
    }
}

@media (max-width: 576px) {
    .overlay-banner {
        top: 0.8rem;
        width: calc(100% - 1.5rem);
    }

    .overlay-banner-content {
        flex-direction: column;
        /* VERTICAL en móvil pequeño */
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }

    .overlay-text {
        text-align: center;
        order: 1;
        /* Texto primero */
    }


    .overlay-action {
        order: 3;
        /* Botón tercero */
    }

    .overlay-text h3 {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .overlay-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    #pre-hero-banner .banner-content {
        margin-top: 10rem;
        /* Más espacio en móvil */
    }
}