/* Restablecer estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', Georgia, Cambria, serif;
}

body {
    background-color: #f9f4f4;
    color: #333333;
}

/* Contenedor principal */
.grid-container {
    display: grid;
    grid-template-rows: auto auto auto auto auto auto auto;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px;
}

/* Estilos generales para todas las filas */
.fila {
    background-color: #ffffff;
    padding: 1px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    margin-bottom: 1px;
}

.fila:last-child {
    margin-bottom: 0;
}

/* ==================== HEADER ==================== */
#fila1-header {
    background: #0a2b3e;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    gap: 20px;
}

.header-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

.header-menu ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.header-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.header-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Menú activo - resaltado */
.header-menu a.activo {
    border-bottom: 1px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==================== HERO ==================== */
#fila2-hero {
    background: #0e3f5d;
    border-left: 5px solid #0284c7;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4%;
    padding-bottom: 40px;
    margin-bottom: 40px;

}

.hero-texto {
    width: 55%;
    color: #ffffff;
}

.hero-texto h2 {
    font-size: 36px;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-texto .texto-pequeno {
    font-size: 16px;
    color: #e0f2fe;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-texto .texto-mediano {
    font-size: 20px;
    color: #ffffff;
    line-height: 1.4;
}

#fila2-hero>div:last-child {
    width: 40%;
    display: flex;
    justify-content: center;
}

#fila2-hero img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
}

/* ==================== SERVICIOS ==================== */
#fila3-servicios h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #0e3f5d;
}

#fila3-servicios .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 15px;
}

.card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    color: #0a2b3e;
    margin-bottom: 15px;
}

.card h3 img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.card p {
    font-size: 16px;
    line-height: 1.5;
    color: #475569;
}

/* Grid 2 columnas para casos */
#fila3-servicios .cards.grid-casos {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
}

/* Borde azul para tarjetas de casos */
.grid-casos .card {
    border-left: 5px solid #0284c7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Grid 3 columnas para consultoría */
#fila3-servicios .card-consulta {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
}

.card-consulta .card {
    border-left: 5px solid #0284c7;
}

/* ==================== INFO ==================== */
#fila4-info {
    background: #0e3f5d;
    text-align: center;
}

#fila4-info .tablas {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

#fila4-info .tabla {
    background: transparent !important;
    padding: 0;
    text-align: left;
    flex: 1;
}

#fila4-info .tabla img {
    max-width: 100%;
    height: auto;
}

#fila4-info h2 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 20px;
}

#fila4-info p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #ffffff;
}

/* ==================== CTA ==================== */
#fila5-cta {
    background: #ffffff;
    color: #0a2b3e;
    text-align: center;
}

#fila5-cta h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #0a2b3e;
}

#fila5-cta p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #0a2b3e;
}

.btn {
    background-color: #0e3f5d;
    color: white;
    border: none;
    padding: 12px 12px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #94a3b8;
    transform: scale(1.05);
    color: #0a2b3e;
}

/* ==================== FOOTER ==================== */
#fila7-footer {
    background-color: #0a2b3e;
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

/* Esto cambia el color de los enlaces dentro del footer */
footer a {
    color: #cbd5e1;
    /* Un color gris claro/celeste muy legible */
    text-decoration: underline;
    /* Mantiene la línea abajo para saber que es un link */
}

/* Esto cambia el color cuando pasas el mouse por encima */
footer a:hover {
    color: #ffffff;
    /* Se vuelve blanco brillante */
}

/* ==================== TABLAS (Múltiples columnas) ==================== */
.tablas {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    color: #e0f2fe;
}

.tablas .tabla {
    flex: 1;
    min-width: 220px;
    padding: 20px;
    border-radius: 8px;
}

.tablas .tabla img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Colores para las tablas (sección 4 de index) */
.tablas .tabla:nth-child(1) {
    background-color: #0e3f5d;
}

.tablas .tabla:nth-child(2) {
    background-color: #0e3f5d;
}

.tablas .tabla:nth-child(3) {
    background-color: #0e3f5d;
}

.tablas .tabla:nth-child(4) {
    background-color: #0e3f5d;
}

/* ==================== CLASES PARA INDEX.HTML ==================== */
.bloques-verticales {
    display: flex;
    flex-direction: row;
    gap: 1px;
    padding-bottom: 40px;
    /* ← separa los bloques del fondo del contenedor */
}

.bloque-azul {
    background: #ffffff;
    color: #0a2b3e;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.bloque-azul h3 {
    color: black;
    margin-bottom: 15px;
}

.bloque-azul p {
    color: #0a2b3e;
    text-align: left;
}

.fondo {
    background-color: #0a2b3e;
}

