/* ==================== VARIABLES CSS ==================== */
:root {
    /* Colores inspirados en el logo */
    --primary-color: #0033A0; /* Azul oscuro y profesional */
    --accent-color: #FDCB0A;  /* Amarillo vibrante para atención */
    --text-color: #333;
    --text-color-light: #666;
    --body-color: #FFFFFF;
    --container-color: #F8F9FA;

    /* Tipografía */
    --body-font: 'Lato', sans-serif;
    --title-font: 'Montserrat', sans-serif;

    /* Pesos de fuente */
    --font-bold: 700;
    --font-black: 900;
}

/* ==================== BASE ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--title-font);
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== CLASES REUTILIZABLES ==================== */
.section {
    padding: 6rem 0 2rem;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: var(--font-black);
}

.container {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* ==================== BOTONES ==================== */
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-bold);
    font-family: var(--title-font);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--accent-color);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.button--ghost {
    background-color: transparent;
    color: var(--body-color);
    border-color: var(--body-color);
}

.button--ghost:hover {
    background-color: var(--body-color);
    color: var(--primary-color);
}

.button--full {
    width: 100%;
    text-align: center;
}

.button--link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: var(--font-bold);
    padding: 0;
}
.button--link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}


/* ==================== HEADER ==================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav {
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: var(--title-font);
    font-size: 1.25rem;
    color: var(--body-color);
    font-weight: var(--font-black);
    transition: color 0.4s;
}
.nav__logo sup {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.nav__toggle {
    font-size: 1.5rem;
    color: var(--body-color);
    cursor: pointer;
    display: none; /* Oculto en desktop */
    transition: color 0.4s;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--body-color);
    font-weight: var(--font-bold);
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--accent-color);
}

.header.scrolled .nav__logo,
.header.scrolled .nav__link,
.header.scrolled .nav__toggle {
    color: var(--primary-color);
}

.header.scrolled .nav__link:hover {
     color: var(--accent-color);
}


/* ==================== SECCIÓN 1: HÉROE ==================== */
.hero {
    padding-top: 8rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('hero-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--body-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 120, 0.65);
    z-index: 1;
}

.hero__container {
     animation: fadeIn 1s ease-in-out;
     position: relative;
     z-index: 2;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: var(--font-black);
    line-height: 1.2;
    color: var(--body-color);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ==================== SECCIÓN DE PRODUCTOS (NUEVO DISEÑO) ==================== */
.product-section {
    padding: 6rem 0;
}

.product-section__container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 3rem;
}

@media screen and (min-width: 768px) {
    .product-section__container {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
    /* Alternar orden de imagen */
    .product-section__container--reversed .product-section__image-content {
        order: 2;
    }
}

.product-section__image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-section__title {
    font-size: 2.5rem;
    font-weight: var(--font-black);
    margin-bottom: 1rem;
}

.product-section__title span {
    color: var(--accent-color);
}

.product-section__description {
    color: var(--text-color-light);
    margin-bottom: 2rem;
    text-align: justify;
}

.product-section__features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.product-section__feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: var(--font-bold);
}

.product-section__feature-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* ==================== QUIÉNES SOMOS ==================== */
.about {
    background-color: var(--container-color);
}
.about__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.about__description {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}

.team__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team__profile {
    text-align: center;
}

.team__profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-color);
}

.team__profile-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team__profile-role {
    color: var(--text-color-light);
    font-weight: var(--font-bold);
}


/* ==================== SECCIÓN DE CONTACTO ==================== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media screen and (min-width: 768px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.contact__description {
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    font-family: var(--body-font);
    font-size: 1rem;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 51, 160, 0.2);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--container-color);
    padding: 2rem 0;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    color: var(--text-color-light);
    text-align: center;
    width: 100%;
}

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.footer__social-link {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.footer__social-link:hover {
    color: var(--accent-color);
}

@media screen and (min-width: 768px) {
    .footer__container {
        flex-wrap: nowrap;
    }
    .footer__copy {
        width: auto;
    }
}

/* ==================== MEDIA QUERIES PARA MENÚ ==================== */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla */
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        transition: right 0.4s;
    }
    .nav__list {
        flex-direction: column;
        padding-top: 8rem;
        gap: 2.5rem;
    }
    .nav__link {
        color: var(--primary-color);
        font-size: 1.25rem;
    }
    .nav__toggle {
        display: block; /* Visible en móvil */
    }
    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        color: var(--primary-color);
        cursor: pointer;
    }
    
    /* Mostrar menú */
    .show-menu {
        right: 0;
    }
    
    .section {
        padding: 4rem 0 2rem;
    }
    .section__title {
        font-size: 2rem;
    }
    .hero__title {
        font-size: 2.5rem;
    }
    .hero__subtitle {
        font-size: 1rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
