/* ============================================
   RyKuest — Promotional Website Styles
   Paleta de marca: Azul eléctrico · Azul profundo · Naranja señal · Grafito · Acero
   (ver diseño/…/Portafolio.pdf, sección 06 "Sistema cromático")
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* === PALETA RYKUEST === */
    --blue:          #0DA3DB;   /* Azul eléctrico — tecnología, conectividad */
    --blue-deep:     #0D7CD6;   /* Azul profundo — acciones primarias */
    --orange:        #F56C18;   /* Naranja señal — llamadas puntuales, ejecución */
    --graphite:      #171B20;   /* Grafito — base premium, superficies oscuras */
    --graphite-2:    #1E242B;   /* Grafito elevado (tarjetas sobre grafito) */
    --graphite-3:    #11151A;   /* Grafito profundo (footer) */
    --steel:         #CFD8DC;   /* Acero — puente neutral */
    --cool-white:    #F4F6F7;   /* Blanco frío — fondo general */

    --brand-gradient: linear-gradient(90deg, #0D7CD6 0%, #0DA3DB 35%, #CFD8DC 52%, #F56C18 78%);

    /* Roles de UI */
    --primary:       var(--blue-deep);   /* Botones primarios, enlaces, estados activos */
    --primary-light: var(--blue);
    --primary-dark:  #0A63AD;            /* Hover del azul profundo */
    --primary-50:    rgba(13, 124, 214, 0.07);
    --primary-100:   rgba(13, 124, 214, 0.14);

    --ink:       var(--graphite);        /* Títulos sobre fondo claro */
    --bg-soft:   var(--cool-white);      /* Fondo general del sitio */
    --accent:    var(--orange);          /* CTAs puntuales (texto grafito encima) */
    --accent-dark: #DB5A0B;
    --accent-50: rgba(245, 108, 24, 0.08);

    --secondary: var(--blue);
    --text:      #333C44;                /* Párrafos y texto secundario */

    /* Escala de grises fría (acorde a acero / grafito) */
    --gray-50:  #F8FAFB;
    --gray-100: #F4F6F7;
    --gray-200: #E3E8EB;
    --gray-300: #CFD8DC;
    --gray-400: #98A3AA;
    --gray-500: #6B7780;
    --gray-600: #4D5861;
    --gray-700: #333C44;
    --gray-800: #20262C;
    --gray-900: #171B20;

    --white: #FFFFFF;
    --black: #000000;

    --success: #15A36A;
    --warning: #F56C18;
    --danger:  #DC2626;

    --shadow-sm: 0 1px 2px rgba(23, 27, 32, 0.06);
    --shadow:    0 1px 3px rgba(23, 27, 32, 0.1),  0 1px 2px rgba(23, 27, 32, 0.06);
    --shadow-md: 0 4px 6px rgba(23, 27, 32, 0.08), 0 2px 4px rgba(23, 27, 32, 0.05);
    --shadow-lg: 0 10px 15px rgba(23, 27, 32, 0.12), 0 4px 6px rgba(23, 27, 32, 0.06);
    --shadow-xl: 0 20px 40px rgba(23, 27, 32, 0.14), 0 8px 16px rgba(23, 27, 32, 0.08);

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-soft);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

ul { list-style: none; }

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

/* ---------- Utilities ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid var(--primary-100);
}

.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-header__title::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 18px auto 0;
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
}

/* ---------- Inline highlight chip ---------- */
.hl {
    position: relative;
    font-weight: 700;
    color: var(--ink);
    background: linear-gradient(180deg, transparent 58%, rgba(13, 163, 219, 0.28) 58%);
    padding: 0 3px;
}

.hl--light {
    color: var(--white);
    background: linear-gradient(180deg, transparent 58%, rgba(245, 108, 24, 0.45) 58%);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

/* btn--primary = Azul profundo (acciones primarias) */
.btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    font-weight: 700;
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 124, 214, 0.32);
}

/* btn--accent = Naranja señal (llamadas puntuales). Texto grafito por contraste. */
.btn--accent {
    background: var(--accent);
    color: var(--graphite);
    border-color: var(--accent);
    font-weight: 700;
}

