:root {
    --navy: #0b1d3a;
    --navy-deep: #071428;
    --navy-light: #153056;
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-soft: rgba(201, 168, 76, 0.14);
    --white: #faf9f6;
    --paper: #f7f3eb;
    --sand: #efe9dd;
    --slate: #5e6f8c;
    --text: #32445f;
    --border: rgba(11, 29, 58, 0.1);
    --shadow: 0 18px 55px rgba(7, 20, 40, 0.1);
    --success: #1c7f52;
    --danger: #b84c4c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Playfair Display", serif;
    color: var(--navy);
}

a {
    color: inherit;
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 0.9rem 1.8rem;
    background: rgba(7, 20, 40, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 16px 40px rgba(7, 20, 40, 0.18);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.nav-logo picture { display: inline-flex; }

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

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-hamburger span {
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--white);
}

.btn-primary,
.btn-secondary,
.button-light,
.button-outline,
.nav-cta,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary,
.button-light,
.nav-cta,
.submit-button {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-deep);
    box-shadow: 0 10px 24px rgba(201, 168, 76, 0.18);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-outline {
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    border: 1px solid rgba(11, 29, 58, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.button-light:hover,
.button-outline:hover,
.nav-cta:hover,
.submit-button:hover {
    transform: translateY(-2px);
}

.page-hero,
.landing-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(201, 168, 76, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(7, 20, 40, 0.98), rgba(11, 29, 58, 0.94) 45%, rgba(21, 48, 86, 0.88));
    color: var(--white);
}

.page-hero::before,
.landing-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    top: -180px;
    right: -150px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.14);
    pointer-events: none;
}

.page-hero-inner,
.landing-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 5rem 1.8rem 4.2rem;
}

.landing-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    align-items: center;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(201, 168, 76, 0.1);
    margin-bottom: 1rem;
}

.section-label {
    color: var(--gold);
    margin-bottom: 0.85rem;
}

.section-label::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.page-hero h1,
.landing-hero h1 {
    color: var(--white);
    font-size: clamp(2.3rem, 4.7vw, 4.1rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    max-width: 15ch;
}

.page-hero p,
.landing-hero p {
    max-width: 58ch;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.6rem;
}

.section {
    padding: 5rem 1.8rem;
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.section-header {
    max-width: 760px;
    margin-bottom: 2.4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.section-subtitle {
    color: var(--slate);
    line-height: 1.8;
}

.card,
.faq-item,
.form-card,
.summary-card,
.widget-card {
    background: #fff;
    border-radius: 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card,
.info-card,
.faq-item,
.summary-card,
.widget-card {
    padding: 1.6rem;
}

.service-number {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 1rem;
}

.card h3,
.summary-card h3,
.widget-card h3,
.info-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}

.card p,
.summary-card p,
.widget-card p,
.info-card p {
    color: var(--slate);
    line-height: 1.75;
    font-size: 0.96rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.4rem;
    align-items: stretch;
}

.info-stack {
    display: grid;
    gap: 1rem;
}

.detail-list,
.check-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.detail-list li,
.check-list li {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    color: var(--slate);
}

.detail-list strong,
.check-list strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.pricing-shell {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(255, 255, 255, 0.06);
}

th,
td {
    padding: 1.2rem 1.1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(11, 29, 58, 0.08);
}

th {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
}

.dark-table th,
.dark-table td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-table th {
    color: rgba(255, 255, 255, 0.62);
}

.dark-table td {
    color: rgba(255, 255, 255, 0.9);
}

.price {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--gold-light);
}

.starter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    margin-left: 0.55rem;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.18);
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 700;
}

.legal-note,
.disclaimer-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    line-height: 1.7;
    font-size: 0.92rem;
}

.legal-note {
    margin-top: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

.disclaimer-card {
    background: rgba(11, 29, 58, 0.04);
    border: 1px solid var(--border);
    color: var(--slate);
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-light);
    font-weight: 700;
    font-size: 0.92rem;
}

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: 1.25rem;
}

.widget-placeholder {
    min-height: 200px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.25rem;
    border: 1px dashed rgba(201, 168, 76, 0.42);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(11, 29, 58, 0.02));
}

.widget-placeholder strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--navy);
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    color: var(--navy);
    font-weight: 700;
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(11, 29, 58, 0.12);
    color: var(--gold);
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 1.35rem 1.25rem;
    color: var(--slate);
    line-height: 1.78;
}

.form-card {
    padding: 1.8rem;
}

.lead-form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.42rem;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    font: inherit;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(201, 168, 76, 0.75);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.86);
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
}

