/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #b8361a;
    --color-accent-light: #2c3e50;
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-background: #ffffff;
    --color-background-alt: #f8f9fa;
    --color-border: #ecf0f1;
    --color-orange: #f39c12;
    
    /* Nuevas variables para tipografía */
    --font-typewriter: 'JetBrains Mono', 'Source Code Pro', 'Roboto Mono', 'Courier New', monospace;
    --font-elegant: 'Georgia', 'Times New Roman', serif;
}

/* Tipografía base */
body {
    font-family: var(--font-elegant);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-background);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
header {
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

/* LOGO CON CURSOR PARPADEANTE */
.logo {
    font-family: var(--font-typewriter);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    position: relative;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--color-accent-light);
    letter-spacing: 0px;
}

/* Cursor parpadeante */
.logo::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--color-accent);
    margin-left: 4px;
    animation: blink 1.5s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* El cursor también cambia de color en hover */
.logo:hover::after {
    background: var(--color-accent-light);
}

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

.nav-menu a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

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

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    background: var(--color-background);
}

.hero h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.3;
    color: var(--color-primary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    color: var(--color-text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: transparent;
    color: var(--color-accent);
    padding: 15px 35px;
    text-decoration: none;
    border: 1px solid var(--color-accent);
    font-weight: 400;
    transition: all 0.3s ease;
    margin: 10px;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--color-accent);
    color: var(--color-background);
}

.cta-white {
    background: var(--color-accent);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 400;
    border: none;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cta-white:hover {
    background: var(--color-accent-light);
}

/* Sectores Destacados */
.sectores-destacados {
    padding: 100px 0;
    background: var(--color-background-alt);
}

.sectores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.sector-card {
    background: var(--color-background);
    padding: 50px 40px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.sector-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 54, 26, 0.15);
}

.sector-card h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--color-primary);
    font-weight: 400;
}

.sector-card p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.sector-list {
    list-style: none;
    margin-bottom: 35px;
}

.sector-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--color-text);
    font-size: 15px;
}

.sector-list li:before {
    content: '—';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: 300;
}

/* Secciones generales */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 80px;
    line-height: 1.7;
}

/* Por qué Javier */
.por-que-javier {
    background: var(--color-background);
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 80px;
}

.ventaja-item {
    text-align: center;
    padding: 40px 20px;
}

.ventaja-numero {
    font-size: 48px;
    font-weight: 300;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.ventaja-item h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-weight: 400;
}

.ventaja-item p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Servicios */
.servicios {
    background: var(--color-background-alt);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.servicio-card {
    background: var(--color-background);
    padding: 40px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.servicio-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 54, 26, 0.15);
}

.servicio-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-weight: 400;
}

.servicio-card p {
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.servicio-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.servicio-link:hover {
    text-decoration: underline;
}

/* Especialización en IA */
.ai-highlight {
    background: var(--color-primary);
    color: white;
    padding: 50px 40px;
    margin: 60px 0;
    text-align: center;
}

.ai-highlight h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 24px;
}

.ai-highlight p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Reconocimientos */
.reconocimientos {
    background: var(--color-primary);
    color: var(--color-background);
}

.reconocimientos .section-title {
    color: var(--color-background);
}

.reconocimientos .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.reconocimientos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-top: 80px;
}

.reconocimiento-item {
    text-align: center;
    padding: 30px 20px;
}

.reconocimiento-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--color-background);
    font-weight: 400;
}

.reconocimiento-item p {
    opacity: 0.8;
    font-size: 15px;
    line-height: 1.6;
}

/* CTA Final */
.cta-final {
    background: var(--color-background-alt);
    padding: 80px 0;
    text-align: center;
}

.cta-final h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-weight: 300;
}

.cta-final p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: var(--color-secondary);
    color: var(--color-background);
    padding: 80px 0 40px;
}

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

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--color-background);
    font-weight: 400;
}

/* Logo en footer también con tipografía typewriter */
.footer-section h3.brand-name {
    font-family: var(--font-typewriter);
    font-weight: 600;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
}

.footer-section ul li a:hover {
    color: var(--color-background);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 40px;
    text-align: center;
    opacity: 0.7;
    font-size: 14px;
}

/* Páginas internas */
.page-header {
    background: var(--color-background-alt);
    padding: 140px 0 80px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.page-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.content-section {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
}

.content-card {
    background: var(--color-background-alt);
    padding: 40px;
    border-left: 4px solid var(--color-accent);
}

.content-card h3 {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 20px;
}

.content-list {
    list-style: none;
    margin: 20px 0;
}

.content-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 15px;
}

.content-list li:before {
    content: '▸';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Formularios de contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-background);
    padding: 50px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

.contact-info {
    margin-bottom: 40px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--color-primary);
    font-weight: 400;
    font-size: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.contact-info a {
    color: var(--color-accent);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Aviso legal */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    color: var(--color-primary);
    margin: 30px 0 15px 0;
    font-size: 20px;
}

.legal-content h4 {
    color: var(--color-primary);
    margin: 25px 0 12px 0;
    font-size: 18px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-content ul {
    list-style: none;
    margin-bottom: 25px;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 15px;
    padding-left: 15px;
    position: relative;
}

.legal-content li:before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

.legal-content strong {
    color: var(--color-primary);
}

/* Responsive Design - MANTIENE EL DISEÑO EXACTO */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background: var(--color-background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-top: 1px solid var(--color-border);
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* AJUSTES MÍNIMOS SOLO PARA LEGIBILIDAD EN MÓVIL */
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .hero .subtitle {
        font-size: clamp(18px, 4vw, 20px);
    }

    .section-title {
        font-size: clamp(28px, 6vw, 36px);
    }

    .sectores-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sector-card {
        padding: 35px 25px;
    }

    .ventajas-grid,
    .servicios-grid,
    .reconocimientos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servicio-card {
        padding: 30px 25px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Logo responsive */
    .logo {
        font-size: clamp(22px, 5vw, 26px);
    }
}

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .section {
        padding: 60px 0;
    }

    .content-section {
        padding: 60px 0;
    }

    .sector-card,
    .servicio-card,
    .content-card {
        padding: 25px 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .ai-highlight {
        padding: 30px 20px;
    }
}

/* Animaciones */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados hover adicionales - SOLO EN DESKTOP */
@media (hover: hover) {
    .sector-card,
    .servicio-card {
        position: relative;
        overflow: hidden;
    }

    .sector-card::before,
    .servicio-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 2px;
        background: var(--color-accent);
        transition: left 0.3s ease;
    }

    .sector-card:hover::before,
    .servicio-card:hover::before {
        left: 0;
    }
}

/* Mejoras de accesibilidad */
.nav-menu a:focus,
.cta-button:focus,
.servicio-link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mb-large {
    margin-bottom: 60px;
}

.mt-large {
    margin-top: 60px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}