/* ============================================
   EFICARIA - Hoja de estilos principal
   ============================================ */

/* ---------- Variables ---------- */
:root {
    --color-light: #2582d1;
    --color-dark: #146cad;
    --color-darker: #0d4f80;
    --color-darkest: #0a3c61;
    --color-white: #ffffff;
    --color-bg-soft: #f5f9fd;
    --color-bg-softer: #fbfcfe;
    --color-text: #1a2b3c;
    --color-text-muted: #5a6b7c;
    --color-border: #e3ecf3;

    --shadow-sm: 0 2px 8px rgba(20, 108, 173, 0.08);
    --shadow-md: 0 8px 24px rgba(20, 108, 173, 0.12);
    --shadow-lg: 0 20px 60px rgba(20, 108, 173, 0.18);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --container: 1200px;

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

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

    --header-height: 88px;
    --nav-logo-height: 62px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { color: var(--color-text-muted); }

/* ---------- Utilidades ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

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

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-light);
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* Variantes de sección */
.section--light {
    background: var(--color-white);
}

.section--soft {
    background: var(--color-bg-soft);
}

.section--dark {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-darker) 100%);
    color: var(--color-white);
}

.section--dark .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-white);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.82);
}

.section--darkest {
    background: var(--color-darkest);
    color: var(--color-white);
}

.section--darkest .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.section--darkest h2,
.section--darkest h3 {
    color: var(--color-white);
}

.section--darkest p {
    color: rgba(255, 255, 255, 0.82);
}

.section--accent {
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-dark) 100%);
    color: var(--color-white);
}

.section--accent .eyebrow {
    color: rgba(255, 255, 255, 0.92);
}

.section--accent h2,
.section--accent h3 {
    color: var(--color-white);
}

.section--accent p {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-light);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(37, 130, 209, 0.35);
}

.btn--primary:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 108, 173, 0.45);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

.btn--ghost {
    background: var(--color-white);
    color: var(--color-dark);
    box-shadow: 0 6px 16px rgba(20, 108, 173, 0.12);
}

.btn--ghost:hover {
    background: var(--color-bg-soft);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav__logo img {
    height: var(--nav-logo-height);
    width: auto;
    display: block;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav__link:hover {
    color: var(--color-dark);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--color-light);
    transition: width var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-dark);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 9rem 0 6rem;
    overflow: hidden;
    background: var(--color-darkest);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: #ffffffd4;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 130, 209, 0.1);
    color: var(--color-dark);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.hero__title {
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.hero__subtitle {
    font-size: 2.1rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.hero__lead {
    font-size: 1.2rem;
    margin-bottom: 2.25rem;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero visual */
.hero__visual {
    position: relative;
    height: 520px;
    display: grid;
    place-items: center;
}

.hero__icon {
    position: relative;
    z-index: 1;
    width: clamp(260px, 32vw, 420px);
    height: auto;
    max-height: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

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

/* ============================================
   PROBLEMA / POR QUÉ
   ============================================ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.problem-card {
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 130, 209, 0.3);
}

.problem-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(37, 130, 209, 0.1);
    color: var(--color-dark);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.problem-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.problem-card p {
    font-size: 0.95rem;
}

.problem-card--highlight {
    background: linear-gradient(135deg, var(--color-light), var(--color-dark));
    color: var(--color-white);
    border-color: transparent;
}

.problem-card--highlight .problem-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.problem-card--highlight h3 { color: var(--color-white); }
.problem-card--highlight p { color: rgba(255, 255, 255, 0.92); }

/* ============================================
   SERVICIOS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition);
}

.service:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.service__icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: rgba(255, 255, 255, 0.95);
    display: inline;
    place-items: unset;
    font-size: 1rem;
    margin-bottom: 0;
    margin-right: 0.55rem;
    flex-shrink: 0;
}

.service h3 {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.service h3 i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-right: 0.55rem;
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
}

.service p {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================================
   SAAS
   ============================================ */
.saas-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.saas-content h2 { margin-bottom: 1.25rem; margin-top: 1rem; }

.saas-content p { font-size: 1.05rem; margin-bottom: 1.5rem; }

.saas-list {
    list-style: none;
    margin-bottom: 2rem;
}

.saas-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.6rem 0;
    color: var(--color-text);
    font-weight: 500;
}

.saas-list i {
    color: var(--color-light);
    margin-top: 4px;
    font-size: 0.95rem;
}

.saas-accordion {
    display: flex;
    gap: 0.65rem;
    height: 420px;
    width: 100%;
}

.saas-accordion__panel {
    position: relative;
    flex: 0.35 1 0;
    min-width: 72px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--color-darkest);
    transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.saas-accordion__panel.is-open {
    flex: 3.2 1 0;
    cursor: default;
}

.saas-accordion__panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.55s ease;
}

.saas-accordion__panel:not(.is-open) {
    background: var(--color-light);
}

.saas-accordion__panel:not(.is-open) img {
    opacity: 0;
    transform: none;
    filter: none;
}

.saas-accordion__panel:not(.is-open) .saas-accordion__label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: 1;
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    padding: 1.25rem 0.35rem;
    background: transparent;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
}

.saas-accordion__img--motion {
    object-position: center 18%;
}

.saas-accordion__label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.1rem;
    background: linear-gradient(transparent, rgba(10, 60, 97, 0.85));
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.saas-accordion__panel.is-open .saas-accordion__label {
    opacity: 1;
    transform: translateY(0);
}

.saas-accordion__link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-white);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition);
    z-index: 2;
    box-shadow: 0 8px 20px rgba(20, 108, 173, 0.35);
}

