/* =========================================================
   DENTALFLOW IA — STYLES
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    --navy: #0d2137;
    --blue: #1a5cff;
    --blue-dark: #1347cc;
    --blue-light: #e8f0ff;
    --green: #22c55e;
    --green-dark: #16a34a;
    --bg-light: #f0f5ff;
    --bg-soft: #f8faff;
    --white: #ffffff;
    --text: #374151;
    --text-light: #6b7280;
    --border: #e5e7eb;

    --radius-card: 16px;
    --radius-pill: 9999px;
    --radius-sm: 8px;
    --radius-md: 12px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 12px 32px rgba(13, 33, 55, 0.12);
    --shadow-navbar: 0 2px 12px rgba(0, 0, 0, 0.06);

    --container-w: 1180px;
    --container-narrow: 820px;

    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 80px 0;
}

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 56px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 640px;
}

.section-subtitle + .section-subtitle {
    margin-top: 6px;
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 92, 255, 0.3);
}

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

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-green {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn-green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

.btn-white {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
    padding: 14px 32px;
    font-weight: 600;
}

.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: flex;
    width: 100%;
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-outline {
    border: 1.5px solid var(--blue);
    color: var(--blue);
    background: var(--white);
}

.badge-star {
    color: var(--blue);
    font-size: 0.9rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    transition: box-shadow 0.2s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-navbar);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link--active::after {
    width: 100%;
}

.nav-link--active {
    color: var(--blue);
}

.nav-link:hover {
    color: var(--blue);
}

.nav-cta {
    margin-left: 8px;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* ---------- Hero ---------- */
.hero {
    background: var(--white);
    padding: 80px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 580px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 24px 0 20px;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 460px;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5cff 0%, #0d2137 100%);
    box-shadow: 0 20px 60px rgba(13, 33, 55, 0.25);
}

.hero-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: inherit;
    display: block;
}

/* Floating elements */
.float {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.float svg {
    width: 24px;
    height: 24px;
}

.float-tl {
    top: 24px; left: 24px;
    animation: floatBob 3.2s ease-in-out infinite;
    animation-delay: 0s;
}
.float-tr {
    top: 24px; right: 24px;
    animation: floatBob 3.8s ease-in-out infinite;
    animation-delay: 0.6s;
}
.float-br {
    bottom: 24px; right: 24px;
    animation: floatBob 3.5s ease-in-out infinite;
    animation-delay: 1.2s;
}
.float-bl {
    bottom: 24px;
    left: 24px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    gap: 8px;
    display: flex;
    align-items: center;
    max-width: 220px;
}

.reminder-pill {
    border-radius: var(--radius-pill);
    animation: floatBob 4.1s ease-in-out infinite;
    animation-delay: 1.8s;
}

.check-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.check-dot svg {
    width: 12px;
    height: 12px;
}

.reminder-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.3;
}

/* ---------- Beneficios ---------- */
.section-benefits {
    background: var(--bg-soft);
}

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

.benefit-card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 92, 255, 0.12), 0 0 0 1px rgba(26, 92, 255, 0.08);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.benefit-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- Planes ---------- */
.section-plans {
    background: var(--white);
}

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

.plan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    box-shadow: 0 20px 48px rgba(26, 92, 255, 0.14), 0 0 0 1px rgba(26, 92, 255, 0.06);
}

.plan-card-featured {
    border: 2px solid var(--blue);
    transform: translateY(-16px);
    box-shadow: 0 20px 48px rgba(26, 92, 255, 0.18);
}

.plan-card-featured:hover {
    transform: translateY(-16px);
}

.plan-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: var(--white);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(26, 92, 255, 0.3);
}

.plan-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.plan-icon svg {
    width: 28px;
    height: 28px;
}

.plan-icon-gray {
    background: #f3f4f6;
}

.plan-icon-blue {
    background: var(--blue-light);
}

