/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    /* Azul corporativo vibrante */
    --primary-light: #eff6ff;
    /* Fondo muy suave azulado */
    --accent: #0284c7;
    /* Azul cielo intenso */
    --accent-glow: #38bdf8;
    --secondary-accent: #6366f1;
    /* Indigo para toques modernos */
    --text-main: #1e293b;
    /* Gris oscuro para texto principal (no negro puro) */
    --text-muted: #64748b;
    /* Gris medio para secundarios */
    --bg-body: #ffffff;
    /* Fondo blanco limpio */
    --glass-bg: rgba(255, 255, 255, 0.95);
    /* Cristal blanco */
    --glass-border: rgba(0, 0, 0, 0.05);
    /* Borde sutil */
    --nav-height: 90px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    /* Casi negro para títulos */
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    /* Bordes más cuadrados = más corporativo/serio */
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.25rem 0;
    /* Un poco más de aire */
    background: transparent;
    /* Mantenemos transparente para fusionar con el hero */
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    /* Alineación a la izquierda para agrupar Logo y Menú */
    align-items: center;
    gap: 3rem;
    /* Espacio entre el Logo y el primer ítem del menú */
}

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

.logo img {
    height: 85px;
    /* Ajuste fino para evitar "saltos" bruscos */
    width: auto;
    transition: var(--transition);
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.navbar.scrolled .logo img {
    height: 75px;
    /* Reducción sutil y elegante */
}

/* Nav Links - Desktop Default */
.nav-links {
    display: flex;
    gap: 3rem;
    /* Espaciado amplio y elegante */
    align-items: center;
    flex-grow: 1;
    /* Permite que el contenedor crezca para empujar el botón */
}

.nav-links li:last-child {
    margin-left: auto;
    /* Empuja el último elemento (Botón) a la derecha */
}

.nav-link {
    font-weight: 700;
    /* Negrita para legibilidad máxima */
    color: #1e293b;
    /* Color oscuro y nítido */
    font-size: 1.1rem;
    /* Texto más grande */
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.navbar.scrolled .nav-link {
    color: var(--text-main);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
}

/* Mobile Toggle - Hidden on Desktop */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.9) 100%),
        url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid var(--primary);
    border-radius: 9999px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #1e293b;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 400;
    text-align: justify;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Services */
.services-section {
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-badge {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 3rem 2rem;
    border-radius: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: justify;
}

/* Services Header Layout */
.services-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.services-text {
    flex: 1;
    text-align: left;
}

.services-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.services-image img {
    max-width: 100%;
    max-height: 350px;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    transition: var(--transition);
}

.services-image:hover img {
    transform: scale(1.02);
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    text-align: justify;
}

@media (max-width: 900px) {
    .services-header-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .services-text {
        text-align: center;
    }

    .section-description {
        margin: 0 auto;
    }
}

/* About Section */
.about {
    background: #f8fafc;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content p {
    text-align: justify;
}

.about-image {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
    background: #2563eb;
    border-radius: 2rem;
    padding: 5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgb(37 99 235 / 0.3);
}

.contact-container h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.form-wrapper {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

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

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #1e293b;
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: white;
}

.footer-logo span {
    color: #0f172a !important;
}

.social-links a {
    color: #64748b;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: var(--shadow-md);
    }

    .navbar.scrolled .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.75rem;
        color: #0f172a;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero {
        padding-top: 140px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-container {
        padding: 3rem 1.5rem;
    }

    .form-wrapper {
        padding: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Header Button Specifics */
.btn-nav {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

/* New Professional Footer Styles */
.footer-professional {
    background-color: #0f172a;
    /* Dark Slate Blue - Muy profesional */
    color: #cbd5e1;
    /* Texto claro pero suave */
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

/* Footer Logo Styles */
.footer-logo-img {
    height: 90px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    /* Logo blanco para fondo oscuro */
    opacity: 0.9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Columna de Marca */
.brand-col .footer-desc {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #94a3b8;
}

.social-links-footer {
    display: flex;
    gap: 1rem;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links-footer a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Columnas de Enlaces */
.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

/* Contact List */
.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-list i {
    color: var(--primary);
    margin-top: 4px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    /* Centrar todo el contenido inferior */
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #64748b;
    font-size: 0.85rem;
}

.legal-links a:hover {
    color: white;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Custom Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    bottom: 150%;
    width: 200px;
    background: #1e293b;
    color: white;
    padding: 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-tooltip]::before {
    content: '';
    bottom: 130%;
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}