.btn--accent:hover {
    background: #FF7E2E;
    border-color: #FF7E2E;
    color: var(--graphite);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 108, 24, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary-light);
}

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

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(207, 216, 220, 0.4);
}

.btn--outline-white:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--sm { padding: 8px 20px; font-size: 0.85rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 18px 0 0;
    transition: all var(--transition);
}

.header--scrolled {
    padding-top: 12px;
}

.header--scrolled .header__inner {
    background: rgba(23, 27, 32, 0.88);
    border-color: rgba(207, 216, 220, 0.16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    gap: 24px;
    background: rgba(23, 27, 32, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(207, 216, 220, 0.12);
    border-radius: 16px;
    transition: all var(--transition);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 500;
    flex-shrink: 0;
}

.header__logo strong {
    font-weight: 800;
    color: var(--white);
}

.header__logo-icon {
    display: none;
}

.header__nav-list {
    display: flex;
    gap: 8px;
}

.header__nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.header__nav-link.active {
    box-shadow: inset 0 -2px 0 var(--blue);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Search */
.header__search {
    position: relative;
}

.header__search-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.header__search-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.header__search-box {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 4px 8px;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
}

.header__search-box.active {
    opacity: 1;
    visibility: visible;
}

.header__search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--gray-800);
}

.header__search-close {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.header__search-close:hover {
    background: var(--gray-200);
}

/* Mobile menu toggle */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
}

.header__menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.header__menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 140px 0 120px;
    background: var(--graphite);
    overflow: hidden;
}

/* Lenguaje gráfico RyKuest: líneas diagonales y polígonos en baja opacidad,
   azul a la izquierda y naranja a la derecha (Portafolio §12). */
.hero::before,
.page-hero::before,
.cases::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='2'%3E%3Cpath stroke='%230D7CD6' stroke-opacity='.35' d='M-40 120 L260 380 L120 820 M260 380 L520 -20 M60 560 L260 380'/%3E%3Cpath stroke='%230DA3DB' stroke-opacity='.18' d='M-40 640 L180 520 L340 860'/%3E%3Cpath stroke='%23F56C18' stroke-opacity='.35' d='M1480 160 L1180 420 L1320 840 M1180 420 L960 -20 M1380 600 L1180 420'/%3E%3Cpath stroke='%23F56C18' stroke-opacity='.18' d='M1480 700 L1260 560 L1100 860'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
    pointer-events: none;
    z-index: 0;
}

.hero > .container,
.page-hero > .container,
.cases > .container {
    position: relative;
    z-index: 1;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(207, 216, 220, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero__badge i {
    color: var(--warning);
}

.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
}

/* Glow blobs behind the hero mockup */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

.hero__glow--1 {
    top: -160px;
    left: -12%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(13,124,214,0.28) 0%, rgba(13,124,214,0) 70%);
}

.hero__glow--2 {
    bottom: -180px;
    right: -4%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(245,108,24,0.20) 0%, rgba(245,108,24,0) 70%);
}

.hero__descriptor {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 18px;
}

.hero__descriptor b {
    color: var(--blue);
    font-weight: 700;
    padding: 0 4px;
}

.hero__descriptor b:nth-of-type(3) {
    color: var(--orange);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--white);
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero__title-highlight {
    background: linear-gradient(90deg, #0D7CD6 0%, #0DA3DB 30%, #CFD8DC 55%, #F56C18 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(244, 246, 247, 0.78);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero__cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stats {
    padding-top: 28px;
    border-top: 1px solid rgba(207, 216, 220, 0.14);
}

.hero__stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
}

.hero__stat:nth-child(1) .hero__stat-number { color: var(--blue); }
.hero__stat:nth-child(3) .hero__stat-number { color: var(--orange); }

.hero__stat-label {
    font-size: 0.85rem;
    color: rgba(207, 216, 220, 0.7);
    font-weight: 500;
}

/* Símbolo RyKuest en el hero */
.hero__symbol {
    position: relative;
    width: min(420px, 100%);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__symbol::before {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 45%, rgba(13,163,219,0.35), transparent 60%),
        radial-gradient(circle at 70% 55%, rgba(245,108,24,0.30), transparent 60%);
    filter: blur(40px);
    animation: symbolGlow 6s ease-in-out infinite;
}

