/* --- CONFIGURACIÓN GENERAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container .logo-img {
    height: 80px;
    width: auto;
}

nav a {
    text-decoration: none;
    color: #003366;
    font-weight: 600;
    margin-left: 20px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #0055a5;
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f4f7f9 0%, #e9eff4 100%);
}

.hero-logo {
    height: 180px;
    width: auto;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #555555;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #003366;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #002244;
}

.btn-secondary {
    background-color: transparent;
    color: #003366;
    border: 2px solid #003366;
}

.btn-secondary:hover {
    background-color: #003366;
    color: #ffffff;
}

/* --- SECCIONES REUTILIZABLES --- */
.section {
    padding: 60px 5%;
}

.section.gray {
    background-color: #f8f9fa;
}

.section h2 {
    font-size: 2rem;
    color: #003366;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #003366;
    margin: 10px auto 0 auto;
}

.section p {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    text-align: center;
    color: #444444;
}

.subsection-title {
    font-size: 1.5rem;
    color: #003366;
    text-align: center;
    margin: 50px 0 25px 0;
}

/* --- DISEÑO DE TARJETAS (CARDS GRID) --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
}

.card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #003366;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #003366;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    font-size: 0.95rem;
    color: #666666;
    text-align: left;
    margin: 0;
}

/* Bordes personalizados según función */
.value-card {
    border-top: none;
    border-left: 4px solid #003366;
}

.benefit-card {
    border-top: none;
    border-left: 4px solid #28a745; /* Verde corporativo de éxito */
}

.benefit-card h3 {
    color: #28a745;
}

/* --- COBERTURA REGIONAL --- */
.locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 30px auto 0 auto;
}

.locations span {
    background-color: #e9eff4;
    color: #003366;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- CONTACTO --- */
.contact {
    padding: 60px 5%;
    background-color: #003366;
    color: #ffffff;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.contact-item {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
}

.contact a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.contact a:hover {
    color: #e9eff4;
}

/* --- FOOTER --- */
footer {
    background-color: #001f3f;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVIDAD (MOBILE) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    nav a {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
