:root {
    --primary: #163c7a;
    --secondary: #0ea5e9;
    --secondary-strong: #0284c7;
    --accent: #7dd3fc;
    --dark: #0f172a;
    --light-gray: #eef4fb;
    --text-color: #1e293b;
    --muted: #475569;
    --white: #ffffff;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-soft: rgba(248, 251, 255, 0.95);
    --border: rgba(22, 60, 122, 0.08);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
    --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.08);
    --radius: 26px;
    --content-max: 100vw;
    --content-padding: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.25), transparent 16%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    line-height: 1.7;
    font-size: 16px;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 72px var(--content-padding);
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 10px var(--content-padding);
    font-size: 0.88rem;
}

.top-bar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar-left a {
    color: var(--white);
    transition: color 0.3s ease;
}

.top-bar-left a:hover {
    color: var(--secondary);
}

.top-bar-left i,
.top-bar-right i {
    margin-right: 8px;
    color: var(--secondary);
}

.top-bar-right {
    display: flex;
    gap: 14px;
}

.top-bar-right a {
    color: var(--white);
    transition: color 0.3s ease;
}

.top-bar-right a:hover {
    color: var(--secondary);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin: 0 auto;
    padding: 14px var(--content-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 88px;
    width: auto;
}

.main-menu ul {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
}

.main-menu a {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-menu a:hover {
    color: var(--secondary);
}

.main-menu a:hover::after {
    transform: scaleX(1);
}

.header-btn .btn-quote,
.btn-quote-large,
.btn-secondary,
.btn-submit {
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.header-btn .btn-quote {
    background: linear-gradient(135deg, var(--secondary), #0ea5e9);
    color: var(--white);
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.header-btn .btn-quote::after,
.btn-quote-large::after,
.btn-secondary::after,
.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 45%, transparent 100%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.header-btn .btn-quote:hover::after,
.btn-quote-large:hover::after,
.btn-secondary:hover::after,
.btn-submit:hover::after {
    transform: translateX(120%);
}

.header-btn .btn-quote:hover,
.btn-quote-large:hover,
.btn-submit:hover {
    transform: translateY(-2px);
}

.hero {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
    padding-top: 42px;
    padding-bottom: 42px;
}

.hero-content {
    padding-right: 10px;
}

.eyebrow {
    display: inline-block;
    background: rgba(0, 191, 255, 0.14);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.5rem, 1.8rem + 2vw, 3.45rem);
    line-height: 1.05;
    color: var(--primary);
    margin-bottom: 18px;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--secondary);
}

.hero-text {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 680px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.btn-quote-large {
    background: linear-gradient(135deg, var(--secondary), #0ea5e9);
    color: var(--white);
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 30px rgba(14, 165, 233, 0.22);
}

.btn-secondary {
    padding: 14px 28px;
    border: 1px solid rgba(28, 74, 143, 0.12);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(125, 211, 252, 0.16));
    border-color: rgba(14, 165, 233, 0.22);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-stats div {
    min-width: 150px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.hero-stats strong {
    display: block;
    color: var(--primary);
    font-size: 1.3rem;
}

.hero-stats span {
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-card {
    background:
        linear-gradient(160deg, rgba(22, 60, 122, 0.93), rgba(15, 23, 42, 0.90)),
        url('img/servidores.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -40% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.25), transparent 70%);
}

.hero-card-tag {
    font-size: 0.85rem;
    color: #dbeafe;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-card h2 {
    font-size: 1.55rem;
    margin-bottom: 18px;
}

.hero-card ul li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.hero-card i {
    color: var(--secondary);
}

.brands {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin: 0 auto;
    padding: 28px var(--content-padding) 8px;
    text-align: center;
}

.brands-title {
    text-align: center;
    margin-bottom: 26px;
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.9rem);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.brands-grid img {
    height: 96px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.brands-grid img:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-2px);
}

.brand-text {
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    color: var(--muted);
    opacity: 0.55;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.brand-text:hover {
    color: #E2231A;
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .brands-grid {
        gap: 26px;
    }
    .brands-grid img {
        height: 64px;
    }
    .brand-text {
        font-size: 1.4rem;
    }
}

.mini-benefits {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin: 0 auto;
    padding-top: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 22px;
}

.benefit-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240, 247, 255, 0.95));
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    animation: floatSoft 5.5s ease-in-out infinite;
}

.benefit-box:nth-child(2) {
    animation-delay: 0.3s;
}

.benefit-box:nth-child(3) {
    animation-delay: 0.6s;
}

.benefit-box i {
    color: var(--secondary-strong);
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
}

.benefit-box h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.benefit-box p {
    color: var(--muted);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-title {
    font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.3rem);
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.services {
    background: linear-gradient(180deg, rgba(238, 244, 251, 0.95), rgba(255,255,255,1));
    padding-top: 56px;
    padding-bottom: 56px;
}

.services .section-heading {
    margin-bottom: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246, 251, 255, 0.98));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(14, 165, 233, 0.12);
    position: relative;
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    backdrop-filter: blur(6px);
    animation: floatSoft 6.5s ease-in-out infinite;
}


.service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card:nth-child(3) {
    animation-delay: 0.8s;
}

.service-card:nth-child(4) {
    animation-delay: 1.2s;
}

.service-card:nth-child(5) {
    animation-delay: 1.6s;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Mantiene una proporción rectangular perfecta siempre */
    object-fit: cover;
    object-position: center; /* Obliga a la foto a centrarse y no perder el foco principal */
    transition: transform 0.5s ease;
    display: block;
}

.service-card:hover img {
    transform: scale(1.04);
}

.service-body {
    padding: 22px;
}

.service-body h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 800;
}

.service-body p {
    color: var(--muted);
    font-size: 0.98rem;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
}

.value-prop {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.value-content {
    padding-right: 8px;
}

.value-brief {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 18px;
}

.value-brief div {
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(255,255,255,0.98));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.value-brief strong,
.value-brief span {
    display: block;
}

.value-brief strong {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.value-brief span {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.value-list {
    margin-top: 24px;
}

.value-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(255,255,255,0.98));
    border: 1px solid var(--border);
}

.value-item i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-top: 6px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
}

.value-item h3 {
    color: var(--primary);
    margin-bottom: 6px;
}

.value-item p {
    color: var(--muted);
}

.value-image-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.25);
    background: linear-gradient(180deg, rgba(22, 60, 122, 0.12), rgba(14, 165, 233, 0.08));
}

.value-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 60, 122, 0.02), rgba(15, 23, 42, 0.28));
    z-index: 1;
}

