:root {
    --navy-profundo: #0B2E4F;
    --teal-tecnico: #1B9E8C;
    --teal-claro: #28BFA8;
    --gris-ingenieria: #5C6B73;
    --blanco-hueso: #F7F8F8;
    --text-dark: #1e2529;
	--text-thumb:#68DFCD;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--blanco-hueso);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- NAVEGACIÓN --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    
    /* Degradado diagonal: Navy Profundo dominando a la izquierda y destello Teal a la derecha */
    background-image: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 60%, #28BFA8 100%);
    
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid #1B9E8C; /* Línea de acento con el Teal Técnico */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Cambios dinámicos al hacer scroll (Si usas el script de compresión) */
header.scrolled {
    height: 60px;
    background-image: linear-gradient(135deg, #061F36 0%, #0B2E4F 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-bottom-color: #28BFA8; /* Cambia al Teal Claro al bajar */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.isotipo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--navy-profundo) 60%, var(--teal-tecnico));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: -1px;
    position: relative;
    overflow: hidden;
}

.isotipo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--teal-claro);
    transform: rotate(-45deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: var(--navy-profundo);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 9px;
    color: var(--gris-ingenieria);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Menu module styling overrides for Joomla structure */
.nav-links ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links ul li a {
    text-decoration: none;
    color: var(--navy-profundo);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links ul li a:hover {
    color: var(--teal-tecnico);
}


/* ==========================================================================
   EFECTO NATIVO DE ALTA GAMA PARA LOS ENLACES DEL MENÚ (.nav-links)
   ========================================================================== */

/* Aseguramos que los enlaces tengan la base necesaria para la animación */
.nav-links a {
    position: relative;
    text-decoration: none;
    padding-bottom: 6px; /* Espacio exacto para que la línea no pegue con el texto */
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Creamos la línea flotante tecnológica oculta en el centro */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* La posicionamos justo en el centro del enlace */
    width: 100%;
    height: 2px; /* Grosor refinado de la línea de acento */
    background-color: #00b4d8; /* Color azul tecnológico (puedes cambiarlo por tu color corporativo) */
    transform: translateX(-50%) scaleX(0); /* La centramos y la encogemos a tamaño cero */
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.5, 0, 0, 1); /* Curva suave de aceleración */
}

/* [Efecto Hover] Al pasar el mouse, el color cambia y la línea se expande desde el centro */
.nav-links a:hover {
    color: #ffffff; /* Ajusta el color que prefieras que tome al activarse */
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1); /* Se expande hacia los extremos de forma simétrica */
}

/* [Efecto Activo] Por si usas la clase 'active' o 'current' para identificar la sección actual */
.nav-links .active a::after,
.nav-links .current a::after {
    transform: translateX(-50%) scaleX(1);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(11, 46, 79, 0.9), rgba(11, 46, 79, 0.95)), url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: #ffffff;
    padding: 160px 20px 100px 20px;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--teal-tecnico);
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--teal-claro);
    transform: translateY(-2px);
}

/* --- SECCIÓN GENERAL --- */
section {
    padding: 40px 20px;
	padding-bottom:20px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: var(--navy-profundo);
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--teal-tecnico);
    margin-top: 8px;
}

.section-desc {
    color: var(--gris-ingenieria);
    margin-bottom: 40px;
    font-size: 16px;
    max-width: 800px;
}



/* --- QUIÉNES SOMOS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333333;
}

.about-stats {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--teal-tecnico);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.about-stats h3{
	color:var(--navy-profundo);
}

/* --- VALORES & PROPUESTA DE VALOR --- */
.bg-navy {
    background-color: var(--navy-profundo);
    color: #ffffff;
}

.bg-navy .section-title {
    color: #ffffff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 6px;
    border-top: 3px solid var(--teal-claro);
    transition: transform 0.3s, background-color 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.value-card h3 {
    color: var(--teal-claro);
    font-size: 18px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#proposals .section-container .section-desc{
	color:#fff !important;
}

/* --- ESPECIALIDADES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(11, 46, 79, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: border-color 0.3s;
}

.service-item:hover {
    border-color: var(--teal-tecnico);
}

.service-icon {
    color: var(--teal-tecnico);
    font-size: 24px;
    font-weight: bold;
}

.service-text h4 {
    color: var(--navy-profundo);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* --- CONTACTO --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--navy-profundo);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contact-details {
    margin: 30px 0;
    list-style: none;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-details strong {
    color: var(--navy-profundo);
}

.contact-details a {
    color: var(--teal-tecnico);
    text-decoration: none;
    font-weight: bold;
}

/* --- FOOTER --- */
footer {
    background-color: var(--navy-profundo);
    color: #ffffff;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    border-top: 3px solid var(--teal-tecnico);
}

footer p {
    color: #a0aab2;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    .about-grid, .contact-layout {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 30px;
    }
}


/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999; /* Asegura que se superponga a todo el contenido de Joomla */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

/* Efecto Hover y Enfoque */
.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.whatsapp-btn:active {
    transform: scale(0.95);
}

/* Adaptación para pantallas móviles pequeñas */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}
/* --- NAVEGACIÓN --- */
header {
    background-color: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(11, 46, 79, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.isotipo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--navy-profundo) 60%, var(--teal-tecnico));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: -1px;
    position: relative;
    overflow: hidden;
}