.checkbox-field label {
    color: var(--slate);
    line-height: 1.7;
    font-size: 0.9rem;
}

.form-feedback {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 0.92rem;
}

.form-feedback.is-success {
    background: rgba(28, 127, 82, 0.1);
    color: var(--success);
}

.form-feedback.is-error {
    background: rgba(184, 76, 76, 0.1);
    color: var(--danger);
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.contact-list li {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
}

.contact-list strong {
    display: block;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-mini {
    padding: 1.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-mini strong {
    display: block;
    color: var(--navy);
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.stat-mini span {
    color: var(--slate);
    line-height: 1.5;
    font-size: 0.9rem;
}

footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.76);
    border-top: 1px solid rgba(201, 168, 76, 0.14);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.7rem 1.8rem 1.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1fr);
    gap: 1.3rem;
    margin-bottom: 1.7rem;
}

.footer-brand img {
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.footer-title {
    font-family: "DM Sans", sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
}

.footer-copy,
.footer-links a,
.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.7;
    font-size: 0.93rem;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.footer-bottom {
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.46);
}

.footer-bottom a {
    color: var(--gold-light);
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    box-shadow: 0 18px 28px rgba(37, 211, 102, 0.34);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25d366;
    opacity: 0.6;
    animation: waPulse 2.2s ease-out infinite;
    pointer-events: none;
}

.whatsapp-float::after {
    content: "Respondemos rápido";
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #0b1d3a;
    color: #faf9f6;
    font-family: "DM Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(7, 20, 40, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 36px rgba(37, 211, 102, 0.45);
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    position: relative;
    z-index: 1;
}

.whatsapp-float svg path { fill: #fff; }

@keyframes waPulse {
    0%   { transform: scale(0.95); opacity: 0.7; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before { animation: none; }
}

/* Tooltip solo en desktop — en móvil ocuparía demasiado espacio */
@media (max-width: 768px) {
    .whatsapp-float::after { display: none; }
}

/* ============================================================
   Sticky Mobile CTA Bar — barra inferior solo en móvil
   ============================================================ */

.mobile-cta-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: rgba(7, 20, 40, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(201, 168, 76, 0.25);
    padding: 0.6rem 0.8rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0));
    gap: 0.5rem;
}

.mobile-cta-bar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.78rem 0.5rem;
    border-radius: 12px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease;
}

.mobile-cta-bar a:active { transform: scale(0.97); }

.mobile-cta-bar .cta-call {
    background: rgba(201, 168, 76, 0.15);
    color: #e2c97e;
    border: 1px solid rgba(201, 168, 76, 0.4);
}

.mobile-cta-bar .cta-wa {
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.mobile-cta-bar svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mobile-cta-bar { display: flex; }
    /* Evitar que el flotante choque con la barra móvil */
    .whatsapp-float { bottom: 5.2rem; }
    /* Espacio para que el contenido no quede tapado por la barra */
    body.has-mobile-cta { padding-bottom: 4.5rem; }
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: none;
    background: rgba(7, 20, 40, 0.96);
    border-top: 1px solid rgba(201, 168, 76, 0.18);
}

.cookie-banner.show {
    display: block;
}

.cookie-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    font-size: 0.9rem;
}

.cookie-text a {
    color: var(--gold-light);
}

.cookie-actions {
    display: flex;
    gap: 0.7rem;
    flex-shrink: 0;
}

.cookie-actions button {
    border-radius: 999px;
    padding: 0.72rem 1.15rem;
    font: inherit;
    cursor: pointer;
}

.cookie-actions .accept {
    border: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-deep);
    font-weight: 700;
}

.cookie-actions .reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1120px) {
    .cards-grid,
    .mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout,
    .reviews-layout,
    .landing-hero-inner {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        padding: 1.2rem 1.8rem 1.4rem;
        background: rgba(7, 20, 40, 0.98);
        border-bottom: 1px solid rgba(201, 168, 76, 0.14);
        flex-direction: column;
        align-items: flex-start;
    }

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

    .nav-hamburger {
        display: flex;
    }

    .form-grid,
    .cookie-inner,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        padding: 1rem 1rem 1.15rem;
        border-bottom: 1px solid rgba(11, 29, 58, 0.08);
    }

    td {
        padding: 0.35rem 0;
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.15rem;
        font-size: 0.76rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--slate);
    }
}

@media (max-width: 640px) {
    .section,
    .navbar,
    .footer-inner {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .page-hero-inner,
    .landing-hero-inner,
    .cookie-inner {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .cards-grid,
    .mini-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
    }
}
