/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --dark-teal: #123c46;
    --light-bg: #f7f9fa;
    --white: #ffffff;
    --gold: #ceb56c;
    --green-accent: #008d6e;
    --text-main: #333;
    --text-light: #666;
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-light: 0 15px 40px rgba(0, 0, 0, 0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Open Sans', sans-serif; 
    color: var(--text-main); 
    line-height: 1.6; 
    background-color: var(--white);
    overflow-x: hidden; /* Evita desplazamientos laterales accidentales */
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 600; 
}

/* ENCUADRE DE LA WEB */
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 40px; /* Margen generoso en escritorio */
}

.text-center { text-align: center; }

/* ==========================================================================
   NAVEGACIÓN (HEADER)
   ========================================================================== */
header { 
    background: var(--dark-teal); 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo img { height: 60px; }

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 25px; 
}

nav ul li a { 
    color: var(--white); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 500; 
    letter-spacing: 1px; 
}

/* ==========================================================================
   HERO SECTION (PORTADA)
   ========================================================================== */
.hero { 
    min-height: 80vh; 
    /* Opacidad reducida a 0.3 para que la foto se vea clara */
    background: linear-gradient(rgba(18, 60, 70, 0.6), rgba(18, 60, 70, 0.3)), url('portada-auge-grupo.png'); 
    background-size: cover; 
    background-position: center;
    background-attachment: fixed; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 60px 20px;
}

.hero-box { 
    background: rgba(18, 60, 70, 0.7); /* Contraste para legibilidad */
    backdrop-filter: blur(10px); 
    padding: 50px; 
    border-radius: 8px; 
    max-width: 800px; 
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-box h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-box .subtitle { font-size: 1.4rem; margin-bottom: 20px; opacity: 0.9; }
.hero-box .description { font-size: 1.1rem; margin-bottom: 30px; line-height: 1.8; opacity: 0.8; }

.btn-gold { 
    background: var(--gold); 
    color: #000; 
    padding: 12px 30px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem;
    display: inline-block;
}

/* ==========================================================================
   SECCIONES Y TARJETAS (SERVICIOS, VALORES, OFICINAS, QR)
   ========================================================================== */
section { padding: 100px 0; }
.section-light { background: var(--white); }
.section-dark-teal { background: var(--dark-teal); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; color: var(--dark-teal); }
.white-text h2, .white-text p { color: var(--white); }

/* GRIDS RESPONSIVOS */
.grid-services, .grid-4, .grid-2 { 
    display: grid; 
    gap: 30px; 
}
.grid-services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* SISTEMA DE TARJETAS PREMIUM */
.grid-services .card, 
.card-value, 
.card-office, 
.qr-card { 
    background: var(--white); 
    padding: 45px 35px;
    border-radius: 12px; 
    box-shadow: var(--shadow-dark);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
}

/* EFECTO HOVER UNIFICADO */
.grid-services .card:hover, 
.card-value:hover, 
.card-office:hover, 
.qr-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-light);
}

/* ICONOS EN VALORES */
.icon-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   SOBRE NOSOTROS (SPLIT)
   ========================================================================== */
.split-section { display: flex; align-items: stretch; padding: 0; }
.about-img { flex: 1; background: #ddd url('oficina.png') center/cover; min-height: 500px; }
.about-text { flex: 1; padding: 100px; background: var(--white); }
.label { 
    display: inline-block; 
    background: #f0f0f0; 
    padding: 5px 15px; 
    margin-bottom: 20px; 
    font-weight: 600; 
    font-size: 0.8rem; 
}

/* ==========================================================================
   SECCIÓN QR Y LOGOS DE TIENDAS
   ========================================================================== */
.qr-container-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
}
.qr-image { width: 100%; height: 100%; object-fit: contain; }

.store-logo {
    margin-bottom: 15px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-img { max-height: 100%; width: auto; }

/* ==========================================================================
   CONTACTO Y FOOTER
   ========================================================================== */
.footer-contact { background: var(--dark-teal); color: var(--white); }
.btn-green { 
    display: inline-block; 
    background: var(--green-accent); 
    color: var(--white); 
    padding: 15px 50px; 
    border-radius: 40px; 
    text-decoration: none; 
    font-weight: 600; 
    margin-top: 30px;
    transition: background 0.3s;
}
.btn-green:hover { background: #00755b; }

footer { 
    background: #081d25; 
    color: rgba(255,255,255,0.5); 
    text-align: center; 
    padding: 40px; 
    font-size: 0.85rem; 
}
/*Quitar decoración enlaces*/
.datos {
    color: black;
	text-decoration: none;
    text-decoration-line: none;
    text-decoration-thickness: none;
    text-decoration-style: none;
}


/* ==========================================================================
   MÓVIL Y TABLET (ARREGLO DEFINITIVO 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    /* MÁRGENES LATERALES EN TODOS LOS ELEMENTOS */
    .container {
        padding: 0 25px; /* Asegura que nada toque el borde de la pantalla */
    }

    section {
        padding: 60px 0;
    }

    /* HERO ADAPTABLE */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px;
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }

    .hero-box {
        padding: 30px 20px;
        width: 100%;
    }

    .hero-box h1 {
        font-size: 1.8rem;
    }

    /* COLUMNAS ÚNICAS (FORZADO) */
    .grid-services, .grid-4, .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* SOBRE NOSOTROS (APILADO) */
    .split-section {
        flex-direction: column;
    }

    .about-img {
        width: 100%;
        min-height: 300px;
    }

    .about-text {
        width: 100%;
        padding: 40px 20px; /* Reducido de 100px para que encaje el texto */
    }

    /* HEADER Y MENÚ */
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* AJUSTE QR */
    .qr-container-img {
        width: 150px;
        height: 150px;
    }
}

footer { background: #081d25; color: rgba(255,255,255,0.5); text-align: center; padding: 40px; font-size: 0.85rem; }
