/* ============================================================================
   VARIABLES Y COLORES INSTITUCIONALES
   ============================================================================ */

:root {
    --primary-blue: #1D3A56;
    --accent-orange: #F28C27;
    --accent-green: #2CA44F;
    --light-gray: #F8F9FA;
    --dark-gray: #212529;
    --text-muted: #6C757D;
}

/* ============================================================================
   GENERAL
   ============================================================================ */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-blue);
}

a {
    transition: all 0.3s ease;
}

/* ============================================================================
   NAVBAR
   ============================================================================ */

.navbar {
    border-bottom: 1px solid #e9ecef;
}

.navbar-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 36px;
    }
}

.navbar-nav .nav-link {
    color: var(--dark-gray) !important;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-orange) !important;
}

/* Botón CTA en navbar */
.btn-cta {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
}

.btn-cta:hover {
    background-color: #e67e1f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 140, 39, 0.3);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-gray) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Badges de servicios */
.badge-service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-weight: 500;
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.badge-service:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(242, 140, 39, 0.15);
}

.badge-service i {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

/* ============================================================================
   SECCIONES
   ============================================================================ */

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
}

/* ============================================================================
   QUIÉNES SOMOS - PILARES
   ============================================================================ */

.card-pillar {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card-pillar:hover {
    box-shadow: 0 8px 24px rgba(29, 58, 86, 0.1);
    transform: translateY(-4px);
}

.pillar-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-orange), #f5a660);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.card-pillar .card-title {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ============================================================================
   SERVICIOS
   ============================================================================ */

.service-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(29, 58, 86, 0.15);
    border-color: var(--accent-orange);
    transform: translateY(-4px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), #2d5a8c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 20px;
}

.service-card .card-title {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card .list-unstyled li {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card .list-unstyled i {
    margin-right: 8px;
}

/* ============================================================================
   PRODUCTOS
   ============================================================================ */

.product-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.benefit-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 4px 12px rgba(44, 164, 79, 0.15);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

/* ============================================================================
   FORMULARIO DE CONTACTO
   ============================================================================ */

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
    .contact-form {
        padding: 20px;
    }
}

.form-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.2rem rgba(242, 140, 39, 0.15);
}

.btn-outline-success {
    border-color: var(--accent-green);
    color: var(--accent-green);
    font-weight: 600;
}

.btn-outline-success:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.95);
}

footer h5 {
    color: white;
    font-weight: 600;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-orange) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   UTILIDADES Y ESTILOS GENERALES
   ============================================================================ */

/* Espaciado */
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 992px) {
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Botones */
.btn-lg {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 58, 86, 0.3);
}

/* Fondos */
.bg-light {
    background-color: var(--light-gray) !important;
}

.bg-dark {
    background-color: #0a1929 !important;
}

/* Separador */
hr {
    opacity: 0.2;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row.g-4 > * {
        padding: 12px;
    }

    .d-flex.gap-3 {
        gap: 12px !important;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .d-flex.gap-3.flex-column.flex-sm-row {
        flex-direction: column;
    }

    .navbar-nav .nav-link {
        margin: 0;
        padding-bottom: 0.5rem;
    }
}

/* ============================================================================
   ANIMACIONES
   ============================================================================ */

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

.card {
    animation: fadeIn 0.5s ease-out;
}

/* ============================================================================
   ACCESIBILIDAD
   ============================================================================ */

/* Asegurar contraste adecuado */
a {
    color: var(--accent-orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Skip to main content link (opcional) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-orange);
    color: white;
    padding: 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}