.hero__symbol img {
    position: relative;
    width: 82%;
    height: auto;
    animation: symbolFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

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

@keyframes symbolGlow {
    0%, 100% { opacity: 0.75; }
    50%      { opacity: 1; }
}

@media (max-width: 1024px) {
    .hero__symbol { width: min(280px, 70vw); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__symbol img,
    .hero__symbol::before { animation: none; }
}

/* Hero mockup */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1600px;
    z-index: 1;
}

.hero__mockup {
    position: relative;
    z-index: 2;
    transform: rotateY(-12deg) rotateX(5deg) rotateZ(1deg);
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.hero__mockup:hover {
    transform: rotateY(-6deg) rotateX(3deg) rotateZ(0.5deg);
}

.hero__mockup-screen {
    width: 480px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 50px 90px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.hero__mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot--red { background: #FF5F57; }
.dot--yellow { background: #FEBC2E; }
.dot--green { background: #28C840; }

.hero__mockup-title {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
}

.hero__mockup-body {
    display: flex;
    min-height: 280px;
}

.hero__mockup-sidebar {
    width: 56px;
    background: var(--primary-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 8px;
}

.hero__mockup-nav-item {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.hero__mockup-nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.hero__mockup-content {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}

.hero__mockup-card {
    height: 70px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    animation: cardPulse 3s ease-in-out infinite;
}

.hero__mockup-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(21,163,106,0.08), rgba(21,163,106,0.16));
    animation-delay: 0.5s;
}

.hero__mockup-card--wide {
    grid-column: span 2;
    height: 90px;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    animation-delay: 1s;
}

@keyframes cardPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Floating badges */
.hero__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(30, 36, 43, 0.92);
    border: 1px solid rgba(207, 216, 220, 0.14);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    z-index: 3;
    animation: floatBadge 6s ease-in-out infinite;
}

.hero__float i {
    font-size: 1.2rem;
}

.hero__float--1 {
    top: 14%;
    right: 0;
    animation-delay: 0s;
}

.hero__float--1 i { color: var(--orange); }

.hero__float--2 {
    bottom: 18%;
    left: 0;
    animation-delay: 2s;
}

.hero__float--2 i { color: var(--blue); }

.hero__float--3 {
    bottom: 5%;
    right: 10%;
    animation-delay: 4s;
}

.hero__float--3 i { color: var(--warning); }

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

/* Hero wave */
.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

.hero__wave {
    z-index: 1;
}

/* ============================================
   HERO LOGO / OWL ANIMATIONS
   ============================================ */

/* Flotado natural del logo-card */
@keyframes owlFloat {
    0%   { transform: translateY(0px) rotate(0deg); }
    25%  { transform: translateY(-6px) rotate(-0.8deg); }
    50%  { transform: translateY(-10px) rotate(0deg); }
    75%  { transform: translateY(-5px) rotate(0.8deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Pulso de glow teal alrededor del contenedor */
@keyframes owlGlow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(13, 124, 214, 0.25),
            0 0 60px rgba(13, 124, 214, 0.1),
            var(--shadow-xl);
    }
    50% {
        box-shadow:
            0 0 50px rgba(245, 108, 24, 0.5),
            0 0 100px rgba(13, 124, 214, 0.25),
            var(--shadow-xl);
    }
}

/* Ring pulse — aro que se expande y desvanece */
@keyframes ringPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Parpadeo suave del video del logo */
@keyframes owlBlink {
    0%, 94%, 100%  { opacity: 1; }
    96%            { opacity: 0.15; }
    98%            { opacity: 1; }
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    position: relative;
    isolation: isolate;
    padding: 100px 0;
    background: var(--bg-soft);
}

.features::before,
.features::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.features::before {
    top: -140px;
    right: -160px;
    background: radial-gradient(circle, var(--accent-50) 0%, transparent 70%);
}

.features::after {
    bottom: -160px;
    left: -160px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    overflow: hidden;
    transition: all var(--transition);
}

/* Línea de marca azul→naranja que aparece al pasar el cursor */
.feature-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 12px 40px rgba(23, 27, 32, 0.10);
    transform: translateY(-4px);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Iconos: alternan la dualidad azul / naranja de la marca */
.feature-card__icon--blue   { background: rgba(13,124,214,0.10); color: #0D7CD6; }
.feature-card__icon--teal   { background: rgba(13,163,219,0.12); color: #0A8BBD; }
.feature-card__icon--purple { background: var(--graphite);       color: #0DA3DB; }
.feature-card__icon--orange { background: rgba(245,108,24,0.12); color: #E0600F; }
.feature-card__icon--red    { background: rgba(245,108,24,0.12); color: #E0600F; }
.feature-card__icon--green  { background: var(--graphite);       color: #F56C18; }

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.feature-card__desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-card__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.feature-card__list li i {
    color: var(--success);
    font-size: 0.75rem;
}

.feature-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--transition);
}

.feature-card__cta:hover {
    gap: 10px;
}

.feature-card--featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-50) 100%);
}

.features--alt {
    background: var(--white);
}

.features--alt .features__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) {
    .features--alt .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ============================================
   CASOS DE EXITO
   ============================================ */
.cases {
    position: relative;
    isolation: isolate;
    padding: 110px 0;
    background: var(--graphite);
    overflow: hidden;
}

.cases .section-header__tag {
    color: var(--blue);
    background: rgba(13, 163, 219, 0.08);
    border-color: rgba(13, 163, 219, 0.25);
}

.cases .section-header__title {
    color: var(--white);
}

.cases .section-header__subtitle {
    color: rgba(207, 216, 220, 0.7);
}

.cases__spread {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
}

.case-card {
    flex: 1;
    padding: 0 40px;
    border-right: 1px solid rgba(207, 216, 220, 0.12);
}

.case-card:first-child {
    padding-left: 0;
}

.case-card:last-child {
    padding-right: 0;
    border-right: none;
}

.case-card__stat {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--white);
    margin-bottom: 18px;
}

.case-card:nth-child(1) .case-card__stat { color: var(--blue); }
.case-card:nth-child(2) .case-card__stat { color: var(--steel); }
.case-card:nth-child(3) .case-card__stat { color: var(--orange); }

.case-card__desc {
    font-size: 0.92rem;
    color: rgba(207, 216, 220, 0.7);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .cases__spread {
        flex-direction: column;
        gap: 40px;
    }
    .case-card {
        padding: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(207, 216, 220, 0.12);
        padding-bottom: 32px !important;
    }
    .case-card:last-child {
        border-bottom: none;
    }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-soft);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.step__number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--graphite);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    border: 2px solid var(--blue);
    box-shadow: 0 6px 18px rgba(23, 27, 32, 0.25);
}

/* .steps alterna .step y .step__connector, así que los pasos son los hijos 1, 3 y 5 */
.step:nth-child(3) .step__number { border-color: var(--steel); }
.step:nth-child(5) .step__number { border-color: var(--orange); }

.step__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.step__desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    max-width: 220px;
    line-height: 1.5;
}

.step__connector {
    width: 80px;
    height: 2px;
    background: var(--brand-gradient);
    margin-bottom: 60px;
    flex-shrink: 0;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.04);
}

.pricing-card--featured:hover {
    transform: scale(1.06);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 20px;
    background: var(--orange);
    color: var(--graphite);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.pricing-card__desc {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.pricing-card__price {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-card__currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-600);
    vertical-align: top;
    line-height: 1.8;
}

.pricing-card__amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
}

.pricing-card__period {
    font-size: 0.9rem;
    color: var(--gray-400);
    font-weight: 500;
}

.pricing-card__price--quote {
    padding: 12px 0 28px;
}

.pricing-card__quote {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.pricing-card__features li i {
    font-size: 0.8rem;
}

.pricing-card__features li .fa-check {
    color: var(--success);
}

.pricing-card__features li .fa-times {
    color: var(--gray-300);
}

.pricing-card__feature--disabled {
    opacity: 0.5;
}

/* ============================================
   NEWS
   ============================================ */
.news {
    padding: 100px 0;
    background: var(--gray-50);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card__img-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(13, 124, 214, 0.35), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(245, 108, 24, 0.25), transparent 55%),
        var(--graphite);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--blue);
}

.news-card:nth-child(even) .news-card__img-placeholder {
    color: var(--orange);
}

.news-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--graphite);
    box-shadow: var(--shadow-sm);
}

