/* --- VARIABLES Y RESET --- */
:root {
    --primary-blue: #1a33d5; /* Azul Hera */
    --dark-blue: #0f1c75;
    --light-blue-bg: #dbeafe;
    --accent-yellow: #facc15; /* Amarillo para botones */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --text-gray: #4b5563;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9fafb;
    color: var(--text-dark);
    line-height: 1.6;
}

a { 
    text-decoration: none;
    transition: color 0.3s ease;
}

ul { list-style: none; }

/* --- ANIMATIONS --- */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HEADER --- */
header {
    display: flex;
    background-color: var(--white);
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

.logo-section {
    background-color: var(--light-blue-bg);
    width: 25%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom-right-radius: 60px;
    padding-right: 20px;
}

.logo-text {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1;
    position: relative;
    text-align: center;
}

.logo-text i {
    color: var(--accent-yellow);
    font-size: 0.8rem;
    position: absolute;
    top: 0;
    right: -12px;
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.contact-info, .social-info {
    display: flex;
    gap: 40px;
    align-items: center;
}

.social-info a { 
    color: white; 
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.social-info a:hover {
    transform: scale(1.1);
}

.nav-bar {
    padding: 0 40px;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 150px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--primary-blue); }
.nav-links a:hover::after {
    width: 100%;
}

.btn-track {
    background-color: var(--primary-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 200;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 40px;
    transition: all 0.3s ease;
}

.btn-track:hover {
    box-shadow: 0 4px 15px rgba(26, 51, 213, 0.4);
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, #1e3c72, #2a5298, #1d4ed8);
    background-size: 200% 200%;
    color: white;
    padding: 80px 10% 40px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: gradient-animation 10s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%);
    animation: fadeIn 2s forwards;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    animation: fadeIn 1s ease-out forwards;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-main {
    background-color: var(--accent-yellow);
    color: var(--dark-blue);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(250, 204, 21, 0.3);
}

.btn-main:hover { 
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.5);
}

.hero-features {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    transition: transform 0.3s ease;
}

.feature-item:hover img {
    transform: scale(1.05);
}

.feature-item i {
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    padding: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-item:hover i {
    background-color: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

/* --- SERVICIOS --- */
.services-contactanos {
    text-align: center;
    padding: 80px 10%;
}

.services-section {
    padding: 80px 10%;
    /*background-color: #1d4ed8;*/
    background: linear-gradient(135deg, #1e3c72, #2a5298, #1d4ed8);
    text-align: center;
}

.services-section h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.services-section-2 {
    padding: 80px 10%;
    /*background-color: #102DA7;*/
    background: linear-gradient(135deg, #1e3c72, #2a5298, #1d4ed8);
    text-align: center;
}

.services-section-2 h2 {
    color: #f9fafb;
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 500;
}

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

.services-grid img:hover {
    transform: translateY(-10px) scale(1.03);
    /*box-shadow: 0 15px 30px rgba(0,0,0,0.15);*/
}

/* --- BANNER RUTAS --- */
.stats-banner {
    padding: 60px 10%;
    text-align: center;
    background: #f4f7fc;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.stats-banner h2 { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.stats-banner p { 
    font-size: 1.2rem; 
    opacity: 0.9; 
    color: var(--text-light);
}

/* --- CONTACTO / FOOTER --- */
.form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 750px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 30px;
}

.form-group {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    color: #a5a5a5;
    margin-bottom: 8px;
    font-weight: 400;
    text-align: left;
}

.form-control {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 5px;
    font-size: 15px;
    color: #333;
    background-color: transparent;
    transition: border-color 0.3s;
    width: 100%;
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--primary-blue);
}

textarea.form-control {
    resize: vertical;
    height: 40px;
    min-height: 40px;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, #4e8eff, #3b76e8);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
    opacity: 1;
}

footer {
    background-color: #1d4ed8;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 50px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-contact-section {
    text-align: left;
    font-size: 14px;
}

.footer-contact-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-contact-section p {
    margin: 5px 0;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1) translateY(-2px);
    color: var(--accent-yellow);
}

.footer-bottom {
    background-color: #5095FB;
    padding: 15px 50px;
    font-size: 12px;
    text-align: center;
}

.float-wa{
    position:fixed;
    width:60px;
    height:60px;
    bottom:40px;
    right:40px;
    background-color:#25d366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:30px;
    z-index:100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


.quienes-somos {
    padding: 80px 10%;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
}

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

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.col-title, .col-mission, .col-vision {
    flex: 1;
}

.col-description, .col-image {
    flex: 1.2;
}

.section-label {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-yellow));
    margin-bottom: 30px;
    border: none;
}

.main-heading {
    font-size: 2.2rem;
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: #F3F3F3;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mission-text, .vision-text {
    text-align: center;
    max-width: 90%;
    margin: 0 auto 15px auto;
    color: #000000;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.image-wrapper img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.text-content {
    flex: 1;
    color: #000;
    text-align: left;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
}

.highlight-blue {
    color: #4A7AFF;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
}

.highlight-black {
    color: #000;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
}

.map-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 20px;
}


.language-selector {
    position: relative;
    display: inline-block;
}


.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector::after {
    content: '▼';
    font-size: 12px;
    color: var(--white);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#lang-switcher {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--primary-blue);
    border: 1px solid var(--white);
    border-radius: 5px;
    color: var(--white);
    padding: 5px 30px 5px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#lang-switcher:hover {
    background-color: var(--dark-blue);
    border-color: var(--accent-yellow);
}

#lang-switcher:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 5px rgba(250, 204, 21, 0.5);
}

#lang-switcher option {
    background-color: var(--primary-blue);
    color: white;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 1024px) {
    header {
        flex-direction: column;
        height: auto;
        position: static;
    }

    .logo-section {
        width: 100%;
        min-width: 0;
        border-bottom-right-radius: 0;
        padding: 20px 0;
    }

    .header-content {
        width: 100%;
    }

    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    .contact-info {
        gap: 20px;
    }

    .nav-bar {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .btn-track {
        margin-left: 0;
    }

    .hero {
        padding: 60px 5% 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .stats-banner {
        flex-direction: column;
        padding: 40px 5%;
    }

    .map-container {
        padding-left: 0;
        margin-top: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-logo-section, .footer-contact-section {
        align-items: center;
    }

    .footer-contact-section {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 30px;
    }

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

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

    .form-row {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-label {
        font-size: 2rem;
    }

    .main-heading {
        font-size: 1.8rem;
    }

    .highlight-blue, .highlight-black {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .services-section-2 h2 {
        font-size: 1.5rem;
    }

    .float-wa {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}