.plan-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.plan-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.plan-tagline em {
    font-style: italic;
}

.plan-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 20px;
}

.plan-description {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 24px;
}

.plan-includes-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.plan-features {
    margin-bottom: 24px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    border-radius: 50%;
    margin-top: 1px;
}

.check-icon svg {
    width: 14px;
    height: 14px;
}

.quote-box {
    background: var(--bg-light);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.quote-box p {
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 500;
    line-height: 1.5;
}

/* ---------- Quiénes somos ---------- */
.section-about {
    background: var(--bg-soft);
}

.about-intro {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-intro strong {
    color: var(--navy);
    font-weight: 600;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto 48px;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

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

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a5cff 0%, #0d2137 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 20px;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(26, 92, 255, 0.25);
    overflow: hidden;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.profile-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.profile-bio {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.mission-box {
    background: var(--blue-light);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.mission-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(26, 92, 255, 0.15);
}

.mission-icon .star {
    color: var(--blue);
    font-size: 1.75rem;
}

.mission-box p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.mission-box p strong {
    color: var(--navy);
}

.mission-highlight {
    margin-top: 16px !important;
}

/* ---------- FAQ ---------- */
.section-faq {
    background: var(--white);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--blue);
}

.faq-item.active {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(26, 92, 255, 0.08);
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px;
    text-align: left;
    transition: var(--transition);
}

.faq-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--blue);
    color: var(--white);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.faq-question {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}

.faq-chevron {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: transform 0.3s ease;
}

.faq-chevron svg {
    width: 20px;
    height: 20px;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-body-inner {
    padding: 0 20px 20px 68px;
}

.faq-body p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- CTA Final ---------- */
.section-cta-final {
    background: linear-gradient(135deg, #1a5cff 0%, #0099ff 50%, #22c55e 100%);
    background-size: 200% 200%;
    animation: ctaGradient 8s ease infinite;
    text-align: center;
    padding: 80px 24px;
}

.cta-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.cta-icon-star {
    color: var(--white);
    font-size: 1.75rem;
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-top: 24px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

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

.footer-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: var(--blue);
    flex-shrink: 0;
}

.footer-icon svg {
    width: 20px;
    height: 20px;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* =========================================================
   CHATBOT
   ========================================================= */

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 92, 255, 0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(26, 92, 255, 0); }
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

#chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

#chat-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 20px 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(26, 92, 255, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
    animation: chatPulse 2.8s ease-in-out infinite;
}

#chat-toggle:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

#chat-toggle.active {
    animation: none;
    background: var(--navy);
}

#chat-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.chat-icon-open  { display: block; }
.chat-icon-close { display: none;  }

#chat-toggle.active .chat-icon-open  { display: none;  }
#chat-toggle.active .chat-icon-close { display: block; }

#chat-window {
    width: 360px;
    height: 520px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(13, 33, 55, 0.22);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
}

#chat-window.open {
    display: flex;
    animation: chatSlideUp 0.25s ease forwards;
}

#chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--blue) 0%, #0d2137 100%);
    color: var(--white);
    flex-shrink: 0;
}

.chat-avatar-header {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-info { flex: 1; }

.chat-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
}

#chat-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

#chat-close:hover { color: var(--white); }

#chat-close svg { width: 16px; height: 16px; }

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-word;
}

.chat-msg--bot {
    background: var(--bg-light);
    color: var(--navy);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-msg--user {
    background: var(--blue);
    color: var(--white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-light);
    display: inline-block;
    animation: typingDot 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.30s; }

.chat-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 4px;
}

.chat-reply-btn {
    background: var(--white);
    color: var(--blue);
    border: 1.5px solid var(--blue);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.chat-reply-btn:hover,
.chat-reply-btn--primary {
    background: var(--blue);
    color: var(--white);
}

.chat-reply-btn--primary {
    padding: 9px 18px;
    font-size: 0.88rem;
}

.chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 2px 0 6px;
    align-self: flex-start;
    width: 100%;
}

