/* ==========================================================================
   1. CONFIGURACIÓN GENERAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    line-height: 1.6;
    
    /* Configuración del Fondo Fijo Industrial */
    background: linear-gradient(rgba(247, 250, 252, 0.90), rgba(247, 250, 252, 0.90)), 
                url('fondo.jpg') no-repeat center center;
    background-size: cover;       /* Ajusta la imagen al tamaño de la pantalla */
    background-attachment: fixed; /* Mantiene la imagen congelada al hacer scroll */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. NAVBAR / ENCABEZADO
   ========================================================================== */
.header {
    background-color: #ffffff; /* Fondo cambiado a blanco puro */
    padding: 10px 0; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); /* Sombra más sutil adecuada para fondo claro */
    border-bottom: 1px solid #edf2f7; /* Línea divisoria muy fina para delimitar el menú */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contenedor del logotipo para alineación vertical */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 55px; 
}

/* Control de la imagen del logo */
.logo-img {
    height: 100%;        
    width: auto;         
    object-fit: contain; 
}

/* Enlaces del menú adaptados para fondo claro */
.nav-menu a {
    color: #4a5568; /* Gris oscuro para una excelente lectura sobre blanco */
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

/* Efecto al pasar el mouse por encima del enlace */
.nav-menu a:hover {
    color: #3182ce; /* Cambia al azul corporativo de AAIMEX */
}

/* ==========================================================================
   3. SECCIÓN HERO (INICIO)
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.95)), 
                url('https://unsplash.com') no-repeat center center/cover;
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
}

.hero-tag {
    background-color: rgba(49, 130, 206, 0.2);
    color: #63b3ed;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin: 20px auto;
    max-width: 900px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: #a0aec0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #3182ce;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2b6cb0;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1a202c;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    width: 100%;
    margin-top: auto;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

/* ==========================================================================
   4. SOBRE NOSOTROS
   ========================================================================== */
.about-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #edf2f7;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.about-text p {
    color: #4a5568;
    font-size: 16px;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.badge-item {
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

/* ==========================================================================
   5. SECCIÓN CATÁLOGO DE PRODUCTOS
   ========================================================================== */
.catalog-section {
    padding: 80px 0;
    background-color: transparent; /* Permite ver el fondo fijo detrás del catálogo */
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: #1a202c;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    text-align: center;
    color: #718096;
    margin-bottom: 50px;
}

/* Grilla del Catálogo */
.grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Tarjetas */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-header {
    padding: 20px 20px 10px 20px;
}

.card-header h3 {
    font-size: 20px;
    color: #1a202c;
    font-weight: 700;
}

.card-body {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-text {
    margin-bottom: 25px;
}

.card-body p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 15px;
}

.card-body ul {
    list-style: none;
}

.card-body li {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-body li strong {
    color: #2d3748;
}

/* ==========================================================================
   6. SECCIÓN INFERIOR / CONTACTO Y DIRECCIÓN
   ========================================================================== */
.contact-section {
    background-color: #1a202c;
    padding: 80px 0;
    color: #ffffff;
}

.text-white { color: #ffffff; }
.text-gray { color: #a0aec0; }

.contact-grid {
    max-width: 650px;
    margin: 40px auto 0 auto;
}

.contact-card {
    background-color: #2d3748;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #4a5568;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 25px;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 10px;
    color: #ffffff;
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    display: block;
    font-size: 13px;
    color: #90cdf4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 16px;
    color: #e2e8f0;
}

.info-item p a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.info-item p a:hover {
    color: #63b3ed;
    text-decoration: underline;
}

.contact-wa-link {
    display: inline-block;
    color: #25d366 !important;
    font-weight: 700;
}

/* ==========================================================================
   7. PIE DE PÁGINA
   ========================================================================== */
.footer {
    background-color: #11141a;
    color: #718096;
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #2d3748;
}
