/* Reset Básico y Tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    padding-top: 75px; /* Espacio para el header fijo */
}

/* Variables de Color Corporativo */
:root {
    --navy: #0A1128;
    --blue: #0066FF;
    --blue-dark: #0052cc;
    --whatsapp: #25D366;
    --light-bg: #f1f5f9;
}

/* Encabezado y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--blue);
}

.btn-header {
    background-color: var(--blue);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 6px;
}

.btn-header:hover {
    background-color: var(--blue-dark);
}

/* Botón Hamburguesa */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 2px 0;
    background-color: var(--navy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Responsive Navigation (Mobile) */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding: 24px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* Hero Section */
.hero {
    background-color: #0f172a;
    color: #ffffff;
    text-align: center;
    padding: 80px 24px;
}

.hero-container {
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(0, 102, 255, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(0, 102, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.2rem;
    }
}

.hero p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Botones Generales */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--blue-dark);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: #1eb954;
}

.btn-block {
    width: 100%;
}

/* Secciones Generales */
.section {
    padding: 80px 24px;
}

.bg-white {
    background-color: #ffffff;
}

.bg-light {
    background-color: var(--light-bg);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-subtitle {
    color: #64748b;
    max-width: 650px;
    margin: 0 auto;
}

/* Sobre Nosotros */
.about-content {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #475569;
}

.about-content p {
    margin-bottom: 16px;
    text-align: justify;
}

/* Tarjetas de Servicios */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background: #ffffff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 16px;
}

.card-list {
    list-style: none;
    font-size: 0.8rem;
    color: #475569;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: auto;
}

.card-list li {
    margin-bottom: 8px;
}

/* Formulario */
.contact-form {
    background: #f8fafc;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
}

/* Footer */
.footer {
    background-color: var(--navy);
    color: #94a3b8;
    padding: 32px 24px;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

.text-center {
    text-align: center;
}

.footer a {
    color: #ffffff;
    text-decoration: underline;
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--whatsapp);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Bordes Claros Profesionales para los 4 Pilares */
.services-grid .card:nth-child(1) {
    border: 2px solid #e0f2fe; /* Azul Cielo Claro */
    border-top: 4px solid #0284c7; /* Acento superior */
}
.services-grid .card:nth-child(1):hover {
    border-color: #bae6fd;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.12);
}

.services-grid .card:nth-child(2) {
    border: 2px solid #d1fae5; /* Verde Esmeralda Claro */
    border-top: 4px solid #10b981; /* Acento superior */
}
.services-grid .card:nth-child(2):hover {
    border-color: #a7f3d0;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.12);
}

.services-grid .card:nth-child(3) {
    border: 2px solid #e0e7ff; /* Índigo Claro */
    border-top: 4px solid #6366f1; /* Acento superior */
}
.services-grid .card:nth-child(3):hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12);
}

.services-grid .card:nth-child(4) {
    border: 2px solid #ffedd5; /* Naranja/Ámbar Claro */
    border-top: 4px solid #f97316; /* Acento superior */
}
.services-grid .card:nth-child(4):hover {
    border-color: #fed7aa;
    box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.12);
}