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

:root {
    --primary:    #FF5722;        /* Naranja vibrante corporativo */
    --primary-dk: #E64A19;        /* Naranja hover */
    --bone:       #F9F8F6;        /* Blanco hueso */
    --bone-border:#E5E0D8;        /* Borde claro */
    --dark-bg:    #0a0a0a;
    --ink:        #111111;        /* Texto oscuro */
    --ink-mid:    #4A4A4A;
    --ink-soft:   #7A7A7A;
    --trust-bg:   #18181B;        /* Trust bar fondo */
    --white:      #ffffff;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bone);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   HEADER — Tema Claro Premium
   ========================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Estado inicial: fondo hueso casi transparente */
    background: rgba(249, 248, 246, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1.5px solid var(--bone-border);
    padding: 14px 5%;
    transition: padding 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header.scrolled {
    padding: 10px 5%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-bottom-color: rgba(255, 87, 34, 0.18);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-link img {
    max-height: 75px;
    display: block;
    transition: max-height 0.35s ease;
    object-fit: contain;
}

.header.scrolled .logo-link img {
    max-height: 52px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-mid);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.25s ease;
    letter-spacing: 0.01em;
}

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

/* CTA Pill — Header */
.cta-btn {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 3px 14px rgba(255, 87, 34, 0.28);
    white-space: nowrap;
}

.cta-btn:hover {
    background: var(--primary-dk) !important;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.38);
    transform: translateY(-2px);
}

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

.hamburger .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* ==========================================================
   HERO SECTION — Alta Conversión, Tema Claro
   ========================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--bone);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 110px; /* compensa el header fijo */
}

/* Patrón de puntos de fondo (dot grid) */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Difuminado radial sobre el patrón para que no abrume */
.hero-bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--bone) 30%, transparent 100%);
}

/* Contenedor principal del hero (split) */
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 5% 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ---- Columna de Texto ---- */
.hero-content {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* Badge superior */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 87, 34, 0.08);
    color: var(--primary);
    border: 1px solid rgba(255, 87, 34, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Titular H1 */
.hero-section h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.02em;
    max-width: 600px;
}

/* Acento naranja en la última palabra «marcas» */
.hero-section h1 em {
    font-style: normal;
    color: var(--primary);
}

/* Subtítulo */
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--ink-mid);
    line-height: 1.7;
    max-width: 500px;
}

/* Checklist */
.hero-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--ink-mid);
}

.hero-checklist li svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Botones CTA */
.hero-ctas {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 6px 24px rgba(255, 87, 34, 0.32);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary:hover {
    background: var(--primary-dk);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.38);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    border: 1.5px solid var(--bone-border);
    background: transparent;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

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

/* ---- Columna Visual / Imagen Destacada ---- */
.hero-visual {
    flex: 1 1 42%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.06);
    object-fit: contain;
    animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

/* ---- Trust Badges (Burbujas / Pastillas) ---- */
.hero-trust-bar {
    position: relative;
    z-index: 1;
    margin-top: 25px;
    padding: 0 5%;
}

.trust-badges {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #18181B;
    color: #F9F8F6;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.trust-badge .trust-icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
}

.trust-badge span {
    font-size: 0.85rem;
    color: #F9F8F6;
    font-weight: 500;
}

/* ==========================================================
   MOBILE — Header & Hero
   ========================================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        background: rgba(249, 248, 246, 0.98);
        backdrop-filter: blur(16px);
        left: -100%;
        transition: left 0.4s ease;
    }

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

    .nav-links a {
        font-size: 1.3rem;
    }

    .logo-link img {
        max-height: 55px;
    }
    .header.scrolled .logo-link img {
        max-height: 44px;
    }

    /* Hero Split → Stack */
    .hero-container {
        flex-direction: column;
        gap: 40px;
        padding: 40px 5% 30px;
        text-align: left;
    }

    .hero-visual {
        width: 100%;
        order: 1; /* La imagen debajo del contenido en móvil */
    }

    .hero-image {
        max-width: 100%;
        border-radius: 10px;
        animation: none;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
        gap: 10px;
    }

    .trust-badge {
        font-size: 0.78rem;
        padding: 7px 14px;
    }
}

/* Philosophy Section */
.philosophy-section {
    background-color: #F9F8F6; /* Blanco Hueso */
    color: #1A1A1A; /* Negro / Gris muy oscuro */
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.philosophy-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.philosophy-content {
    flex: 1;
}

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.philosophy-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

.philosophy-content .dropcap {
    float: left;
    color: var(--primary);
    font-size: 4rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    font-weight: 600;
}

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

.philosophy-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
    .philosophy-container {
        flex-direction: column;
        text-align: left;
        gap: 40px;
    }
    
    .philosophy-content h2 {
        font-size: 2rem;
    }
    
    .philosophy-content .dropcap {
        font-size: 3.5rem;
    }
}

/* ===========================================================
   SECCIÓN: Soluciones Digitales Premium — Tema Claro
   =========================================================== */

.srv-section {
    background-color: var(--bone);
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.srv-container {
    max-width: 1280px;
    width: 100%;
}

/* --- Encabezado --- */
.srv-header {
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.srv-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255, 87, 34, 0.08);
    border: 1px solid rgba(255, 87, 34, 0.18);
    padding: 5px 16px;
    border-radius: 50px;
}

.srv-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.025em;
    max-width: 640px;
    line-height: 1.2;
}

.srv-header p {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 500px;
    line-height: 1.7;
}

/* --- Grid 3 columnas --- */
.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* --- Tarjeta --- */
.srv-card {
    background: linear-gradient(135deg, #ffffff 0%, #EAE7E0 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

/* Borde de acento superior oculto por defecto */
.srv-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 18px 18px 0 0;
}

.srv-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, #ffffff 0%, #F3F1EC 100%);
    border-color: rgba(255, 87, 34, 0.35);
    box-shadow: 0 16px 48px rgba(255, 87, 34, 0.09), 0 4px 12px rgba(0,0,0,0.06);
}

.srv-card:hover::before {
    opacity: 1;
}

/* Top row: iócon + tag */
.srv-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

/* Contenedor del SVG */
.srv-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    background: rgba(255, 87, 34, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.srv-card:hover .srv-icon-wrap {
    background: rgba(255, 87, 34, 0.14);
}

.srv-icon-wrap svg {
    width: 22px;
    height: 22px;
}

/* Badges (etiquetas) */
.srv-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 87, 34, 0.2);
    white-space: nowrap;
    line-height: 1.4;
}

.srv-tag-new {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
}

/* Título */
.srv-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

/* Descripción */
.srv-card > p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.72;
    flex: 1; /* empuja el CTA al fondo */
}

/* Botón CTA de la tarjeta */
.srv-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.25s ease, gap 0.25s ease;
    width: fit-content;
}

.srv-cta svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.srv-cta:hover {
    border-bottom-color: var(--primary);
    gap: 10px;
}

.srv-cta:hover svg {
    transform: translateX(3px);
}

/* ===========================================================
   RESPONSIVIDAD — Servicios
   =========================================================== */
@media (max-width: 1024px) {
    .srv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .srv-section {
        padding: 72px 5%;
    }
    .srv-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .srv-card {
        padding: 26px 22px 22px;
    }
}