.saas-accordion__panel.is-open .saas-accordion__link {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.saas-accordion__link:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* ============================================
   PROCESO (Timeline)
   ============================================ */
.process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    position: relative;
}

.process::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.process-step__num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-dark);
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition);
}

.process-step:hover .process-step__num {
    transform: scale(1.08);
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
}

/* ============================================
   STACK
   ============================================ */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stack-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem 1rem;
    text-align: center;
    transition: all var(--transition);
}

.stack-item:hover {
    transform: translateY(-4px);
    border-color: var(--color-light);
    box-shadow: var(--shadow-md);
}

.stack-item i {
    font-size: 2.25rem;
    color: var(--color-dark);
    margin-bottom: 0.85rem;
    display: block;
}

.stack-item span {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

/* ============================================
   SECTORES
   ============================================ */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.sector {
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition);
}

.sector:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
}

.sector i {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    display: block;
}

.sector h3 {
    font-size: 1.05rem;
    color: var(--color-white);
    margin-bottom: 0.35rem;
}

.sector p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   EQUIPO
   ============================================ */
.team-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-intro h2 { margin: 1rem 0 1.25rem; }
.team-intro p { font-size: 1.05rem; margin-bottom: 1rem; }

.team-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.team-skill {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition);
}

.team-skill:hover {
    transform: translateY(-3px);
    border-color: var(--color-light);
    box-shadow: var(--shadow-sm);
}

