/* ===========================
   Fuentes locales
   =========================== */

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Light_0.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Regular_0.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* ===========================
   Variables de diseño básicas
   =========================== */

:root {
    --color-bg: #ffffff;
    --color-text: #222222;
    --color-muted: #666666;

    --color-primary: #0052cc;   
    --color-primary-dark: #003b94;
    --color-accent: #00b894;   

    --font-base: 'Lato', Arial, sans-serif;
    --font-heading: 'Poppins', 'Montserrat', sans-serif;

    --container-width: 1400px;
    --spacing-section: 80px;
}

/* ===========================
   Reset / Normalización ligera
   =========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.5;
}

/* Quitar márgenes por defecto en encabezados y párrafos */
h1, h2, h3, h4, h5, h6,
p {
    margin: 0;
    padding: 0;
}

/* Enlaces */
a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Layout global
   =========================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
   /* padding: 0 20px;*/
}

/* Secciones generales */
/*section {
    padding: var(--spacing-section) 0;
}*/

/* Tipografía de encabezados */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900; /* Poppins Black */
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Párrafos */
p {
    font-size: 1rem;
    color: var(--color-muted);
}

/* ===========================
   Header y navegación
   =========================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

header .logo img {
    height: 40px;
    width: auto;
}

header ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

header ul li a {
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
}

header ul li a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* ===========================
   Botones reutilizables
   =========================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ===========================
   Footer
   =========================== */

footer {
    padding: 24px 0;
    border-top: 1px solid #e5e5e5;
    background-color: #fafafa;
}

footer p {
    font-size: 0.9rem;
    text-align: center;
    color: var(--color-muted);
}

/* ===========================
   Utilidades
   =========================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Responsivo básico */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
    }

    header ul {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 8px;
    }

    section {
        padding: 56px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}