.news-card__body {
    padding: 24px;
}

.news-card__meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.news-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.news-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card__excerpt {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

.news-card__link:hover {
    gap: 10px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--warning);
    font-size: 0.9rem;
}

.testimonial-card__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.testimonial-card__author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.testimonial-card__author span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--bg-soft);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.contact__info-card:hover {
    box-shadow: var(--shadow-md);
}

.contact__info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact__info-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.contact__info-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
}

.contact__social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.contact__social-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all var(--transition);
}

.contact__social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Contact form */
.contact__form {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact__form-group {
    margin-bottom: 20px;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 4px 0 20px;
}

.contact__form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: var(--white);
    transition: all var(--transition);
    outline: none;
}

.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 124, 214, 0.15);
}

.contact__form-group input::placeholder,
.contact__form-group textarea::placeholder {
    color: var(--gray-400);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    background: var(--graphite-3);
    color: rgba(207, 216, 220, 0.65);
    padding: 64px 0 0;
}

/* Línea de marca azul→naranja sobre el footer (como en la tarjeta de presentación) */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 16px;
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer__social-link {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(207, 216, 220, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.footer__social-link:hover {
    background: var(--primary);
}

.footer__logo strong {
    font-weight: 800;
    color: var(--white);
}

.footer__logo .header__logo-icon {
    background: var(--primary-light);
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
    color: rgba(207, 216, 220, 0.6);
}

.footer__slogan {
    margin-top: 18px;
    padding-left: 12px;
    border-left: 3px solid var(--orange);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.7;
    text-transform: uppercase;
    color: var(--steel);
}

.footer__links h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a,
.footer__links li {
    font-size: 0.88rem;
    color: rgba(207, 216, 220, 0.6);
    transition: all var(--transition);
}

.footer__links li i {
    width: 16px;
    margin-right: 6px;
    color: var(--blue);
}

.footer__links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.footer__bottom p {
    font-size: 0.85rem;
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}

.footer__bottom-links a {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.footer__bottom-links a:hover {
    color: var(--white);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(13, 124, 214, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero__subtitle {
        margin: 0 auto 32px;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__mockup-screen {
        width: 100%;
        max-width: 420px;
    }

    .features__grid,
    .pricing__grid,
    .news__grid,
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card--featured {
        transform: scale(1);
    }

    .contact__inner {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Evita el zoom automático de Safari en iPhone al tocar un campo
       (ocurre si el font-size del input es menor a 16px). */
    .contact__form-group input,
    .contact__form-group select,
    .contact__form-group textarea,
    .comments__form-group input,
    .comments__form-group textarea {
        font-size: 16px;
    }

    .header__nav {
        position: fixed;
        top: 88px;
        left: 16px;
        right: 16px;
        background: var(--graphite);
        border: 1px solid rgba(207, 216, 220, 0.14);
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition);
    }

    .header__nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header__nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .header__nav-link {
        display: block;
        padding: 12px 16px;
    }

    .header__menu-toggle {
        display: flex;
    }

    .header__actions .btn {
        display: none;
    }

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

    .hero__title {
        font-size: 2rem;
    }

    .hero__stats {
        gap: 24px;
    }

    .hero__float {
        display: none;
    }

    .features__grid,
    .pricing__grid,
    .news__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step__connector {
        width: 2px;
        height: 40px;
        margin-bottom: 0;
    }

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .hero__stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .pricing-card {
        padding: 28px 24px;
    }

    .contact__form {
        padding: 24px;
    }
}

/* ============================================
   LOGO IMG (header/footer/hero)
   El wordmark RYKUEST se usa como imagen (arte gráfico), nunca recreado con fuente.
   ============================================ */
.header__logo-img {
    width: 36px;
    height: 40px;
    object-fit: contain;
}

.header__logo-wordmark {
    height: 20px;
    width: auto;
}

.footer__logo {
    gap: 14px;
}

.footer__logo-img {
    width: 52px;
    height: 58px;
    object-fit: contain;
}

.footer__logo-wordmark {
    width: 210px;
    max-width: 100%;
    height: auto;
}

@media (max-width: 380px) {
    .header__logo-wordmark { height: 16px; }
}

.hero__logo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    min-height: 380px;
    overflow: visible;
    animation: owlFloat 7s ease-in-out infinite, owlGlow 4s ease-in-out infinite;
}

/* Aro pulsante alrededor del logo */
.hero__logo-card::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-xl) + 8px);
    border: 2px solid rgba(245, 108, 24, 0.5);
    animation: ringPulse 3s ease-out infinite;
}

.hero__logo-card::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: calc(var(--radius-xl) + 20px);
    border: 1px solid rgba(245, 108, 24, 0.25);
    animation: ringPulse 3s ease-out infinite 1s;
}

