/* ==========================================
   1. RESET AND BASE CONFIGURATION
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 70px; 
    background-color: #ffffff;
    color: #333333;
}

/* ==========================================
   2. FIXED TOP MENU (HEADER)
   ========================================== */
.fixed-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; 
    background-color: #ffffff; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    z-index: 1000; 
    display: flex;
    justify-content: center; 
}

.fixed-menu .content-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 40px !important; /* Fixed alignment axis line */
    margin: 0 auto !important;
}

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

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #555555;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: #436da7; 
}

/* ==========================================
   3. BLOCK STRUCTURE (FULL WIDTH)
   ========================================== */
.block {
    width: 100%;
    min-height: auto; 
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 70px; 
}

.content-container {
    max-width: 1200px !important; 
    width: 100% !important;
    margin: 0 auto !important;    
    padding: 0 40px !important; /* Perfect mirror alignment with the header logo */
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

ul {
    padding-left: 50px;   /* Da el espacio perfecto para que los puntos queden alineados */
    margin-bottom: 30px;  /* Separa la lista del siguiente bloque o footer */
}

ul li {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
}

.btn-contact {
    padding: 14px 30px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #436da7; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   4. COLORS AND BLOCK PERSONALIZATION
   ========================================== */
.hero {
    background-color: #031f40; 
    color: #ffffff;
    padding: 40px 0; 
}

.services {
    background-color: #f8f9fa; 
    color: #333333;
    padding: 80px 0; 
}

.cta {
    background-color: #436da7; 
    color: #ffffff;
    padding: 80px 0; 
}

.cta .btn-contact {
    background-color: #ffffff;
    color: #436da7;
}

.orange-highlight {
    background-color: #ff7a00; 
    color: #ffffff;
    padding: 80px 0; 
}

.orange-highlight .btn-orange {
    padding: 14px 30px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #ff7a00; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.orange-highlight .btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   5. CARDS GRID LAYOUT (4 BALANCED COLUMNS)
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    margin-top: 20px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card h3 {
    font-size: 1.4rem;
    color: #031f40; 
    font-weight: 600;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-card {
    padding: 10px 20px;
    background-color: #436da7; 
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    align-self: flex-start; 
    transition: background-color 0.2s ease;
}

.btn-card:hover {
    background-color: #031f40; 
}

/* ==========================================
   6. FOOTER
   ========================================== */
.footer {
    background-color: #1a1a1a; 
    color: #b3b3b3; 
    padding: 60px 20px 20px 20px;
    width: 100%;
}

.footer-container {
    max-width: 1200px !important; /* Fuerza el mismo ancho máximo que el contenido */
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 40px 40px 40px !important; /* Aplica los 40px laterales idénticos al header y contenido */
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid #333333; 
}

.footer-column {
    flex: 1;
    min-width: 250px; 
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #436da7; 
}

.footer-bottom {
    max-width: 1200px !important; /* Alinea también la línea de copyright abajo */
    width: 100% !important;
    margin: 20px auto 0 auto !important;
    padding: 0 40px !important; /* Refleja el mismo eje visual */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.85rem; 
    color: #b3b3b3;
}

.legal-links a {
    color: #888888;
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.85rem; 
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ffffff;
}

.footer-logo {
    margin-bottom: 20px;
    display: block;
}

.footer-logo img {
    height: 55px;
    width: auto;
    display: block;
}

/* ==========================================
   7. RESPONSIVE NAVIGATION (MOBILE BREAKPOINTS)
   ========================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex; 
    }

    .nav-menu {
        display: none; 
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.open {
        display: block; 
    }

    .nav-menu ul {
        flex-direction: column; 
        align-items: center;
        width: 100%;
    }

    .fixed-menu ul li {
        margin: 15px 0; 
        margin-left: 0; 
    }

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

/* ==========================================
   8. PIPELINE SCORES (2 COLUMNS LAYOUT)
   ========================================== */
.scores-container {
    display: flex;
    flex-direction: row;
    gap: 30px; /* Espacio de separación entre las dos tarjetas */
    margin: 40px 0;
    width: 100%;
}

.score-card {
    flex: 1; /* Hace que ambas columnas midan exactamente lo mismo de alto y ancho */
    background-color: #f8f9fa; /* Gris claro a juego con tu sección .services */
    padding: 35px 30px;
    border: 1px solid #e2e8f0; /* Borde sutil idéntico al de tus otras .card */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.score-card h2 {
    text-align: center;   /* Centra el título horizontalmente en la tarjeta */
    font-size: 1.8rem;
    color: #031f40;       /* Tu azul oscuro corporativo */
    font-weight: 600;
    margin-bottom: 20px;  /* Espacio de separación con el párrafo de abajo */
}
.score-card p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* El último párrafo de la tarjeta no necesita margen inferior */
.score-card p:last-child {
    margin-bottom: 0;
}

/* Adaptación para pantallas móviles (idéntico a tu breakpoint de 768px) */
@media screen and (max-width: 768px) {
    .scores-container {
        flex-direction: column; /* Se apilan una debajo de otra en móvil */
        gap: 20px;
    }
}

/* ==========================================
   9. PIPELINE ICONS CONFIGURATION
   ========================================== */
.icon-score {
    width: 65px;          /* Aumentado de 44px a 65px para mayor impacto visual */
    height: 65px;
    stroke: #031f40;      /* Tu azul oscuro corporativo */
    stroke-width: 1.5px;  /* Línea ligeramente más fina para mantener la elegancia al ser más grande */
    margin: 0 auto 25px auto; /* Centra horizontalmente (auto izquierda/derecha) y da espacio abajo */
    display: block;       /* Necesario para que funcione el centrado con 'margin auto' */
}