/* ============================================
   VARIABLES Y COLORES CORPORATIVOS
   ============================================ */
:root {
    --navy-blue: #00204A; /* Azul oscuro más profundo */
    --sky-blue: #007BFF; /* Azul brillante para acentos */
    --medium-blue: #0056B3; /* Azul intermedio para degradados */
    --white: #FFFFFF;
    --dark-gray: #2C3E50;
    --light-gray: #ECF0F1;
    --text-color: #333333;
    --border-color: #DDDDDD;
    
    /* Tipografía */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
}

/* ============================================
   RESET Y ESTILOS GLOBALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--navy-blue);
    font-size: var(--font-size-xl);
    font-weight: 600;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--sky-blue);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-weight: 700;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--sky-blue);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    list-style: none;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 10px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--sky-blue);
}

/* Menú Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--navy-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--medium-blue) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: contents;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: var(--font-size-large);
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 120px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--font-size-base);
}

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

.btn-primary:hover {
    background-color: #0A9FD8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

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

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

.btn-large {
    padding: 15px 40px;
    font-size: var(--font-size-large);
}

.btn-outline {
    background-color: transparent;
    color: var(--navy-blue);
    border-color: var(--navy-blue);
}

.btn-outline:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 80px 20px;
    background-color: var(--light-gray);
}

.features h2 {
    text-align: center;
    font-size: var(--font-size-2xl);
    margin-bottom: 50px;
    color: var(--navy-blue);
}

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

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--navy-blue);
    margin-bottom: 15px;
    font-size: var(--font-size-xl);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   PRODUCTS PREVIEW
   ============================================ */
.products-preview {
    padding: 80px 20px;
    background-color: var(--white);
}

.products-preview h2 {
    text-align: center;
    font-size: var(--font-size-2xl);
    margin-bottom: 50px;
    color: var(--navy-blue);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-card {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--medium-blue) 100%);
    color: var(--white);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(52, 70, 80, 0.3);
}

.product-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--navy-blue) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.cta h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: 15px;
}

.cta p {
    font-size: var(--font-size-large);
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--sky-blue);
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--sky-blue);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--sky-blue);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ============================================
   PÁGINA DE CONTENIDO GENÉRICA
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--medium-blue) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: 10px;
}

.page-header p {
    font-size: var(--font-size-large);
    opacity: 0.95;
}

.page-content {
    padding: 60px 20px;
    min-height: 400px;
}

.section-title {
    font-size: var(--font-size-2xl);
    color: var(--navy-blue);
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu li a {
        display: block;
        padding: 12px 20px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        margin-top: 0;
        background-color: var(--light-gray);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-text h1 {
        font-size: var(--font-size-2xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-icon {
        font-size: 80px;
    }

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: var(--font-size-xl);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --font-size-xl: 20px;
        --font-size-2xl: 24px;
        --font-size-3xl: 32px;
    }

    .navbar .container {
        padding: 10px 15px;
    }

    .logo-text {
        display: none;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .features,
    .products-preview,
    .cta {
        padding: 40px 20px;
    }

    .footer-content {
        gap: 30px;
    }
}
