/* ============================================================
    VARIABLES Y ESTILOS GLOBALES
   ============================================================ */
:root {
    --primary: #2d3436;
    --accent: #00ff01;        /* Verde neón original (solo para detalles y números) */
    --accent-soft: #7ca992;   /* NUEVO: Verde salvia muy suave, limpio y premium para fondos */
    --light: #f5f6fa;
    --white: #ffffff;
    --gray: #636e72;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--primary); 
    background: var(--light); 
}

/* --- Navbar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Color del enlace de COTECLA */
.link-autor {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.link-autor:hover {
    color: #ffffff;
    text-decoration: underline; 
}

/* --- Logo --- */
.logo img { height: 100px; width: auto; transition: transform 0.3s; }

/* --- Submenús --- */
.has-submenu { position: relative; }
.submenu {
    position: absolute; top: 100%; left: 0; background: var(--white);
    list-style: none; min-width: 220px; box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 8px; padding: 10px 0; visibility: hidden; opacity: 0;
    transform: translateY(15px); transition: all 0.3s ease; z-index: 1100;
    border-top: 2px solid var(--accent);
}
.has-submenu:hover .submenu { visibility: visible; opacity: 1; transform: translateY(5px); }
.submenu li a { padding: 10px 20px; display: block; text-decoration: none; color: var(--primary); font-size: 0.85rem; font-weight: 500; }
.submenu li a:hover { background: var(--light); }

/* --- WhatsApp en Menú --- */
.whatsapp-nav img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}
.whatsapp-nav::after { display: none !important; }

/* --- Navegación --- */
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.menu-links { list-style: none; display: flex; gap: 1.1rem; }
.menu-links a { text-decoration: none; color: var(--primary); font-weight: 500; font-size: 0.88rem; position: relative; }
.menu-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background: var(--accent); transition: 0.3s; }
.menu-links a:hover::after { width: 100%; }

