/* ===================================================
   NUEVO: Variables de Color y Tipografía
   =================================================== */
:root {
    --color-primario: #28a745;      /* Verde vibrante */
    --color-primario-oscuro: #218838; /* Verde para hover */
    --color-titulo: #1A2E3B;         /* Azul oscuro casi negro para títulos */
    --color-texto: #555;            /* Gris para texto de cuerpo */
    --color-fondo: #FFFFFF;
    --color-fondo-seccion: #f8f9fa;
    --fuente-titulo: 'Montserrat', sans-serif;
    --fuente-texto: 'Roboto', sans-serif;
    --sombra-suave: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

/* ===================================================
   MEJORA: Estilos Generales y Reset
   =================================================== */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuente-texto);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: var(--color-texto);
    background-color: var(--color-fondo);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===================================================
   MEJORA: Títulos de Sección con Detalle Visual
   =================================================== */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: var(--fuente-titulo);
    color: var(--color-titulo);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primario);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: -15px auto 50px auto;
}

/* ===================================================
   SOLUCIÓN DEFINITIVA: Encabezado con Flexbox
   =================================================== */
header {
    background: var(--color-fondo);
    padding: 1rem 0; 
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}

header h1 {
    margin: 0;
    font-family: var(--fuente-titulo);
    color: var(--color-primario); 
    font-size: 1.8rem; 
}

header nav {
    display: flex; 
    align-items: center; 
}

header a {
    text-decoration: none;
    color: var(--color-texto);
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--color-primario);
}

/* ===================================================
   Botones con más estilo
   =================================================== */
.cta-button {
    background: var(--color-primario);
    color: #fff;
    padding: 12px 28px; 
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -5px var(--color-primario);
    white-space: nowrap; 
}

.cta-button:hover {
    background: var(--color-primario-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px var(--color-primario);
    color: #fff;
}

.whatsapp-button {
    background: #25D366;
    margin-left: 10px;
    box-shadow: 0 4px 15px -5px #25D366;
}

.whatsapp-button:hover {
    background: #1EAE54;
    box-shadow: 0 8px 20px -5px #25D366;
}


/* ===================================================
   CORRECCIÓN: Sección Hero con Flexbox
   =================================================== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/fondo.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 140px 0;
    text-align: center;
}

/* Usamos flexbox para centrar todo el contenido verticalmente */
.hero .container {
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    justify-content: center; /* Centra verticalmente */
    align-items: center; /* Centra horizontalmente */
}

.hero h2 {
    font-family: var(--fuente-titulo);
    font-size: 3.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto; /* Mantenemos margen inferior para dar espacio al botón */
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===================================================
   MEJORA: Tarjetas (Cards) con Sombra Moderna
   =================================================== */
.section-bg {
    background-color: var(--color-fondo-seccion);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--color-fondo);
    padding: 35px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.card h4 {
    font-family: var(--fuente-titulo);
    font-size: 1.4rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--color-titulo);
}

.product-image {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-radius: 5px;
    margin-bottom: 15px;
}

/* ===================================================
   SECCIÓN DE PROCESO
   =================================================== */
.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.process-step .number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--color-primario);
    margin-right: 25px;
    line-height: 1;
}

.process-step h4 {
    font-family: var(--fuente-titulo);
    color: var(--color-titulo);
    margin-bottom: 5px;
}

/* ===================================================
   SECCIÓN DE COTIZACIÓN
   =================================================== */
.quote-section {
    background: var(--color-titulo);
    color: #fff;
    text-align: center;
}

.quote-section h3 {
    font-family: var(--fuente-titulo);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.quote-section p {
    margin-bottom: 30px;
}

.quote-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===================================================
   SECCIÓN DE GALERÍA
   =================================================== */
.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

/* ===================================================
   PIE DE PÁGINA
   =================================================== */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* ===================================================
   RESPONSIVE DESIGN (Móviles)
   =================================================== */
@media (max-width: 820px) { 
    
    header {
        position: static;
    }

    header .container {
        flex-direction: column; 
        padding: 20px 0;
    }

    header h1 {
        margin-bottom: 15px; 
    }
    
    header nav {
       flex-direction: column; 
       width: 100%;
    }

    header nav a {
        margin: 8px 0; 
        text-align: center;
    }

    header nav a.cta-button {
        margin-top: 15px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .whatsapp-button {
        margin-left: 0;
    }
}
/* ===================================================
   NUEVO: Caja de Información para Productos
   =================================================== */
.info-box {
    background-color: #e9f6ec; /* Un fondo verde muy claro, relacionado con tu color primario */
    border-left: 5px solid var(--color-primario); /* Una línea lateral con el color principal para destacar */
    padding: 20px;            /* Espacio interno para que el texto no esté pegado a los bordes */
    margin-top: 30px;         /* Separación de los elementos de arriba (las tarjetas) */
    border-radius: 8px;       /* Bordes redondeados para un look más suave */
    text-align: center;       /* Centramos el texto para que mantenga la coherencia */
    font-size: 1rem;          /* Tamaño de letra legible */
    color: #333;              /* Un color de texto un poco más oscuro para mejor contraste */
}

/* ===================================================
   NUEVO: Estilo para la Sección de Descarga PDF
   =================================================== */
.pdf-download-box {
    text-align: center;
    padding: 40px;
    background-color: var(--color-fondo-seccion); /* Fondo gris claro como otras secciones */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: var(--sombra-suave); /* Sombra suave como las tarjetas */
    max-width: 800px; /* Ancho máximo para que no ocupe toda la pantalla */
    margin: 0 auto; /* Centrar la caja horizontalmente */
}

.pdf-download-box h4 {
    font-family: var(--fuente-titulo);
    font-size: 2rem;
    color: var(--color-titulo);
    margin-bottom: 10px;
}

.pdf-download-box p {
    margin-bottom: 25px; /* Espacio antes del botón */
    font-size: 1.1rem;
}