.titulo-centrado {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.titulo-centrado h2 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 1px;
}

.titulo-centrado p {
    font-size: 18px;
    color: #ffffff;
}

.fila5-contenido {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0px;
    padding-bottom: 40px;
    /* ← separa los bloques del fondo del contenedor */
}

.fila5-texto {
    flex: 1;
    text-align: center;
}

.fila5-texto h2 {
    color: white;
    margin-bottom: 15px;

}

.fila5-texto p {
    color: white;
}

.fila5-boton {
    flex: 1;
    text-align: center;
}

/* ==================== SOFTWARE.HTML ==================== */
.btn-software {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0a2b3e;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-software:hover {
    background-color: #0e3f5d;
    transform: translateY(-2px);
}

/* ==================== FORMULARIO DE CONTACTO ==================== */
.form-contacto {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0a2b3e;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* Info contacto */
.info-contacto {
    margin-top: 1rem;
}

.info-contacto p {
    margin-bottom: 1rem;
    font-size: 15px;
}

.info-contacto a {
    color: #0284c7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-contacto a:hover {
    color: #0e3f5d;
    text-decoration: underline;
}

/* ==================== MENÚ HAMBURGUESA ==================== */
.menu-checkbox {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .grid-container {
        max-width: 1200px;
        padding: 15px;
    }

    .fila {
        padding: 30px 25px;
    }

    .hero-texto h2 {
        font-size: 30px;
    }

    .hero-texto .texto-mediano {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .grid-container {
        padding: 10px;
        gap: 15px;
    }

    .fila {
        padding: 25px 20px;
    }

    .menu-icon {
        display: flex;
    }

    .header-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0e3f5d;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 1000;
    }

    .header-menu ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }

    .header-menu li {
        width: 100%;
        text-align: center;
    }

    .header-menu a {
        display: block;
        padding: 10px;
        font-size: 18px;
    }

    .menu-checkbox:checked~.header-menu {
        max-height: 400px;
    }

    .menu-checkbox:checked~.menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-checkbox:checked~.menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked~.menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    #fila1-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .header-logo {
        max-height: 60px;
    }

    .header-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .header-menu a {
        font-size: 16px;
        padding: 6px 12px;
    }

    #fila2-hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }

    .hero-texto {
        width: 100%;
    }

    .hero-texto h2 {
        font-size: 28px;
    }

    .hero-texto .texto-pequeno {
        font-size: 14px;
    }

    .hero-texto .texto-mediano {
        font-size: 16px;
    }

    #fila2-hero>div:last-child {
        width: 100%;
    }

    #fila2-hero img {
        width: 60%;
        max-width: 250px;
    }

    #fila3-servicios .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #fila3-servicios .cards.grid-casos {
        grid-template-columns: 1fr !important;
    }

    #fila3-servicios .card-consulta {
        grid-template-columns: 1fr !important;
    }

    #fila3-servicios h2 {
        font-size: 28px;
    }

    .card h3 {
        font-size: 20px;
    }

    #fila4-info .tablas {
        flex-direction: column;
        text-align: center;
    }

    #fila4-info .tabla {
        text-align: center;
    }

    #fila4-info h2 {
        font-size: 28px;
    }

    #fila4-info p {
        font-size: 16px;
    }

    #fila5-cta h2 {
        font-size: 24px;
    }

    #fila5-cta p {
        font-size: 16px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    .fila5-contenido {
        flex-direction: column;
        text-align: center;
    }

    .fila5-texto {
        text-align: center;
    }

    .fila5-boton {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .fila {
        padding: 20px 15px;
    }

    .hero-texto h2 {
        font-size: 24px;
    }

    .header-menu a {
        font-size: 14px;
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
    }
}

/* Separar sección 3 de sección 4 */
section.fila:nth-of-type(3) {
    margin-bottom: 50px;
}

.fondo {
    background-color: #0a2b3e;
    padding-bottom: 40px;
    /* ← separa los bloques del fondo del contenedor */
}


/* 00000000000000000000000000000000000 */
/* Fondo oscuro que cubre la pantalla */
.modal-background {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    backdrop-filter: blur(4px);
    /* Efecto difuminado de fondo */
    z-index: 1000;
}

/* La tarjeta blanca flotante */
.modal-contenido {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 12px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: sans-serif;
}

/* Botón para cerrar (X) */
.modal-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.modal-cerrar:hover {
    color: #333;
}

/* Estilo del texto y enlace de unDraw dentro de la ventana */
.credito-undraw {
    font-size: 12px;
    color: #666;
    margin-top: 20px;
}

.credito-undraw a {
    color: #0066cc;
    /* Azul legible sobre el fondo blanco del modal */
    text-decoration: underline;
}