/* styles.css - JAMFER Tecnología científica y limpia */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-fondo: #ffffff;
    --color-texto: #1a1f2e;
    --color-secundario: #4d5466;
    --color-acento: #001F54;
    --color-acento-claro: #003d99;
    --color-acento-suave: #EFF5FF;
    --color-acento-gradiente: linear-gradient(135deg, #001F54 0%, #003d99 100%);
    --color-borde: #e1e6ed;
    --fuente-principal: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ancho-max: 1200px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --header-height: 70px;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-principal);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: var(--ancho-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Tipografía */
h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: var(--color-secundario);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--border-radius-md);
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-acento {
    background-color: var(--color-acento);
    color: white;
    border-color: var(--color-acento);
}

.btn-acento:hover {
    background-color: var(--color-acento-claro);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--color-acento);
    color: var(--color-acento);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-acento);
    color: white;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-borde);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-imagen {
    height: 45px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    align-items: center;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-texto);
    transition: color 0.2s;
}

nav a:hover {
    color: var(--color-acento);
}

/* Hero */
.hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #F8FAFF 0%, #FFFFFF 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-content p {
    font-size: 1rem;
    color: var(--color-secundario);
    margin: 1rem 0 1.5rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    box-shadow: var(--shadow-md);
}

/* Secciones */
section {
    padding: 3rem 0;
}

.bg-light {
    background-color: #F9FAFB;
}

/* Tarjetas */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--color-borde);
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-acento-claro);
}

.card-icon {
    font-size: 2rem;
    color: var(--color-acento);
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-acento);
    text-decoration: none;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    background: var(--color-acento-suave);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: var(--color-acento);
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info {
    background: var(--color-acento-gradiente);
    padding: 2rem;
    color: white;
}

.contact-info h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-details {
    margin: 1.5rem 0;
}

.contact-details p {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-borde);
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-acento);
    box-shadow: 0 0 0 2px rgba(0, 31, 84, 0.1);
}

/* Footer */
footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #9CA3AF;
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #1F2937;
    font-size: 0.8rem;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
}

.menu-overlay {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--color-texto);
        margin: 5px 0;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        padding: 5rem 1.5rem;
        transition: 0.3s;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .menu-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }
    
    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1.2rem;
    }
}

/* Ajustes para laptops */
@media (min-width: 1024px) and (max-width: 1366px) {
    :root {
        --ancho-max: 1100px;
    }
    
    .hero {
        padding: 2rem 0 1.5rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .cards-grid {
        gap: 1.2rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    h2 {
        margin-bottom: 0.5rem;
    }
}