.chat-suggestions .chat-reply-btn {
    text-align: left;
    white-space: normal;
    line-height: 1.35;
}

#chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 9px 14px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    color: var(--navy);
}

#chat-input:focus { border-color: var(--blue); }

#chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

#chat-send:hover { background: var(--blue-dark); }
#chat-send svg { width: 15px; height: 15px; }

@media (max-width: 480px) {
    #chat-widget { bottom: 16px; right: 16px; }
    #chat-window { width: calc(100vw - 32px); height: 480px; }
    .chat-label  { display: none; }
    #chat-toggle { padding: 14px; border-radius: 50%; }
}

/* =========================================================
   TESTIMONIOS
   ========================================================= */

.section-testimonials {
    background: var(--bg-light);
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 0 40px;
    padding: 12px 0 20px;
}

.testimonials-carousel::before,
.testimonials-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 0%, transparent 100%);
}

.testimonials-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 0%, transparent 100%);
}

.testimonials-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--border);
    width: 340px;
    flex-shrink: 0;
}

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

.testimonial-card--featured {
    border: 2px solid var(--blue);
    position: relative;
}

.testimonial-card--featured::before {
    content: 'Más popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 1.1rem;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text);
    flex: 1;
    font-style: italic;
}

.testimonial-metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.metric-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue);
    white-space: nowrap;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.author-clinic {
    font-size: 0.78rem;
    color: var(--text-light);
}

.testimonials-rating-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 32px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    width: fit-content;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.testimonials-rating-bar .rating-stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 1.2rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text);
}

@media (max-width: 968px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

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

    .plan-card-featured {
        transform: translateY(0);
    }

    .testimonial-card {
        width: 300px;
    }

    .testimonials-rating-bar {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .plan-card-featured:hover {
        transform: translateY(-16px);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .navbar-inner {
        height: 64px;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 16px 24px 24px;
        box-shadow: var(--shadow-navbar);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        align-items: stretch;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .nav-cta {
        margin-top: 12px;
        margin-left: 0;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 56px 0 64px;
    }

    .hero-image {
        max-width: 100%;
        height: 360px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-list li {
        justify-content: center;
    }

    .faq-header {
        padding: 16px;
        gap: 12px;
    }

    .faq-body-inner {
        padding: 0 16px 16px 60px;
    }

    .mission-box {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image {
        height: 320px;
    }

    .float-bl {
        max-width: 180px;
    }

    .reminder-text {
        font-size: 0.72rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .plan-card,
    .benefit-card,
    .profile-card {
        padding: 24px 20px;
    }

    .faq-question {
        font-size: 0.92rem;
    }

    .faq-body-inner {
        padding: 0 12px 16px 12px;
    }

    .faq-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
    background: var(--navy);
    padding: 56px 0 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
    max-width: 160px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--navy);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 2px solid var(--blue);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

#cookie-banner.hidden {
    display: none;
}

.cookie-text {
    flex: 1;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    color: var(--blue);
    text-decoration: underline;
}

.cookie-link:hover {
    color: #5a8fff;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn--accept {
    background: var(--blue);
    color: #fff;
}

.cookie-btn--accept:hover {
    background: var(--blue-dark);
}

.cookie-btn--reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--reject:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* =========================================================
   SCROLL-REVEAL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.plan-card-featured.reveal.visible {
    transform: translateY(-16px);
}

/* =========================================================
   HERO BLOBS
   ========================================================= */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.hero-blob--1 {
    width: 520px;
    height: 520px;
    background: rgba(26, 92, 255, 0.09);
    top: -140px;
    left: -100px;
    animation: blobMove1 9s ease-in-out infinite;
}

.hero-blob--2 {
    width: 420px;
    height: 420px;
    background: rgba(34, 197, 94, 0.07);
    bottom: -80px;
    right: 5%;
    animation: blobMove2 12s ease-in-out infinite;
}

@keyframes blobMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -30px) scale(1.06); }
    66%       { transform: translate(-20px, 20px) scale(0.96); }
}

@keyframes blobMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(-30px, 25px) scale(1.04); }
    70%       { transform: translate(20px, -15px) scale(0.97); }
}