.hero__logo-video {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: contain;
    animation: owlBlink 6s ease-in-out infinite;
}

.hero__logo-img {
    max-width: 260px;
    width: 100%;
    height: auto;
}

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 64px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(13, 124, 214, 0.22), transparent 55%),
        radial-gradient(ellipse at 95% 100%, rgba(245, 108, 24, 0.16), transparent 55%),
        var(--graphite);
    text-align: center;
    color: var(--white);
}

.page-hero__tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(13, 163, 219, 0.1);
    border: 1px solid rgba(13, 163, 219, 0.3);
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 16px;
}

.page-hero__tag--dev {
    background: var(--orange);
    color: var(--graphite);
    margin-left: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-hero__desc {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: rgba(244, 246, 247, 0.75);
    line-height: 1.6;
}

.page-hero--product {
    text-align: left;
}

.page-hero--product .page-hero__desc {
    margin: 0;
}

.page-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color var(--transition);
}

.page-hero__back:hover {
    color: var(--white);
}

.page-hero__product {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
}

.page-hero__icon {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    flex-shrink: 0;
    background: var(--graphite-2);
    border: 1px solid rgba(207, 216, 220, 0.14);
    color: var(--orange);
}

.page-hero__cta {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .page-hero { padding: 110px 0 50px; }
    .page-hero__title { font-size: 1.9rem; }
    .page-hero__product { grid-template-columns: 1fr; gap: 20px; }
    .page-hero__icon { width: 72px; height: 72px; font-size: 1.9rem; }
}

