/* =========================================
   --- VARIABLES GLOBALES ---
   ========================================= */
:root {
    --color-primario: #FF5722; /* Naranja Vibrante del Logo */
    --color-secundario: #000000; /* Negro Profundo del Logo */
    --color-texto: #333333; /* Gris Oscuro para legibilidad */
    --color-fondo: #ffffff; /* Blanco */
    --color-topbar: #111111; /* Negro casi absoluto */
    --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-standard: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    color: var(--color-texto);
    background-color: var(--color-fondo);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================================
   --- TOPBAR: INDICADORES ---
   ========================================= */
.topbar {
    background-color: var(--color-topbar);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 500;
}

.topbar-content {
    display: flex;
    justify-content: flex-end; /* Cambiado de center a flex-end para alinear a la derecha */
    gap: 25px;
    flex-wrap: wrap;
}

.topbar-content span {
    display: flex;
    align-items: center;
}

.topbar-content span::before {
    content: "•";
    color: var(--color-primario);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* =========================================
   --- HEADER PRINCIPAL ---
   ========================================= */
header {
    background-color: #ffffff;
    padding: 7px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-standard);
}

header.scrolled {
    padding: 8px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    transition: var(--transition-standard);
}

header.scrolled .logo img {
    height: 45px;
}

/* =========================================
   --- NAVEGACIÓN ---
   ========================================= */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--color-secundario);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-standard);
}

nav a:hover, nav a.active {
    color: var(--color-primario);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-secundario);
    cursor: pointer;
}

/* =========================================
   --- HERO SECTION ---
   ========================================= */
.hero {
    background: linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.85)), url('../images/hero-deg.jpg') center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding: 120px 0;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--color-primario);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--color-primario);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: var(--transition-standard);
}

.cta-button:hover {
    background-color: #E64A19;
}

/* =========================================
   --- SECCIÓN INTRODUCCIÓN ---
   ========================================= */
.intro-section {
    padding: 70px 0;
    text-align: center;
}

.intro-content h2 {
    color: var(--color-secundario);
    margin-bottom: 25px;
    font-size: 2.4rem;
}

.intro-content p {
    font-size: 1.15rem;
    max-width: 850px;
    margin: 0 auto;
    color: var(--color-texto);
    line-height: 1.8;
}

/* =========================================
   --- SECCIÓN SERVICIOS ---
   ========================================= */
.services-section {
    background-color: #f4f7f6;
    padding: 70px 0;
}

.section-title {
    text-align: center;
    color: var(--color-secundario);
    font-size: 2.4rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-fondo);
    padding: 40px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: var(--transition-standard);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom: 4px solid var(--color-primario);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primario);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--color-secundario);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #555555;
}

/* =========================================
   --- FOOTER MULTICOLUMNA ---
   ========================================= */
footer {
    background-color: var(--color-topbar);
    color: #ffffff;
    padding-top: 40px; /* Reducido de 60px a 40px */
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Reducido para juntar más las columnas */
    padding-bottom: 25px; /* Reducido de 40px a 25px */
}

.footer-logo {
    height: 45px; /* Logo ligeramente más pequeño */
    margin-bottom: 15px; /* Menos espacio debajo del logo */
    background-color: #ffffff;
    padding: 5px;
    border-radius: 4px;
}

.footer-col h3 {
    color: var(--color-primario);
    margin-bottom: 15px; /* Reducido de 25px a 15px */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    margin-bottom: 10px; /* Reducido de 15px a 10px */
    font-size: 0.9rem;
    color: #cccccc;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px; /* Opciones de menú más juntas */
}

.footer-col ul a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition-standard);
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--color-primario);
    padding-left: 5px;
}

.footer-col i {
    color: var(--color-primario);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding: 12px 0; /* Banda inferior más delgada */
    background-color: #080808;
    color: #777777;
    font-size: 0.8rem;
}

/* =========================================
   --- RESPONSIVE DESIGN ---
   ========================================= */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    nav.show {
        display: block;
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        text-align: center;
        border-top: 1px solid #eeeeee;
    }

    nav a {
        display: block;
        padding: 18px;
        font-size: 1rem;
    }

    .topbar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .topbar-content span::before {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }
    
    header.scrolled .logo img {
        height: 38px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* =========================================
   SECCIÓN NOSOTROS
========================================= */
.nosotros-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.nosotros-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.nosotros-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nosotros-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 50%; /* Hace la imagen circular */
    object-fit: cover;
    aspect-ratio: 1 / 1; /* Asegura que sea un círculo perfecto */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.nosotros-text {
    flex: 1.2;
}

.nosotros-text h2 {
    font-size: 2.2rem;
    color: #1a2a3a;
    margin-bottom: 25px;
    font-weight: 700;
}

.nosotros-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .nosotros-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .nosotros-image img {
        max-width: 320px;
    }
}


/* =========================================
   BANNER DE COOKIES (DEG LATAM)
========================================= */
.cookie-banner {
    display: none; /* Oculto por defecto, el JS lo activa si es necesario */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 850px;
    background: rgba(26, 42, 58, 0.98); /* Tono azul marino oscuro corporativo */
    padding: 25px 35px;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

.cookie-content { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 30px; 
}

.cookie-content p { 
    margin: 0; 
    font-size: 0.92rem; 
    color: #ffffff; 
    line-height: 1.5; 
}

.cookie-btns { 
    display: flex; 
    flex-direction: row; 
    gap: 12px; 
    white-space: nowrap; 
    flex-shrink: 0; 
}

.btn-cookie { 
    padding: 12px 24px; 
    border-radius: 6px; 
    border: none; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-accept { 
    background: #E64A19; /* Color azul primario para resaltar */
    color: #fff; 
}

.btn-accept:hover { 
    background: #E64A19; 
    transform: translateY(-2px); 
}

.btn-cancel { 
    background: rgba(255,255,255,0.15); 
    color: #fff; 
}

.btn-cancel:hover { 
    background: rgba(255,255,255,0.25); 
}

/* Ajustes para móviles */
@media(max-width: 900px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 20px; }
    .cookie-btns { justify-content: center; width: 100%; }
}