/* Blob 3: violet top-right */
.hero-blob--3 {
    width: 380px;
    height: 380px;
    background: rgba(139, 92, 246, 0.07);
    top: 20px;
    right: -60px;
    animation: blobMove3 14s ease-in-out infinite;
}
/* Blob 4: azul claro centro */
.hero-blob--4 {
    width: 280px;
    height: 280px;
    background: rgba(26, 92, 255, 0.05);
    top: 40%;
    left: 35%;
    animation: blobMove4 18s ease-in-out infinite;
}
@keyframes blobMove3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    45%       { transform: translate(-35px, 30px) scale(1.07); }
    75%       { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes blobMove4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    35%       { transform: translate(30px, -25px) scale(1.05); }
    70%       { transform: translate(-25px, 15px) scale(0.93); }
}

/* Dot grid drift */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(26,92,255,0.07) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    animation: dotDrift 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}
@keyframes dotDrift {
    from { background-position: 0 0; }
    to   { background-position: 36px 36px; }
}

/* =========================================================
   PLAN CARD TILT
   ========================================================= */
.plan-card {
    will-change: transform;
}

/* =========================================================
   WAVE DIVIDER (stats → planes)
   ========================================================= */
.stats-wave {
    display: block;
    width: 100%;
    line-height: 0;
    margin-top: 32px;
}

.stats-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* =========================================================
   CURSOR SPOTLIGHT
   ========================================================= */
#cursor-glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 92, 255, 0.055) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9500;
    transform: translate(-50%, -50%);
    left: -999px;
    top: -999px;
    transition: left 0.12s ease, top 0.12s ease;
    will-change: left, top;
}

/* =========================================================
   HERO TITLE WORD ANIMATION
   ========================================================= */
.hero-title .word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.08em;
}

.hero-title .word {
    display: inline-block;
    transform: translateY(115%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, #0d2137 20%, #1a5cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-title .word.revealed {
    transform: translateY(0);
}

/* =========================================================
   MAGNETIC BUTTONS
   ========================================================= */
.btn-primary,
.btn-white {
    will-change: transform;
}

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #1a5cff, #22c55e);
    z-index: 99999;
    transition: width 0.1s linear;
}

/* =========================================================
   SCROLL HINT
   ========================================================= */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 40px;
    opacity: 0;
    animation: hintFadeIn 0.8s ease 1.5s forwards;
}

.scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #1a5cff, transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

.scroll-hint-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6b7280;
}

@keyframes hintFadeIn {
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.4; }
}

@media (max-width: 968px) {
    .scroll-hint { display: none; }
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button { cursor: none; }
}

#cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #1a5cff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    top: -20px;
    left: -20px;
    transition: top 0.05s linear, left 0.05s linear, transform 0.2s ease, background 0.2s ease;
    will-change: top, left;
}

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(26, 92, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    top: -50px;
    left: -50px;
    transition: top 0.15s ease, left 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    will-change: top, left;
}

body.cursor-hover #cursor-dot {
    transform: translate(-50%, -50%) scale(2.5);
    background: #22c55e;
}

body.cursor-hover #cursor-ring {
    width: 56px;
    height: 56px;
    border-color: rgba(34, 197, 94, 0.4);
}

/* =========================================================
   SECTION BACKGROUND ANIMATIONS
   ========================================================= */

/* --- Stats bar shimmer --- */
.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.045) 50%,
        transparent 70%
    );
    animation: statsShimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes statsShimmer {
    0%   { left: -60%; }
    100% { left: 130%; }
}