.isotipo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--teal-claro);
    transform: rotate(-45deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: var(--navy-profundo);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 9px;
    color: var(--gris-ingenieria);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Menú de navegación por defecto (Escritorio) */
.nav-links ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links ul li a {
    text-decoration: none;
    color: var(--navy-profundo);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links ul li a:hover {
    color: var(--teal-tecnico);
}

/* Botón de hamburguesa oculto por defecto en escritorio */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--navy-profundo);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- RESPONSIVIDAD (Móviles y Tablets) --- */
@media (max-width: 992px) { /* Cambia a colapsar en tablets y móviles */
    .menu-toggle {
        display: flex; /* Muestra la hamburguesa */
    }

    /* El menú se convierte en un panel flotante que cae desde el header */
    .nav-links {
        display: none; /* Oculto por defecto */
        position: absolute;
        top: 100%; /* Justo debajo de la barra de navegación */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 1005;
    }

    /* Se muestra cuando añadimos la clase .active con JS */
    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column; /* Enlaces en vertical */
        gap: 0;
        width: 100%;
    }

    .nav-links ul li {
        width: 100%;
        text-align: center;
    }

    .nav-links ul li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid rgba(11, 46, 79, 0.05);
    }

    /* Estilización del botón de hamburguesa activo (se transforma en 'X') */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--teal-tecnico);
    }

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

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--teal-tecnico);
    }
}


/* --- ESPECIALIDADES (TARJETAS MODERNAS) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(11, 46, 79, 0.04);
    border: 1px solid rgba(11, 46, 79, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Contenedor de la imagen para asegurar proporciones uniformes (Relación de aspecto 16:9) */
.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect Ratio 16:9 */
    overflow: hidden;
    background-color: var(--navy-profundo); /* Color de carga de respaldo */
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen automáticamente para que encaje de manera uniforme */
    transition: transform 0.5s ease;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que todas las tarjetas tengan la misma altura si el texto varía */
}

.card-title {
    color: var(--navy-profundo);
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(27, 158, 140, 0.25); /* Línea divisoria muy sutil en Teal */
    padding-bottom: 8px;
}

.card-text {
    color: var(--gris-ingenieria);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Efectos al pasar el cursor (Hover) */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(11, 46, 79, 0.08);
    border-color: var(--teal-tecnico);
}

.service-card:hover .card-image {
    transform: scale(1.08); /* Sutil efecto zoom en la imagen */
}

/* --- HERO SECTION (100% RESPONSIVO) --- */
.hero-section {
    position: relative;
    height: calc(100vh - 60px); /* Ocupa el alto de la pantalla menos el menú */
    width: 100%;
    overflow: hidden;
    background-color: var(--navy-profundo);
    margin-top: 40px; /* Ajuste para el header fijo */
}

/* Forzamos a TODA la estructura interna a heredar la altura en cualquier pantalla */
.hero-section > div,
.hero-section .custom,
.hero-section .swiper,
.hero-slider,
.hero-slider .swiper-wrapper {
    height: 100% !important;
    min-height: 100% !important;
    width: 100%;
}

.hero-slider .swiper-slide {
	/* El degradado de abajo ahora tiene un 35% de opacidad (0.35) en lugar de 65% (0.65) */
    background-image: linear-gradient(rgba(11, 46, 79, 0.35), rgba(11, 46, 79, 0.35));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    box-sizing: border-box;
    height: 100% !important; /* Asegura que el slide individual llene toda la altura */
}

.hero-content {
    max-width: 750px;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.hero-tagline {
    color: var(--teal-claro);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1.6;
}

/* Evitamos que el texto tape las miniaturas en pantallas grandes */
@media (min-width: 769px) {
    .hero-content {
        padding-bottom: 80px; 
    }
}

/* Efecto cuando la diapositiva entra en foco */
.hero-slider .swiper-slide-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- MINIATURAS (THUMBS) --- */
.hero-thumbs-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 0 10%;
    box-sizing: border-box;
}

/* Asegura que el contenedor de miniaturas mantenga su propia altura automática y no se estire al 100% */
.hero-thumbs-container .swiper,
.hero-thumbs-container .hero-thumbs {
    height: auto !important;
    min-height: auto !important;
}

.hero-thumbs {
    width: 100%;
    padding: 10px 0;
}

.hero-thumbs .swiper-slide {
    background: rgba(11, 46, 79, 0.7);
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 0 4px 4px;
    height: auto !important; /* Evita que las miniaturas se estiren */
}

.hero-thumbs .swiper-slide span {
    /*color: rgba(255, 255, 255, 0.6);*/
	color:var(--teal-claro);
       font-weight: bold;
    /*text-transform: uppercase;*/
    letter-spacing: 1px;
    display: block;
	font-size:0.6rem;
    /*white-space: nowrap;*/
    overflow: hidden;
    /*text-overflow: ellipsis;*/
	margin-top:-5px;
}

/* Estado activo de la miniatura que coincide con el slide del fondo */
.hero-thumbs .swiper-slide-thumb-active {
    background: var(--navy-profundo);
    border-top-color: var(--teal-tecnico);
}

.hero-thumbs .swiper-slide-thumb-active span {
    color: var(--teal-claro);
}

/* --- RESPONSIVO PARA MÓVILES Y TABLETS --- */
@media (max-width: 768px) {
    .hero-section {
        height: calc(100vh - 60px); /* Ajuste de altura del menú en móvil */
        margin-top: 60px;
    }
    
    .hero-slider .swiper-slide {
        padding: 0 20px; /* Más espacio lateral en pantallas chicas */
    }

    .hero-title {
        font-size: 26px; /* Título más compacto para que no se corte */
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .hero-thumbs-container {
        display: none; /* Ocultamos las miniaturas para dejar espacio limpio al texto */
    }
}



#about{
	magin-top:-20px;
}


.proteccion-email {
    direction: rtl; /* Escribe el texto de derecha a izquierda (Right to Left) */
    unicode-bidi: bidi-override; /* Fuerza al navegador a renderizar los caracteres al revés */
	color: var(--teal-tecnico);
    text-decoration: none;
    font-weight: bold;hea
}