.value-image-card img {
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transform: scale(1.02);
}

.value-floating {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255,255,255,0.96);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

.value-floating strong,
.value-floating span {
    display: block;
}

.value-floating strong {
    color: var(--primary);
    margin-bottom: 6px;
}

.value-floating span {
    color: var(--muted);
}

.trusted-bar {
    background: var(--surface-soft);
    color: var(--primary);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 0 7px 0;
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(22, 60, 122, 0.04);
    z-index: 900;
}

.trusted-bar i {
    color: var(--secondary);
    margin-right: 7px;
}

@media (min-width: 1440px) {
    .hero {
        gap: 46px;
    }

    .hero-card {
        padding: 38px;
    }

    .case-logo img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 980px) {
    .value-brief {
        grid-template-columns: 1fr;
    }
}

.testimonials {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255,255,255,1));
}

.testimonials-grid {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244, 249, 255, 0.98));
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    animation: floatSoft 6s ease-in-out infinite;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.18);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.8s;
}

.testimonial-quote {
    color: var(--text-color);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-meta strong {
    color: var(--primary);
}

.testimonial-meta span {
    color: var(--muted);
    font-size: 0.95rem;
}

.process {
    background: #f8fbff;
}

.process-grid {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.process-step {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244, 249, 255, 0.98));
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    animation: floatSoft 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.process-step::after {
    content: '';
    position: absolute;
    inset: auto auto -12% -12%;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
}

.process-step:hover::after {
    transform: translate(8px, 8px);
}

.process-step:nth-child(2) {
    animation-delay: 0.3s;
}

.process-step:nth-child(3) {
    animation-delay: 0.6s;
}

.process-step:nth-child(4) {
    animation-delay: 0.9s;
}

.process-step span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(0, 191, 255, 0.15);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
}

.process-step h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.process-step p {
    color: var(--muted);
}

.success-cases {
    background: linear-gradient(135deg, var(--primary), #153b72);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.success-cases::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.28), transparent 70%);
    transform: translate(-50%, -50%);
    animation: caseGlow 8s ease-in-out infinite;
    pointer-events: none;
}

.success-cases .eyebrow {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.light .section-title,
.light .section-subtitle {
    color: var(--white);
}

.cases-grid {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.case-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
    animation: caseFloat 4.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.case-card::before {
    content: '';
    position: absolute;
    inset: auto -30% -45% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.22), transparent 70%);
    opacity: 0.85;
    transition: transform 0.35s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 211, 252, 0.28);
    box-shadow: 0 26px 46px rgba(15, 23, 42, 0.24);
}

.case-card:hover::before {
    transform: translate(-8px, -6px);
}

.case-card:nth-child(2) {
    animation-delay: 0.4s;
}

.case-card:nth-child(3) {
    animation-delay: 0.8s;
}

.case-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.case-logo img {
    width: 140px;
    height: 140px;
    border-radius: 22px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
    display: block;
}

.case-number {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
}

.case-card h3 {
    margin-bottom: 0;
}

.case-card p {
    color: rgba(255,255,255,0.88);
}