/* --- Section orbs (benefits + about) --- */
.section-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.section-benefits {
    position: relative;
    overflow: hidden;
}
.section-benefits .container {
    position: relative;
    z-index: 1;
}
.section-orb--benefits-1 {
    width: 400px;
    height: 400px;
    background: rgba(26, 92, 255, 0.06);
    top: -80px;
    right: -60px;
    animation: orbFloat1 12s ease-in-out infinite;
}
.section-orb--benefits-2 {
    width: 320px;
    height: 320px;
    background: rgba(34, 197, 94, 0.05);
    bottom: -60px;
    left: -40px;
    animation: orbFloat2 16s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(-30px, 25px); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(25px, -20px); }
}

.section-about {
    position: relative;
    overflow: hidden;
}
.section-about .container {
    position: relative;
    z-index: 1;
}
.section-orb--about {
    width: 450px;
    height: 450px;
    background: rgba(26, 92, 255, 0.06);
    top: -100px;
    left: -80px;
    animation: orbFloat1 14s ease-in-out infinite reverse;
}

/* --- Plans section radial glow --- */
.section-plans {
    position: relative;
    overflow: hidden;
}
.section-plans .container {
    position: relative;
    z-index: 1;
}
.section-plans::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(26,92,255,0.055) 0%, transparent 65%);
    animation: plansPulse 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes plansPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

/* --- CTA gradient animation --- */
@keyframes ctaGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================================
   NUEVAS SECCIONES — DentalFlow IA
   ========================================================= */

/* ---------- Navbar glass effect on scroll ---------- */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(200%) blur(20px);
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    box-shadow: 0 1px 0 rgba(13, 33, 55, 0.08), var(--shadow-navbar);
    border-bottom: 1px solid rgba(13, 33, 55, 0.06);
}

/* ---------- Social proof bar ---------- */
.social-proof-bar {
    background: linear-gradient(90deg, var(--navy) 0%, #1a3a5c 100%);
    padding: 10px 0;
}

.social-proof-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.sp-item strong {
    color: #fff;
    font-weight: 700;
}

.sp-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
}

@media (max-width: 640px) {
    .social-proof-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 4px;
        justify-items: center;
    }
    .sp-sep { display: none; }
}

/* ---------- Guarantee block ---------- */
.section-guarantee {
    padding: 40px 0 0;
}

.guarantee-block {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0ff 100%);
    border: 1.5px solid rgba(26, 92, 255, 0.2);
    border-radius: var(--radius-card);
    padding: 28px 36px;
    max-width: 820px;
    margin: 0 auto;
}

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

.guarantee-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.guarantee-text {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 640px) {
    .guarantee-block {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
}

/* ---------- Plan price ---------- */
.plan-price {
    margin: 12px 0 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.plan-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.03em;
}

.plan-price--featured .plan-price-amount {
    color: var(--blue);
}

.plan-price-note {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ---------- CTA final double buttons ---------- */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-outline-white {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ---------- Contact form section ---------- */
.section-contact {
    background: var(--bg-soft);
}

.contact-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 40px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.form-optional {
    font-weight: 400;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: none;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 92, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.contact-submit {
    width: 100%;
    justify-content: center;
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-weight: 500;
    font-size: 0.95rem;
}

.success-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: #22c55e;
}

.form-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.9rem;
}

.form-error a {
    color: var(--blue);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 20px; }
}

/* ---------- Footer additions ---------- */
.footer-rgpd {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin-top: 8px;
}

.footer-rgpd a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Ocultar botón "Enviar" externo inyectado por GHL en el DOM padre
   (cubre todos los posibles puntos de inyección: dentro de la sección,
   directamente en body, o como hermano del section) */
.section-contact button,
.section-contact input[type="submit"],
#contacto ~ button,
#contacto ~ input[type="submit"],
#contacto ~ form,
#contacto ~ form button,
body > button,
body > input[type="submit"] {
    display: none !important;
}