/* ============================================
   ARTICLE (noticias internas)
   ============================================ */
.article {
    padding: 80px 0 60px;
}

.article__body {
    max-width: 720px;
    margin: 0 auto;
}

.article__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.article__meta span { display: inline-flex; align-items: center; gap: 6px; }

.article__body p {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 22px;
}

.article__body h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    margin: 40px 0 16px;
}

.article__body ul {
    margin: 0 0 24px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article__body ul li {
    position: relative;
    padding-left: 30px;
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.6;
}

.article__body ul li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary);
}

.article__callout {
    background: var(--accent-50);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 32px 0;
    color: var(--gray-800);
    font-size: 0.98rem;
    line-height: 1.7;
}

.article__cta {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

/* ============================================
   PRODUCT CARDS (productos.html)
   ============================================ */
.features__grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

.features__grid--1 {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features__grid--4 {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(23, 27, 32, 0.06);
    transition: all var(--transition);
}

.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(23, 27, 32, 0.12);
    transform: translateY(-4px);
}

.product-card--featured {
    border-color: var(--primary-light);
}

.product-card--dev {
    cursor: default;
}

.product-card--dev:hover {
    border-color: var(--gray-200);
    box-shadow: 0 10px 30px rgba(23, 27, 32, 0.06);
    transform: none;
}

.product-card--dev .product-card__icon {
    opacity: 0.8;
}

.product-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.product-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--graphite);
    color: var(--orange);
}

.product-card__badge {
    padding: 5px 13px;
    background: var(--success);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.product-card__badge--dev {
    background: transparent;
    border: 1.3px solid var(--warning);
    color: var(--warning);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-card__badge--dev i {
    font-size: 0.6rem;
}

.product-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.product-card__desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 18px;
}

.product-card__bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 34px;
    margin-bottom: 20px;
}

