/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #061135;        /* Color principal de texto */
    --secondary-color: #0a2be9;      /* Color secundario/acento */
    --accent-color: #dc2626;         /* Color de acento (rojo - no usado) */
    --light-bg: #e2e4f2;             /* Fondo general */
    --contact-bg: #d1d5e5;           /* Fondo sección contacto */
    --clients-bg: #061135;           /* Fondo sección clientes */
    --light-color: #ffffff;          /* Texto claro */
    --dark-color: #061135;           /* Texto oscuro (mismo que primary) */
    --gray-color: #4b5563;           /* Texto gris */
    --light-gray: #9ca3af;           /* Bordes grises claros */
    --border-radius: 50px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth; /* Esto hace la magia del desplazamiento suave */
    scroll-padding-top: 100px; /* Esto evita que el menú tape el título de la sección */
}

/* Importar Open Sans para fallback */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');

/* Font Face para LEMONMILK (títulos) */
@font-face {
    font-family: 'LEMONMILK';
    src: url('../fonts/LEMONMILK-Regular.woff2') format('woff2'),
         url('../fonts/LEMONMILK-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LEMONMILK';
    src: url('../fonts/LEMONMILK-Bold.woff2') format('woff2'),
         url('../fonts/LEMONMILK-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'LEMONMILK';
    src: url('../fonts/LEMONMILK-Light.woff2') format('woff2'),
         url('../fonts/LEMONMILK-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'LEMONMILK';
    src: url('../fonts/LEMONMILK-Medium.woff2') format('woff2'),
         url('../fonts/LEMONMILK-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

/* Font Face para RUTAN (texto general) */
@font-face {
    font-family: 'Rutan';
    src: url('../fonts/rutan-regular.woff2') format('woff2'),
         url('../fonts/rutan-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rutan';
    src: url('../fonts/rutan-bold.woff2') format('woff2'),
         url('../fonts/rutan-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Rutan';
    src: url('../fonts/rutan-light.woff2') format('woff2'),
         url('../fonts/rutan-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Rutan';
    src: url('../fonts/rutan-medium.woff2') format('woff2'),
         url('../fonts/rutan-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

/* Estilos base del body con Rutan */
body {
    font-family: 'Rutan', 'Open Sans', sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-bg);
    font-weight: normal;
}

/* Títulos con LEMONMILK */
h1, h2, h3, h4, h5, h6 {
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
    font-weight: 500; /* Medium para títulos */
    line-height: 1.3;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Texto general con Rutan */
p, span, a:not(.nav-menu a), li:not(.nav-menu li), 
.section-description, .servicio-card p, .solucion-card p,
.testimonio-text p, .testimonio-author p,
.form-group input, .form-group select,
.footer-logo p, .footer-contact p, .footer-bottom p,
.blog-excerpt, .blog-meta,
.btn-primary, .btn-secondary {
    font-family: 'Rutan', 'Open Sans', sans-serif;
}

/* Botones específicos (pueden mantener LEMONMILK si prefieres) */
.btn-primary, .btn-secondary {
    font-family: 'LEMONMILK', 'Rutan', 'Montserrat', sans-serif;
    letter-spacing: -0.3px;
}

/* Menú de navegación con LEMONMILK */
.nav-menu a {
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
    letter-spacing: -0.3px;
}

/* Logo */

.logo{
        margin-top: 8px;
}

/* Labels del formulario con LEMONMILK */
.form-group label {
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
}

/* Footer títulos con LEMONMILK */
.footer-contact h4, .footer-social h4 {
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
}

/* Ajustes específicos para texto Rutan */
.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto 50px;
    font-weight: normal;
}

.servicio-card p, .solucion-card p {
    color: var(--gray-color);
    line-height: 1.8;
    font-weight: normal;
}

.testimonio-text p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.8;
    margin-bottom: 0;
    font-weight: normal;
}

.testimonio-author p {
    color: var(--gray-color);
    font-size: 0.95rem;
    font-weight: normal;
}

/* Resto del CSS se mantiene igual... */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* ... resto del CSS se mantiene igual desde aquí ... */

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto 50px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



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

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

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
    letter-spacing: -0.3px;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    background: 
        /* Gradiente solo en la mitad izquierda */
        linear-gradient(
            to right,
            rgba(6, 17, 53, 0.85) 0%,
            rgba(6, 17, 53, 0.8) 50%,
            transparent 50%,
            transparent 100%
        ),
        /* Imagen de fondo */
        url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: left;
    padding: 180px 0 100px;
    margin-top: 70px;
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
}

.hero-content {
    width: 50%; /* Ocupa solo la mitad izquierda */
    padding-right: 60px; /* Espacio antes del centro */
    padding-left: 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: white;
    letter-spacing: -1px;
    line-height: 1.2;
    text-align: left;
    max-width: 600px;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin: 0 0 40px 0;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    line-height: 1.6;
    max-width: 550px;
}

.hero .btn-primary {
    display: inline-block;
    text-align: center;
    margin: 0;
}

/* Features Section - CORREGIDO */
.features {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
     padding: 30px 20px;
}


.feature-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Expertos Section */
.expertos {
    padding: 0 0 80px 0;
    background-color: white;
}

/* Encabezado con imagen de fondo y gradiente completo */
.expertos-header {
    background: 
        linear-gradient(
            rgba(6, 17, 53, 0.85),
            rgba(6, 17, 53, 0.8)
        ),
        url('../assets/expertos-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    margin-bottom: 80px;
}

.expertos-header .section-title {
    color: white;
    text-align: center;
    margin-bottom: 25px;
}

.expertos-header .section-title::after {
    margin: 10px auto 30px auto;
    background: white;
}

.expertos-header-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.expertos-header .section-description {
    text-align: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Cards con imágenes - Sin fondo ni bordes redondeados */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 0;
}

.servicio-card {
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.servicio-card:hover .servicio-img img {
    transform: scale(1.03);
}

.servicio-content {
    padding: 0;
}

.servicio-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-weight: 500;
}

.servicio-content p {
    color: var(--gray-color);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}
/* Testimonios Section */
.testimonios {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 50px;
}

.testimonio-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonio-img {
    margin-bottom: 25px;
}

.testimonio-img img {
    width: 89px;
    height: 89px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonio-text {
    margin-bottom: 25px;
}

.testimonio-text p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.8;
    margin-bottom: 0;
}

.testimonio-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
}

.testimonio-author p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Clientes Section */
.clientes {
    padding: 80px 0;
    background-color: var(--clients-bg);
}

.clientes .section-title {
    color: white;
}

.clientes .section-title::after {
    background: white;
}

.clientes-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-top: 50px;
}

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

.cliente-logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1); /* Convierte logos a blanco */
    opacity: 0.9;
    transition: var(--transition);
}

.cliente-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Soluciones Section */
.soluciones {
    padding: 80px 0;
  
}

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.solucion-card {
    padding: 50px 40px;
    position: relative;
}


/* Eliminar íconos - solo texto */
.solucion-icon {
    display: none;
}

.solucion-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 15px;
    padding-left: 10px;
}

.solucion-card h3::after {
    content: '';
    position: absolute;
    bottom: 20;
    left: 0;
    width: 3px;
    height: 30px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.solucion-card p {
    color: var(--gray-color);
    line-height: 1.8;
    font-size: 1rem;
}
/* Contacto Section - MODIFICADA */
.contacto {
    padding: 80px 0;
    background-color: var(--contact-bg);
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;

}

.form-row {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 0; /* Solo padding vertical */
    border: none;
    border-bottom: 2px solid var(--light-gray);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-color);
    transition: var(--transition);
    background-color: transparent;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-bottom-color: var(--secondary-color);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061135' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0px center;
    background-size: 20px;
    padding-right: 25px;
    cursor: pointer;
}

.form-submit {
    text-align: center;
    margin-top: 50px;
}

.btn-submit {
    min-width: 180px;
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.blog-image {
    height: 200px;
    background-color: var(--light-gray);
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.blog-excerpt {
    color: var(--gray-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-link {
    text-align: center;
    margin-top: 50px;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
}

.spinner {
    border: 4px solid rgba(6, 17, 53, 0.1);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    
    color: var(--primary-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}


.footer-contact h4, .footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    font-family: 'LEMONMILK', 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-social {
    width: 100%;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    gap: 20px; /* Espacio entre los íconos */
    justify-content: center; /* Centra los íconos dentro del contenedor */
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Tamaño uniforme */
    height: 50px;
    
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.3rem; /* Tamaño del ícono */
}

.social-icons a:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
}


.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Ajustes para el menú de 4 elementos - Blog normal */
.nav-menu a.blog-link {
    color: var(--primary-color);
}

.nav-menu a.blog-link:hover {
    color: var(--secondary-color);
}