/* Layout en 2 columnas */
.faq-grid {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta con tu animación flotante */
.faq-grid details {
    background: var(--white);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    animation: floatSoft 8s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

.faq-grid details:nth-child(2) { animation-delay: 0.25s; }
.faq-grid details:nth-child(3) { animation-delay: 0.5s; }
.faq-grid details:nth-child(4) { animation-delay: 0.75s; }

/* Ocultar flecha por defecto y empujar el texto */
.faq-grid summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-grid summary::-webkit-details-marker {
    display: none;
}

/* Flecha personalizada a la derecha */
.faq-grid summary::after {
    content: "❯";
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.faq-grid details[open] summary::after {
    transform: rotate(90deg);
}

.faq-grid p {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.contact {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: center;
    justify-items: stretch;
    
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    align-items: flex-start;
}

.contact-card-real {
    margin-top: 22px;
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 5px solid var(--secondary);
    align-self: stretch;
}

.person-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.person-role {
    color: var(--muted);
    margin-bottom: 18px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-detail a {
    color: var(--text-color);
}

.contact-form-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-form-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 54px rgba(15, 23, 42, 0.12);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary);
}

.form-control {
    width: 100%;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.98rem;
    background: #fbfdff;
}

.form-control:focus {
    outline: 2px solid rgba(0, 191, 255, 0.18);
    border-color: rgba(0, 191, 255, 0.4);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #0f172a);
    color: var(--white);
    padding: 15px 20px;
    font-size: 1rem;
    cursor: pointer;
}

footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 56px var(--content-padding) 20px;
}

.footer-grid {
    width: min(var(--content-max), calc(100% - 2 * var(--content-padding)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-col {
    text-align: center;
}

.footer-col .logo {
    justify-content: center;
}

.footer-col .logo img {
    height: 130px;
}

.footer-col ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col .logo + p {
    margin-top: 14px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5e1;
}

.footer-bottom {
    max-width: 1240px;
    margin: 24px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .hero,
    .value-prop,
    .contact {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .header-btn {
        order: 3;
    }

    .main-menu {
        display: none;
        width: 100%;
        order: 4;
    }

    .main-menu.active {
        display: block;
    }

    .main-menu ul {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 14px;
        padding: 16px 0;
    }
}

@media (max-width: 640px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-card,
    .contact-form-container {
        padding: 22px;
    }

    section {
        padding-left: 4%;
        padding-right: 4%;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(42px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: translateY(-6px) scale(1);
        box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
    }
    50% {
        transform: translateY(-7px) scale(1.005);
        box-shadow: 0 24px 45px rgba(14, 165, 233, 0.12);
    }
}

@keyframes caseFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-9px) rotate(0.7deg) scale(1.015);
    }
    50% {
        transform: translateY(-14px) rotate(-0.7deg) scale(1.02);
    }
    75% {
        transform: translateY(-9px) rotate(0.4deg) scale(1.015);
    }
}

@keyframes caseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.hero,
.hero-card,
.benefits-grid > *,
.service-card,
.value-content,
.value-image-card,
.process-step,
.case-card,
.faq-grid details,
.contact-card-real,
.contact-form-container {
    opacity: 0;
    animation: fadeUp 0.9s ease forwards;
}

.hero {
    animation-delay: 0.1s;
}

.hero-card {
    animation: fadeUp 0.9s ease 0.35s forwards, floatSoft 7s ease-in-out 1.2s infinite;
    will-change: transform;
}

.benefits-grid > *:nth-child(1) { animation-delay: 0.2s; }
.benefits-grid > *:nth-child(2) { animation-delay: 0.35s; }
.benefits-grid > *:nth-child(3) { animation-delay: 0.5s; }

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }

.value-content {
    animation-delay: 0.2s;
}

.value-image-card {
    animation: fadeUp 0.9s ease 0.35s forwards, floatSoft 7s ease-in-out 1.5s infinite;
    will-change: transform;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.22s; }
.case-card:nth-child(3) { animation-delay: 0.34s; }

.faq-grid details:nth-child(1) { animation-delay: 0.1s; }
.faq-grid details:nth-child(2) { animation-delay: 0.2s; }
.faq-grid details:nth-child(3) { animation-delay: 0.3s; }
.faq-grid details:nth-child(4) { animation-delay: 0.4s; }

.contact-card-real {
    animation-delay: 0.2s;
}

.contact-form-container {
    animation-delay: 0.35s;
}

.benefit-box,
.service-card,
.process-step,
.case-card,
.faq-grid details,
.contact-card-real,
.contact-form-container,
.value-image-card,
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.benefit-box:hover,
.service-card:hover,
.process-step:hover,
.case-card:hover,
.faq-grid details:hover,
.contact-card-real:hover,
.contact-form-container:hover,
.value-image-card:hover,
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
}

.btn-quote-large,
.btn-secondary,
.btn-submit,
.header-btn .btn-quote {
    animation: floatIn 0.9s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.contact-title {
    background-color: #dbeffe;
    display: inline-flex;
    padding: 12px 24px;
    border-radius: 20px;
    color: #0b3c5d;
    font-weight: 700;
    max-width: fit-content;
}