/* Variables de Color y Fuentes (basadas en el logo) */
:root {
    --primary-color: #00AEEF; /* Azul claro del logo */
    --secondary-color: #FFFFFF; /* Blanco */
    --dark-bg-color: #0A192F; /* Azul oscuro del fondo del logo */
    --light-bg-color: #122740; /* Un poco más claro que el dark-bg para secciones */
    --text-color: #E0E0E0; /* Un gris muy claro para texto general */
    --heading-color: #FFFFFF;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --header-height: 70px;
}

/* Reset y Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    background-color: var(--dark-bg-color);
    color: var(--text-color);
    overflow-x: hidden; /* Prevenir scroll horizontal no deseado */
}

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

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img.logo {
    height: 50px;
    width: auto;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg-color);
    border: 2px solid var(--primary-color);
}

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

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

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


/* Header */
header {
    background-color: var(--dark-bg-color);
    color: var(--secondary-color);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    height: var(--header-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header .logo-link {
    display: flex;
    align-items: center;
}

header .main-nav ul {
    display: flex;
}

header .main-nav ul li {
    margin-left: 25px;
}

header .main-nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}
header .main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Ligeramente debajo del texto */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
header .main-nav ul li a:hover,
header .main-nav ul li a.active { /* Estilo para el enlace activo */
    color: var(--primary-color); /* Cambia color del texto también */
}
header .main-nav ul li a:hover::after,
header .main-nav ul li a.active::after {
    width: 100%;
}


.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
    height: 100vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
    padding-top: var(--header-height);
}

#hero .slogan {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* About Section */
#about .section-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--dark-bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-details {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: auto;
}

.service-details li {
    margin-bottom: 8px;
    padding-left: 25px; /* Aumentado para mejor espacio */
    position: relative;
}

.service-details li::before {
    content: "\f00c"; /* Check mark */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Solid icons */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 3px; /* Ajuste vertical */
}

/* Benefits Section (Testimonials) */
#testimonials h2 { /* Título personalizado para esta sección */
    margin-bottom: 1.5rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    text-align: center;
}

.benefit-item {
    padding: 20px;
    background-color: var(--light-bg-color); /* Fondo para destacar */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.benefit-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.benefit-item h4 {
    color: var(--secondary-color); /* Títulos más claros */
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--dark-bg-color);
    text-align: center;
}

.cta-section h2 {
    color: var(--dark-bg-color);
}
.cta-section p {
    color: var(--dark-bg-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.cta-section .btn-secondary {
    border-color: var(--dark-bg-color);
}
.cta-section .btn-secondary:hover {
    background-color: var(--dark-bg-color);
    color: var(--secondary-color);
}


/* Footer */
footer {
    background-color: var(--dark-bg-color);
    color: var(--text-color);
    padding: 40px 0 20px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo, .footer-contact, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    margin-bottom: 10px;
}

.footer-logo p {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-contact h4, .footer-social h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.footer-contact p i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px; /* Para alinear iconos */
    text-align: center;
}
.footer-contact a {
    color: var(--text-color);
}
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-social a {
    color: var(--text-color);
    margin-right: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg-color);
    font-size: 0.9rem;
}

/* Responsive Design - Media Queries */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--dark-bg-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    #hero {
        height: auto;
        min-height: calc(100vh - var(--header-height));
        padding: 80px 20px 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-logo, .footer-contact, .footer-social {
        min-width: auto;
        width: 100%;
        margin-bottom: 20px;
    }
    .footer-social a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    h1 { font-size: 1.8rem; }
    #hero .slogan { font-size: 1.1rem; }
}