.product-card__bar {
    flex: 1;
    background: var(--gray-200);
    border-radius: 2px;
}

.product-card__bar--accent {
    background: var(--orange);
}

.product-card__bar:not(.product-card__bar--accent):nth-child(odd) {
    background: rgba(13, 163, 219, 0.35);
}

.product-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.product-card__cta--dev {
    color: var(--gray-400);
    font-weight: 500;
}

.product-card:hover .product-card__cta:not(.product-card__cta--dev) {
    gap: 12px;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
    position: relative;
    padding: 64px 0;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(13, 124, 214, 0.25), transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(245, 108, 24, 0.2), transparent 50%),
        var(--graphite-2);
    color: var(--white);
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0.8;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-band__title {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.cta-band__desc {
    color: rgba(207, 216, 220, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* En la banda final, la llamada principal usa el naranja señal */
.cta-band .btn--primary {
    background: var(--orange);
    color: var(--graphite);
    border-color: var(--orange);
}

.cta-band .btn--primary:hover {
    background: #FF7E2E;
    border-color: #FF7E2E;
    color: var(--graphite);
    box-shadow: 0 8px 28px rgba(245, 108, 24, 0.35);
}

@media (max-width: 768px) {
    .cta-band__title { font-size: 1.4rem; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
body {
    opacity: 0;
    animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.page-leaving {
    animation: pageFadeOut 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
    pointer-events: none;
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    body.page-leaving {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Stagger hero content on entry */
.hero__content > * {
    opacity: 0;
    animation: heroSlideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.15s; }
.hero__content > *:nth-child(3) { animation-delay: 0.25s; }
.hero__content > *:nth-child(4) { animation-delay: 0.35s; }
.hero__content > *:nth-child(5) { animation-delay: 0.45s; }
.hero__content > *:nth-child(6) { animation-delay: 0.55s; }

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero > .container > * {
    opacity: 0;
    animation: heroSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-hero > .container > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero > .container > *:nth-child(2) { animation-delay: 0.15s; }
.page-hero > .container > *:nth-child(3) { animation-delay: 0.25s; }
.page-hero > .container > *:nth-child(4) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
    .hero__content > *,
    .page-hero > .container > * {
        opacity: 1;
        animation: none;
    }
}

/* ============================================
   COMMENTS PANEL
   ============================================ */
.comments {
    padding: 100px 0;
    background: var(--white);
}

.comments__layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

.comments__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comments__empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--gray-500);
    background: var(--white);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
}

.comment-card {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.comment-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.comment-card__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.comment-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.comment-card__name {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
}

.comment-card__company {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-card__date {
    display: block;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.comment-card__rating {
    color: var(--orange);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.comment-card__rating .rating-empty {
    color: var(--gray-300);
}

.comment-card__text {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

/* ---------- Form ---------- */
.comments__form {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.comments__form-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 4px;
}

.comments__form-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.comments__form-group {
    margin-bottom: 18px;
    position: relative;
}

.comments__form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.comments__form-group input,
.comments__form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all var(--transition);
    resize: vertical;
}

.comments__form-group input:focus,
.comments__form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.comments__counter {
    position: absolute;
    right: 8px;
    bottom: 6px;
    font-size: 0.75rem;
    color: var(--gray-400);
    background: var(--white);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    pointer-events: none;
}

/* ---------- Rating input ---------- */
.rating-input {
    display: flex;
    gap: 4px;
}

.rating-input__star {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--gray-300);
    transition: color 0.15s ease, transform 0.15s ease;
}

.rating-input__star:hover,
.rating-input__star:focus {
    outline: none;
    transform: scale(1.1);
}

.rating-input__star.active {
    color: var(--orange);
}

/* ---------- Feedback ---------- */
.comments__feedback {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.4;
}

.comments__feedback--success {
    background: rgba(21, 163, 106, 0.1);
    color: #15A36A;
    border: 1px solid rgba(21, 163, 106, 0.25);
}

.comments__feedback--error {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

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

    .comments__form {
        position: static;
    }
}