/* --- Selector de Idioma --- */
.lang-selector { position: relative; }
.lang-btn { background: var(--light); padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; border: 1px solid #ddd; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lang-options { position: absolute; right: 0; top: 110%; background: white; box-shadow: 0 8px 25px rgba(0,0,0,0.15); border-radius: 12px; overflow: hidden; visibility: hidden; opacity: 0; transition: 0.3s; min-width: 150px; }
.lang-selector:hover .lang-options { visibility: visible; opacity: 1; transform: translateY(5px); }
.lang-option { width: 100%; padding: 12px 18px; border: none; background: none; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.lang-option:hover { background: #f5f5f5; }
.lang-option.active { opacity: 0.4; pointer-events: none; background: #eee; }
.flag { width: 22px; height: 16px; object-fit: cover; }

/* --- Carrusel --- */
.carousel { position: relative; width: 100%; height: 140vh; overflow: hidden; }
.slider { display: flex; width: 300%; height: 100%; transition: transform 0.8s ease-in-out; }
.slide { width: 33.333%; height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; }
.slide::before { content: ''; position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.45); }
.slide-content { position: relative; color: white; text-align: center; z-index: 2; padding: 40px; max-width: 900px; }
.slide-content h2 { font-size: 4.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* --- Footer --- */
footer { background: #1a1a1a; color: #d1d1d1; padding: 5rem 5% 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem; }
.footer-col h3 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col p, .footer-col ul { font-size: 0.9rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li a { color: #d1d1d1; text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); margin-top: 3rem; padding-top: 2rem; text-align: center; font-size: 0.85rem; }

/* --- Responsive Corregido --- */
@media (max-width: 768px) {
    .menu-toggle { 
        display: flex !important; 
        flex-direction: column; 
        gap: 5px; 
        z-index: 1200; 
        cursor: pointer; 
        position: relative;
    }
    .menu-toggle span { width: 25px; height: 3px; background: var(--primary); }

    .nav-right {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--white); flex-direction: column; justify-content: center;
        transition: 0.4s; box-shadow: -5px 0 15px rgba(0,0,0,0.1); gap: 2rem;
        z-index: 1100;
    }
    .nav-right.active { right: 0; }
    
    .menu-links { flex-direction: column; text-align: center; gap: 1.5rem; }
    .submenu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; display: none; border: none; }
    .has-submenu:hover .submenu { display: block; }
    
    .social-links li a img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px;
    }

    .carousel { height: 60vh; }
    .slide-content h2 { font-size: 2.2rem; }
}

@media (min-width: 769px) { .menu-toggle { display: none; } }

/* --- Ocultación Google Translate --- */
#google_translate_element, .goog-te-banner-frame, .goog-te-gadget, .skiptranslate { display: none !important; }
body { top: 0px !important; position: static !important; }

.reverse-email {
    unicode-bidi: bidi-override;
    direction: rtl;
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    text-align: left;
}

.reverse-email:hover { text-decoration: underline; }

/* Redes Sociales */
.social-container { margin: 15px 0 0 0; text-align: left; }
.social-links { list-style: none; display: flex; gap: 1.2rem; justify-content: flex-start; padding: 0; margin: 0; }

.social-links li a img {
    width: 28px;
    height: 28px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-links li a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

.btn-asesoria {
    display: inline-block;
    background-color: #28a745;
    color: #ffffff !important;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-asesoria:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-asesoria:active { transform: translateY(0); }

/* --- Contenedor Principal del Cuerpo --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;    
    padding: 60px 5%;  
}

.home-body {
    text-align: left;  
}

.home-body h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.home-body p {
    font-size: 1.1rem;
    max-width: 1000px;  
    color: var(--gray);
}

/* --- Ajuste para Móviles --- */
@media (max-width: 768px) {
    .container {
        padding: 40px 7%; 
    }
    
    .home-body h1 {
        font-size: 1.8rem;
    }
}

/* --- Sección de Dos Columnas --- */
.seccion-collage {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
    margin-top: 50px;
    background: var(--light);
    overflow: hidden;
}

/* Columna de Texto */
.col-texto {
    flex: 1;
    min-width: 350px;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-texto h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.lista-check {
    list-style: none;
    margin-top: 1.5rem;
}

.lista-check li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

.lista-check li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #28a745; /* Cambiado a verde construcción corporativo para quitar el neón chillón */
}

/* =====================================================================
   CORREGIDO: COLUMNA DE COLLAGE CON TEXTURA Y COLOR SUAVE 
   ===================================================================== */
.col-collage {
    flex: 1;
    min-width: 350px;
    background-color: var(--accent-soft); 
    /* Fondo combinado: Degradado sutil + Textura de planos técnicos de alta visibilidad */
    background-image: 
        radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 80%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 0h40v40H0V0zm1 1v38h38V1H1z' fill='%23ffffff' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(3, 1fr);    
    gap: 12px; /* Un poco más de separación para que respire */
    width: 100%;
    aspect-ratio: 1 / 1; 
}

.img-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px; /* Bordes un poco más suavizados */
    background: #2d3436; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Sutil sombra a cada foto */
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.img-item:hover img {
    transform: scale(1.1);
}

/* Ajuste para Móviles */
@media (max-width: 768px) {
    .seccion-collage {
        flex-direction: column;
    }
    .col-collage {
        min-height: 400px;
    }
}

/* --- Sección de Contadores Estadísticos --- */
.seccion-contadores {
    margin-top: 50px; 
    background-image: url('../images/torre-bod.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.overlay-contadores {
    background: rgba(0, 0, 0, 0.7); 
    padding: 80px 0;
}

.container-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

/* En los números dejamos el neón porque al estar sobre fondo negro resalta excelente */
.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent); 
    margin-bottom: 10px;
}

.stat-number::before {
    content: "+";
    display: inline-block;
    margin-right: 2px; /* Espaciado sutil entre el + y el número */
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    .overlay-contadores {
        padding: 50px 20px;
    }
}

.titulo-stats {
    text-align: center;
    color: white;
    font-size: 2.5rem; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px; 
}

/* --- Sección Proyectos Destacados --- */
.proyectos-destacados {
    margin-top: 30px;
    margin-bottom: 20px;
}

.titulo-seccion {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* --- Tarjeta (Flip Effect) --- */
.proyecto-card {
    background-color: transparent;
    height: 400px; 
    perspective: 1000px; 
}

.proyecto-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
}

.proyecto-card:hover .proyecto-inner {
    transform: rotateY(180deg);
}

.proyecto-front, .proyecto-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
    border-radius: 12px;
    overflow: hidden;
}

/* Frente */
.proyecto-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proyecto-info-mini {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
}

.proyecto-info-mini h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Reverso de la tarjeta: mitigado el impacto visual usando el tono oscuro */
.proyecto-back {
    background-color: #1e252b; 
    color: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.back-content ul {
    list-style: none;         
    padding: 0;               
    margin: 0 0 15px 0;       
    text-align: left;         
}

.back-content li {
    font-size: 11px;           
    line-height: 1.3;
    margin-bottom: 5px;       
    color: #e0e0e0;
    position: relative;
    padding-left: 15px;       
}

.back-content li::before {
    content: "•";             
    color: var(--accent);     
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-ver-mas {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-ver-mas:hover {
    background: var(--accent);
    color: var(--primary);
}

@media (max-width: 992px) {
    .grid-proyectos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-proyectos { grid-template-columns: 1fr; }
}

.btn-ver-todos {
    display: block;
    width: 100%;
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background-color: var(--primary); /* Cambiado de neón a color primario oscuro para dar seriedad al cierre */
    color: var(--white); 
    border: 2px solid var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-ver-todos:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.seccion-imagen-texto {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px; 
    width: 100%;
    background-color: var(--primary); 
    margin-top: 0px;        
    padding-top: 0px;       
}

.col-imagen-fondo {
    flex: 1;
    min-width: 500px; 
    background-image: url('../images/por-que-venezuela.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.col-texto-derecha {
    flex: 1;
    min-width: 500px;
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding: 60px;
    color: white;
}

.contenido-interno {
    max-width: 500px; 
}

.col-texto-derecha h2 {
    color: var(--accent); 
    margin-bottom: 20px;
    font-size: 2rem;
}

.col-texto-derecha p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 1000px) {
    .col-imagen-fondo {
        min-height: 300px;
    }
    .col-texto-derecha {
        padding: 40px 20px;
    }
}

/* ============================================================
   CORRECCIONES COMPLEMENTARIAS PARA MÓVILES (HASTA 768px)
   ============================================================ */
@media (max-width: 768px) {
    .col-texto, .col-collage {
        min-width: 100% !important; 
        padding: 40px 20px !important; 
    }
    
    .col-texto h2 {
        font-size: 1.8rem !important; 
    }

    .seccion-imagen-texto {
        flex-direction: column !important; 
    }

    .col-imagen-fondo, .col-texto-derecha {
        min-width: 100% !important; 
        flex: none !important;
    }

    .col-imagen-fondo {
        min-height: 250px !important; 
    }

    .col-texto-derecha {
        padding: 40px 20px !important; 
    }

    .col-texto-derecha h2 {
        font-size: 1.8rem !important;
    }

    .proyecto-card {
        height: auto !important; 
        min-height: 420px;
    }
    
    .proyecto-back {
        padding: 15px !important; 
    }

    .back-content p {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}