.team-skill__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-light), var(--color-dark));
    color: var(--color-white);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.team-skill h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.team-skill p {
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   CTA / CONTACTO
   ============================================ */
.cta {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.cta h2 {
    margin-bottom: 1.25rem;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-form {
    max-width: 640px;
    margin: 3rem auto 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    text-align: left;
    color: var(--color-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color var(--transition);
    background: var(--color-bg-softer);
}

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

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

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-darkest);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand img {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

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

.footer ul a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer ul a:hover {
    color: var(--color-white);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact-item i {
    color: var(--color-light);
    width: 18px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer__social {
    display: flex;
    gap: 0.75rem;
}

.footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    color: var(--color-white);
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--color-light);
    transform: translateY(-2px);
}

/* ============================================
   PÁGINA 404
   ============================================ */
.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 5rem 1.5rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(37, 130, 209, 0.15), transparent 50%),
        linear-gradient(180deg, #ffffff, #eaf3fb);
}

.error-page__code {
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-light), var(--color-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.error-page h1 {
    margin-bottom: 1rem;
}

.error-page p {
    max-width: 480px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.error-page__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   LOGOS CLIENTES
   ============================================ */
.trust-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 2.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.trust-logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 234px;
    height: 104px;
}

.trust-logo {
    max-width: 208px;
    max-height: 83px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.88;
    transition: opacity var(--transition);
}

.trust-logo-slide:hover .trust-logo {
    opacity: 1;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.carousel {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.review-card {
    flex: 0 0 calc((100% - 2.5rem) / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.35rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    min-height: 100%;
}

.review-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.15rem;
    border: 3px solid var(--color-bg-soft);
    box-shadow: var(--shadow-sm);
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-text {
    margin: 0 0 1.25rem;
    border: none;
}

.review-text p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--color-text);
    font-style: italic;
}

.review-text p::before {
    content: '\201C';
    color: var(--color-light);
    font-size: 1.35rem;
    font-weight: 700;
    margin-right: 0.15rem;
}

.review-meta {
    margin-top: auto;
}

.review-meta strong {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.review-meta span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    display: grid;
    place-items: center;
    transition: all var(--transition);
}

.carousel-btn:hover {
    background: var(--color-light);
    border-color: var(--color-light);
    color: var(--color-white);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    transition: all var(--transition);
}

.carousel-dot.is-active {
    background: var(--color-light);
    transform: scale(1.15);
}

@media (max-width: 992px) {
    .review-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 640px) {
    .review-card {
        flex: 0 0 100%;
    }
}

/* ============================================
   ANIMACIONES SCROLL
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    :root {
        --header-height: 80px;
        --nav-logo-height: 54px;
    }

    .trust-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .section { padding: 5rem 0; }

    .hero { padding: 8rem 0 4rem; }

    .hero__grid,
    .saas-wrap,
    .team-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .saas-accordion {
        height: 320px;
    }

    .hero__visual {
        display: none;
    }

    .process {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 520px;
        margin: 0 auto;
    }

    .process::before {
        display: none;
    }

    .process-step {
        display: grid;
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
        column-gap: 1.25rem;
        row-gap: 0.35rem;
        text-align: left;
        align-items: start;
        padding-bottom: 2rem;
        position: relative;
    }

    .process-step:last-child {
        padding-bottom: 0;
    }

    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 31px;
        top: 64px;
        bottom: 0;
        width: 2px;
        background: rgba(255, 255, 255, 0.25);
    }

    .process-step__num {
        margin: 0;
        grid-row: 1 / -1;
        align-self: start;
    }

    .process-step h3,
    .process-step p {
        grid-column: 2;
    }

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

@media (max-width: 768px) {
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    :root {
        --header-height: 72px;
        --nav-logo-height: 48px;
    }

    .trust-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0.75rem;
        max-width: 100%;
    }

    .trust-logo-slide {
        max-width: none;
        height: 72px;
        padding: 0.35rem 0.5rem;
    }

    .trust-logo {
        max-width: 100%;
        max-height: 52px;
        width: auto;
        height: auto;
    }

    .service--hide-mobile {
        display: none;
    }

    .saas-accordion {
        flex-direction: column;
        height: auto;
        gap: 0.65rem;
    }

    .saas-accordion__panel {
        flex: none;
        min-width: 0;
        min-height: 52px;
        max-height: 52px;
        transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .saas-accordion__panel.is-open {
        flex: none;
        min-height: 240px;
        max-height: 280px;
    }

    .saas-accordion__panel:not(.is-open) .saas-accordion__label {
        writing-mode: horizontal-tb;
        transform: none;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: auto;
        padding: 0.85rem 1rem;
        background: transparent;
        color: var(--color-white);
        letter-spacing: normal;
        align-items: center;
        justify-content: flex-start;
    }

    .saas-accordion__img--motion {
        object-position: center 12%;
    }

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-120%);
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
        align-items: stretch;
        box-shadow: var(--shadow-md);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .nav__menu.is-open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .nav__menu li {
        text-align: center;
    }

    .nav__toggle {
        display: block;
    }

    .nav__cta {
        display: inline-flex;
        margin: 0 auto;
    }

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

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

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

    .footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .contact-form {
        padding: 1.75rem;
    }

    .review-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 68px;
        --nav-logo-height: 42px;
    }

    .trust-logo-slide {
        height: 64px;
    }

    .trust-logo {
        max-height: 44px;
    }

    .saas-accordion__panel.is-open {
        min-height: 200px;
        max-height: 240px;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */
.legal-page {
    padding: calc(var(--header-height) + 4rem) 0 5rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-soft) 100%);
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3.25rem);
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.legal-updated {
    font-size: 0.9rem;
    margin-bottom: 2.5rem !important;
}

.legal-content h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin: 2.25rem 0 0.85rem;
    color: var(--color-dark);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.65rem;
    color: var(--color-text);
}

.legal-content p,
.legal-content li {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.legal-content p { margin-bottom: 1rem; }

.legal-content ul {
    margin: 0 0 1.25rem 1.25rem;
}

.legal-content li { margin-bottom: 0.45rem; }

.legal-content a {
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--color-light);
}

.legal-content code {
    font-size: 0.9em;
    background: var(--color-bg-soft);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--color-border);
    padding: 0.75rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-weight: 600;
}

.legal-table td {
    color: var(--color-text-muted);
}

/* ============================================
   BANNER COOKIES
   ============================================ */
.cookie-banner {
    position: fixed;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1rem;
    z-index: 9999;
    max-width: var(--container);
    margin: 0 auto;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-darkest);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner__text strong {
    display: inline;
    margin-right: 0.4rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.cookie-banner__text p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.cookie-banner__text a {
    color: #9fd0f5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
}

.cookie-banner .btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    box-shadow: none;
}

.cookie-banner .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.footer__legal {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
}

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

@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__btn {
        flex: 1;
    }

    .footer__legal {
        justify-content: center;
    }
}
