/* =================================
   RESET & BASE STYLES
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #4a90e2;
    --accent-color: #ff6b00;
    --accent-hover: #e55d00;
    --dark-color: #333;
    --gray-color: #666;
    --light-gray: #f5f5f5;
    --white: #ffffff;

    /* Typography */
    --font-family: 'Open Sans', sans-serif;
    --h1-size: 3rem;
    --h2-size: 2.5rem;
    --h3-size: 1.75rem;
    --normal-size: 1rem;
    --small-size: 0.875rem;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 1.5rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--normal-size);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* =================================
   HEADER & NAVIGATION
   ================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav__logo h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav__logo span {
    color: var(--accent-color);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__cta {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
}

.nav__cta:hover {
    background: var(--accent-hover);
    color: var(--white);
}

.nav__cta::after {
    display: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* =================================
   HERO SECTION
   ================================= */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.85) 0%, rgba(0, 86, 179, 0.85) 100%),
                url('fondo1.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23ffffff" opacity="0.05" width="1200" height="600"/><circle cx="200" cy="150" r="100" fill="%23ffffff" opacity="0.03"/><circle cx="800" cy="400" r="150" fill="%23ffffff" opacity="0.03"/></svg>');
    opacity: 0.3;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero__title {
    font-size: var(--h1-size);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn--primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll a {
    display: block;
}

.hero__scroll span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--white);
    border-radius: 15px;
    position: relative;
}

.hero__scroll span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* =================================
   SECTION STYLES
   ================================= */
.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: var(--h2-size);
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-top: 1.5rem;
}

/* =================================
   SERVICES SECTION
   ================================= */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service__card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.15);
}

.service__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service__icon svg {
    width: 35px;
    height: 35px;
}

.service__title {
    font-size: var(--h3-size);
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service__description {
    color: var(--gray-color);
    line-height: 1.8;
}

/* =================================
   PRODUCTS SECTION
   ================================= */
.products {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product__card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.product__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product__image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product__placeholder {
    width: 100px;
    height: 100px;
    color: var(--white);
    opacity: 0.7;
}

.product__placeholder svg {
    width: 100%;
    height: 100%;
}

.product__content {
    padding: 2rem;
}

.product__title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.product__description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product__features {
    list-style: none;
}

.product__features li {
    padding: 0.5rem 0;
    color: var(--gray-color);
    position: relative;
    padding-left: 1.5rem;
}

.product__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* =================================
   ABOUT SECTION
   ================================= */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__description {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat__label {
    color: var(--gray-color);
    font-size: var(--small-size);
}

.about__image {
    height: 400px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(0, 86, 179, 0.3)),
                url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800&q=80') center/cover no-repeat;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__placeholder {
    width: 150px;
    height: 150px;
    color: var(--white);
    opacity: 0;
    display: none;
}

.about__placeholder svg {
    width: 100%;
    height: 100%;
}

/* =================================
   CONTACT SECTION
   ================================= */
.contact {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.contact__card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.contact__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact__icon svg {
    width: 24px;
    height: 24px;
}

.contact__details h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact__details p,
.contact__details a {
    color: var(--gray-color);
    text-decoration: none;
}

.contact__details a:hover {
    color: var(--primary-color);
}

.contact__map {
    height: 100%;
    min-height: 300px;
}

.map__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 1rem;
}

.map__placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.7;
}

.map__placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* =================================
   FOOTER
   ================================= */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer__title span {
    color: var(--accent-color);
}

.footer__text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer__heading {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer__list a:hover {
    color: var(--accent-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* =================================
   ANIMATIONS
   ================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media screen and (max-width: 968px) {
    :root {
        --h1-size: 2.25rem;
        --h2-size: 2rem;
        --h3-size: 1.5rem;
    }

    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .about__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 576px) {
    :root {
        --h1-size: 1.75rem;
        --h2-size: 1.5rem;
        --section-padding: 3rem 0;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services__grid,
    .products__grid {
        grid-template-columns: 1fr;
    }
}
