*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --yellow: #F5C518;
  --yellow-dark: #e0b30f;
  --navy: #15213B;
  --navy-deep: #0c1322;
  --navy-soft: #111b30;
  --white: #FFFFFF;
  --gray: #8A99B3;
}
body { background: var(--navy-deep); color: var(--white); font-family: 'DM Sans', sans-serif; overflow-x: hidden; }
.inner { max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 48px; }

/* NAV */
nav { position: fixed; width: 100%; top: 0; z-index: 100; background: rgba(12,19,34,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 16px 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: inline-flex; align-items: center; transition: opacity 0.2s; }
.logo-link:hover { opacity: 0.8; }
.logo-img { height: 26px; width: auto; display: block; }
.footer-logo-img { height: 24px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--gray); text-decoration: none; font-size: 14px; transition: color 0.2s; position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px; background: var(--yellow); transition: width 0.25s ease; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--yellow); color: var(--navy-deep); padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,197,24,0.35); }

/* FLOAT BTN */
.float-btn { position: fixed; right: 24px; bottom: 24px; z-index: 200; background: rgba(21,33,59,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(245,197,24,0.3); color: var(--yellow); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.25s, transform 0.25s, box-shadow 0.25s; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.float-btn:hover { background: rgba(245,197,24,0.15); transform: translateY(-2px); }
.float-btn svg { transition: transform 0.3s ease; display: block; }
.float-btn.is-up svg { transform: rotate(180deg); }

/* HERO */
.hero {
  padding: 0; min-height: 0; display: flex; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0c1322 0%, #15213b 55%, #0c1322 100%);
}
.hero .inner { padding-top: 100px; padding-bottom: 60px; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: stretch; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,197,24,0.1); border: 1px solid rgba(245,197,24,0.2); color: var(--yellow); font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 100px; margin-bottom: 20px; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero h1 { font-family: 'DM Sans', sans-serif; font-size: 50px; font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 28px; max-width: 520px; }
.hero-buttons { display: flex; gap: 14px; align-items: center; }
.btn-primary { background: var(--yellow); color: var(--navy-deep); padding: 13px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 20px rgba(245,197,24,0.25); transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,197,24,0.4); }
.btn-secondary { color: var(--white); font-size: 14px; font-weight: 500; text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.btn-secondary:hover { opacity: 1; }

.hero-services { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.07); }
.hero-service { display: flex; gap: 12px; align-items: flex-start; }
.hero-service-icon { width: 36px; height: 36px; border-radius: 9px; background: rgba(245,197,24,0.12); color: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-service h4 { font-size: 14px; font-weight: 600; }
.hero-service p { font-size: 12.5px; color: var(--gray); margin: 2px 0 0; line-height: 1.5; }

.hero-visual { background: rgba(12,19,34,0.95); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 24px; animation: floatUp 3s ease-in-out infinite alternate; display: flex; flex-direction: column; backdrop-filter: blur(8px); box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
@keyframes floatUp { from{transform:translateY(0)} to{transform:translateY(-10px)} }
.mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-title { font-size: 13px; font-weight: 600; }
.mock-badge { background: rgba(245,197,24,0.15); color: var(--yellow); font-size: 11px; padding: 3px 10px; border-radius: 100px; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.mock-stat { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 12px; }
.mock-stat-val { font-size: 18px; font-weight: 700; color: var(--yellow); }
.mock-stat-lbl { font-size: 11px; color: var(--gray); margin-top: 2px; }
.mock-list { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.mock-row { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.03); padding: 9px 12px; border-radius: 7px; font-size: 12px; gap: 10px; }
.mock-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row-status { padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 500; flex-shrink: 0; }
.status-ok { background: rgba(100,210,120,0.15); color: #64d278; }
.status-pending { background: rgba(245,197,24,0.15); color: var(--yellow); }

/* SECTION BASE */
.section { padding: 64px 0; scroll-margin-top: 70px; }
.hero { scroll-margin-top: 0; }
.section-label { font-size: 11px; font-weight: 600; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.section-title { font-family: 'DM Sans', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 10px; line-height: 1.2; }
.section-sub { font-size: 15px; color: var(--gray); line-height: 1.7; max-width: 520px; }
.section-header-centered { text-align: center; }
.section-header-centered .section-sub { margin: 0 auto; }

/* SERVICIOS (cards) */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; align-items: stretch; }
.service-card { position: relative; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(245,197,24,0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.28); }
.service-card.featured { background: var(--navy); border-color: rgba(245,197,24,0.5); }
.service-card-badge { position: absolute; top: -11px; left: 26px; background: var(--yellow); color: var(--navy-deep); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 100px; }
.service-card-icon { width: 52px; height: 52px; border-radius: 13px; background: rgba(245,197,24,0.12); color: var(--yellow); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card.featured .service-card-icon { background: rgba(245,197,24,0.2); }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card > p { font-size: 13.5px; color: var(--gray); line-height: 1.65; margin-bottom: 18px; }
.service-card-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.service-card-list li { font-size: 13px; color: var(--gray); padding-left: 22px; position: relative; line-height: 1.45; }
.service-card-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }
.service-card-btn { margin-top: auto; align-self: flex-start; color: var(--yellow); font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid rgba(245,197,24,0.35); padding: 9px 18px; border-radius: 8px; transition: all 0.2s; }
.service-card-btn:hover { background: var(--yellow); color: var(--navy-deep); }

/* PORTAFOLIO */
.portfolio-section { background: rgba(21,33,59,0.3); }
.portfolio-filters { display: flex; justify-content: center; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.portfolio-filter { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--gray); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: 100px; cursor: pointer; transition: all 0.2s; }
.portfolio-filter:hover { color: var(--white); border-color: rgba(245,197,24,0.4); }
.portfolio-filter.active { background: var(--yellow); color: var(--navy-deep); border-color: var(--yellow); }
.portfolio-carousel { position: relative; margin-top: 32px; }
.portfolio-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 4px 22px; align-items: stretch; justify-content: safe center; scrollbar-width: none; -ms-overflow-style: none; }
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-card { flex: 0 0 340px; max-width: 340px; scroll-snap-align: start; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.portfolio-card:hover { transform: translateY(-6px); border-color: rgba(245,197,24,0.4); box-shadow: 0 16px 40px rgba(0,0,0,0.28); }
.portfolio-card.is-hidden { display: none; }
.portfolio-thumb { height: 200px; position: relative; overflow: hidden; background: #0b1424; }
.portfolio-thumb::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 28px; background: #0b1424; border-bottom: 1px solid rgba(255,255,255,0.07); z-index: 2; }
.portfolio-thumb::after { content: ''; position: absolute; top: 11px; left: 14px; width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; box-shadow: 13px 0 0 #febc2e, 26px 0 0 #28c840; z-index: 3; }
.portfolio-thumb img { position: absolute; top: 28px; left: 0; width: 100%; height: calc(100% - 28px); object-fit: cover; object-position: top center; display: block; transition: transform 0.45s ease; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
/* miniaturas antiguas (fallback CSS) */
.portfolio-thumb-iso { color: rgba(255,255,255,0.92); position: relative; z-index: 1; }
.thumb-dental { background: linear-gradient(135deg, #15213B 0%, #2b4d8a 100%); }
.thumb-vet { background: linear-gradient(135deg, #1a1340 0%, #6d5bd0 100%); }
.thumb-spa { background: linear-gradient(135deg, #2f3a2a 0%, #6b8e5a 100%); }
.portfolio-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1 1 auto; }
.portfolio-niche { display: inline-block; font-size: 11px; font-weight: 600; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; background: rgba(245,197,24,0.1); padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }
.portfolio-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.portfolio-body p { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 18px; }
.portfolio-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--white); font-size: 13px; font-weight: 600; text-decoration: none; padding: 10px 18px; border-radius: 8px; transition: all 0.2s; }
.portfolio-btn:hover { background: var(--yellow); color: var(--navy-deep); border-color: var(--yellow); }

/* SOBRE NOSOTROS */
.about-section { background: rgba(245,197,24,0.04); border-top: 1px solid rgba(245,197,24,0.1); border-bottom: 1px solid rgba(245,197,24,0.1); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; margin-top: 40px; }
.about-text { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 28px; }
.about-text p { font-size: 14px; color: var(--gray); line-height: 1.8; margin-bottom: 14px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.about-value { display: flex; align-items: flex-start; gap: 12px; }
.about-value-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.about-value h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.about-value p { font-size: 12px; color: var(--gray); line-height: 1.5; margin: 0; }
.about-numbers { display: flex; flex-direction: column; gap: 12px; }
.about-number-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 20px 24px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.about-number-val { font-family: 'DM Sans', sans-serif; font-size: 34px; font-weight: 800; color: var(--yellow); }
.about-number-lbl { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* PRECIOS */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 40px auto 0; }
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1000px; }
.pricing-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 36px 30px; text-align: center; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-4px); border-color: rgba(245,197,24,0.3); }
.pricing-card.featured { background: var(--navy); border-color: var(--yellow); position: relative; }
.pricing-featured-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--navy-deep); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 100px; white-space: nowrap; }
.pricing-label { font-size: 13px; color: var(--gray); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.pricing-value { font-family: 'DM Sans', sans-serif; font-size: 34px; font-weight: 800; margin: 6px 0; }
.pricing-value span { font-size: 13px; color: var(--gray); font-family: 'DM Sans', sans-serif; font-weight: 500; }
.pricing-desc { font-size: 12.5px; color: var(--gray); margin-top: 6px; line-height: 1.5; margin-bottom: 20px; }
.pricing-features { list-style: none; text-align: left; margin: 8px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.pricing-btn { display: block; background: rgba(255,255,255,0.07); color: var(--white); border: 1px solid rgba(255,255,255,0.15); padding: 12px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; text-align: center; transition: all 0.2s; margin-top: auto; }
.pricing-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.pricing-btn-featured { background: var(--yellow); color: var(--navy-deep); border-color: var(--yellow); }
.pricing-btn-featured:hover { background: var(--yellow-dark); box-shadow: 0 4px 16px rgba(245,197,24,0.4); }

/* FAQ */
.faq-section { background: rgba(21,33,59,0.2); }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; max-width: 860px; margin-left: auto; margin-right: auto; }
.faq-item { border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: rgba(245,197,24,0.25); }
.faq-question { width: 100%; background: rgba(255,255,255,0.02); border: none; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; padding: 18px 20px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background 0.2s; }
.faq-question:hover { background: rgba(255,255,255,0.04); }
.faq-question.active { color: var(--yellow); }
.faq-icon { width: 20px; height: 20px; border-radius: 50%; background: rgba(245,197,24,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s; }
.faq-question.active .faq-icon { transform: rotate(45deg); background: rgba(245,197,24,0.2); }
.faq-answer { font-size: 13px; color: var(--gray); line-height: 1.7; padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 400px; padding: 0 20px 18px; }

/* CONTACTO */
.contact-section { background: rgba(21,33,59,0.3); }
.contact-form { max-width: 640px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--white); }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 12px 14px; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color 0.2s, background 0.2s; width: 100%; resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(138,153,179,0.7); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--yellow); background: rgba(255,255,255,0.06); }
.form-field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238A99B3' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-field select option { background: var(--navy); color: var(--white); }
.form-submit { background: #25D366; color: white; border: none; padding: 14px 24px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; box-shadow: 0 4px 20px rgba(37,211,102,0.22); }
.form-submit:hover { transform: translateY(-2px); background: #20c25e; box-shadow: 0 8px 28px rgba(37,211,102,0.4); }
.form-note { font-size: 12.5px; color: var(--gray); text-align: center; min-height: 16px; }
.form-note.error { color: #e05555; }

/* CTA */
.cta-section { text-align: center; padding: 70px 0; border-top: 1px solid rgba(255,255,255,0.05); scroll-margin-top: 70px; }
.cta-section h2 { font-family: 'DM Sans', sans-serif; font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.15; }
.cta-section p { font-size: 15px; color: var(--gray); margin-bottom: 28px; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 10px; background-image: linear-gradient(180deg, #2bdd6e 0%, #1aa34c 100%); color: #fff; padding: 14px 30px; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.2px; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 2px 10px rgba(37,211,102,0.16); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.whatsapp-btn svg, .whatsapp-btn span { position: relative; z-index: 1; }
.whatsapp-btn svg { width: 21px; height: 21px; flex-shrink: 0; }
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 14px rgba(37,211,102,0.22); }
.whatsapp-btn:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 2px 8px rgba(37,211,102,0.18); }

/* FOOTER */
.footer-main { background: #080d18; border-top: 1px solid rgba(255,255,255,0.06); padding: 60px 0 0; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-tagline { font-size: 13px; color: var(--gray); line-height: 1.6; max-width: 240px; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--gray); text-decoration: none; transition: all 0.2s; }
.social-btn:hover { background: rgba(245,197,24,0.15); border-color: rgba(245,197,24,0.3); color: var(--yellow); transform: translateY(-2px); }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col-title { font-size: 12px; font-weight: 600; color: var(--white); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--gray); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }
.footer-text { font-size: 12px; color: var(--gray); }

/* COOKIE BANNER */
.cookie-banner { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 300; max-width: 720px; margin: 0 auto; background: rgba(17,27,48,0.28); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); border: 1px solid rgba(245,197,24,0.20); border-radius: 14px; padding: 18px 22px; display: none; align-items: center; justify-content: space-between; gap: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.22), 0 14px 30px -16px rgba(0,0,0,0.32); }
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 13px; color: var(--gray); line-height: 1.5; margin: 0; }
.cookie-banner a { color: var(--yellow); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { border: none; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.cookie-accept { background: var(--yellow); color: var(--navy-deep); }
.cookie-accept:hover { background: var(--yellow-dark); }
.cookie-reject { background: rgba(255,255,255,0.06); color: var(--gray); border: 1px solid rgba(255,255,255,0.12); }
.cookie-reject:hover { color: var(--white); }

/* SCROLL ANIMATIONS */
[data-anim] { opacity: 0; will-change: opacity, transform; transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1); }
[data-anim="fade-up"] { transform: translateY(36px); }
[data-anim="fade-down"] { transform: translateY(-36px); }
[data-anim="fade-left"] { transform: translateX(-36px); }
[data-anim="fade-right"] { transform: translateX(36px); }
[data-anim].visible { opacity: 1 !important; transform: translate(0,0); }

/* TOOLS CAROUSEL */
.carousel-section { background: #0a1120; border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden; position: relative; padding: 40px 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.carousel-label { text-align: center; font-size: 11px; font-weight: 600; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 24px; }
.carousel-track-wrapper { position: relative; overflow: hidden; max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.carousel-track-wrapper::before, .carousel-track-wrapper::after { content: ''; position: absolute; top: 0; width: 120px; height: 100%; z-index: 2; pointer-events: none; }
.carousel-track-wrapper::before { left: 0; background: linear-gradient(to right, #0a1120, transparent); }
.carousel-track-wrapper::after { right: 0; background: linear-gradient(to left, #0a1120, transparent); }
.carousel-track { display: flex; gap: 64px; width: max-content; animation: carouselScroll 32s linear infinite; will-change: transform; }
.carousel-track:hover { animation-play-state: paused; }
@keyframes carouselScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.carousel-item { display: flex; align-items: center; gap: 12px; opacity: 0.55; transition: opacity 0.3s; white-space: nowrap; cursor: default; }
.carousel-item:hover { opacity: 1; }
.carousel-item svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--white); }
.carousel-item span { font-size: 16px; font-weight: 500; color: var(--white); }
.carousel-section [data-anim="fade-up"] { transform: none; }
.carousel-section [data-anim="fade-up"].visible { transform: none; }

/* RESPONSIVE */
@media(max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid-3 { grid-template-columns: 1fr; max-width: 440px; }
}
@media(max-width: 768px) {
  .inner { padding: 0 24px; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { align-items: center; text-align: center; }
  .footer-tagline { max-width: 340px; margin: 0 auto; }
  .footer-social { justify-content: center; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
  .carousel-track-wrapper::before, .carousel-track-wrapper::after { width: 50px; }
}

/* ============ PÁGINAS LEGALES ============ */
.legal-wrap { max-width: 820px; margin: 0 auto; padding: 120px 48px 80px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-size: 13px; font-weight: 600; text-decoration: none; margin-bottom: 28px; }
.legal-back:hover { text-decoration: underline; }
.legal-wrap h1 { font-family: 'DM Sans', sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--gray); margin-bottom: 32px; }
.legal-wrap h2 { font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 700; color: var(--white); margin: 32px 0 12px; }
.legal-wrap p, .legal-wrap li { font-size: 14.5px; color: var(--gray); line-height: 1.8; }
.legal-wrap p { margin-bottom: 14px; }
.legal-wrap ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.legal-wrap li { padding-left: 22px; position: relative; }
.legal-wrap li::before { content: ''; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; }
.legal-wrap a { color: var(--yellow); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }
.legal-wrap strong { color: var(--white); font-weight: 600; }
@media(max-width: 768px) { .legal-wrap { padding: 100px 24px 60px; } .legal-wrap h1 { font-size: 28px; } }

/* ============================================================
   CAPA PREMIUM — atmósfera, aire y detalles finos
   Bloque aditivo. Ajusta intensidades aquí o elimínalo para revertir.
   ============================================================ */

/* --- Atmósfera global: resplandor azul muy sutil --- */
body {
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(900px 620px at 100% 0%, rgba(45,80,150,0.12), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* --- HERO: degradado base limpio (sin resplandores) --- */
.hero {
  background: linear-gradient(160deg, #0c1322 0%, #121d34 55%, #0b1120 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 28% 32%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 85% 75% at 28% 32%, #000 18%, transparent 76%);
}
.hero .inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 84px; }

/* --- Más presencia tipográfica --- */
.hero h1 { font-size: 58px; letter-spacing: -1.6px; line-height: 1.08; }
.hero p { font-size: 16.5px; }
.section-title { font-size: 38px; letter-spacing: -0.7px; }

/* --- Más aire en todas las secciones --- */
.section { padding: 96px 0; position: relative; }
.cta-section { padding: 112px 0; }
.services-grid { margin-top: 56px; gap: 26px; }
.portfolio-carousel { margin-top: 40px; }
.pf-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(21,33,59,0.92); border: 1px solid rgba(245,197,24,0.35); color: var(--yellow); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, opacity 0.2s, transform 0.2s; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.pf-arrow:hover { background: var(--yellow); color: var(--navy-deep); }
.pf-prev { left: -8px; }
.pf-next { right: -8px; }
.pf-arrow.is-disabled { opacity: 0; pointer-events: none; }
.pf-arrow.is-gone { display: none; }
.portfolio-track.is-grabbing { cursor: grabbing; scroll-behavior: auto; }
.portfolio-track.is-grabbing .portfolio-card { pointer-events: none; }
@media (max-width: 640px) {
  .portfolio-card { flex-basis: 84%; max-width: 84%; }
  .pf-prev { left: 2px; }
  .pf-next { right: 2px; }
}
.about-grid { margin-top: 52px; }
.pricing-grid { margin-top: 52px; }
.faq-list { margin-top: 48px; }
.contact-form { margin-top: 48px; }
.hero-services { margin-top: 44px; padding-top: 34px; gap: 16px; }

/* --- Divisor hairline elegante entre secciones --- */
.section::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1100px, 84%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
}
/* La sección "nosotros" usa la atmósfera, sin sus bordes amarillos duros */
.about-section { border-top: none; border-bottom: none; }

/* --- Eyebrow con líneas finas a los lados --- */
.section-label { display: inline-flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--yellow)); }
.section-header-centered .section-label { justify-content: center; }
.section-header-centered .section-label::after { content: ''; width: 26px; height: 1px; background: linear-gradient(90deg, var(--yellow), transparent); }

/* --- Profundidad en las tarjetas (sombras multicapa, sin banding) --- */
.service-card, .portfolio-card, .pricing-card, .about-number-item, .about-text {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 2px 6px rgba(0,0,0,0.16), 0 8px 18px -10px rgba(0,0,0,0.30);
}
.service-card:hover, .portfolio-card:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 10px rgba(0,0,0,0.20), 0 14px 30px -14px rgba(0,0,0,0.34), 0 0 0 1px rgba(245,197,24,0.2);
}
.service-card.featured {
  box-shadow: 0 0 0 1px rgba(245,197,24,0.28), 0 4px 12px rgba(0,0,0,0.22), 0 12px 28px -14px rgba(0,0,0,0.36);
}
.pricing-card.featured {
  box-shadow: 0 0 0 1px rgba(245,197,24,0.32), 0 4px 12px rgba(0,0,0,0.22), 0 12px 28px -14px rgba(0,0,0,0.36);
}
.hero-visual { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 6px rgba(0,0,0,0.18), 0 8px 18px rgba(0,0,0,0.16), 0 18px 36px -16px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.05); }

/* --- Botones amarillos con acabado más rico --- */
.btn-primary, .nav-cta, .pricing-btn-featured, .cookie-accept {
  background-image: linear-gradient(180deg, #ffdc52 0%, var(--yellow) 100%);
}

/* --- Responsive de la capa premium --- */
@media(max-width: 768px) {
  .hero h1 { font-size: 40px; letter-spacing: -1px; }
  .section-title { font-size: 30px; }
  .section { padding: 72px 0; }
  .hero .inner { padding-top: 104px; padding-bottom: 64px; }
}

/* --- Ajuste: menos resplandor en botones (hover/clic más sobrio) --- */
.btn-primary { box-shadow: 0 2px 10px rgba(245,197,24,0.16); }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(245,197,24,0.22); }
.nav-cta:hover { box-shadow: 0 3px 12px rgba(245,197,24,0.18); }
.pricing-btn-featured:hover { box-shadow: 0 3px 12px rgba(245,197,24,0.20); }
.form-submit { box-shadow: 0 2px 12px rgba(37,211,102,0.14); }
.form-submit:hover { box-shadow: 0 5px 16px rgba(37,211,102,0.20); }

/* --- Panel del hero interactivo (pestañas + progreso) --- */
.hero-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.hero-tab { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--gray); font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 600; padding: 7px 6px; border-radius: 8px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; white-space: nowrap; }
.hero-tab:hover { color: var(--white); }
.hero-tab.active { background: rgba(245,197,24,0.14); border-color: rgba(245,197,24,0.5); color: var(--yellow); }
.hero-progress { height: 2px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 2px; }
.hero-panel-body { transition: opacity .3s ease; }
.hero-panel-body.is-fading { opacity: 0; }

/* --- Gráficos interactivos por servicio (panel del hero) --- */
.hero-panel-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.hero-panel-body .mock-list { flex: 0 0 auto; }
.hero-graphic { flex: 1 1 auto; min-height: 118px; margin-top: 14px; padding: 8px 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hg { width: 100%; height: 100%; }
@keyframes hgFade { to { opacity: 1; } }
@keyframes hgDraw { to { stroke-dashoffset: 0; } }
@keyframes hgPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ============ GRÁFICOS INTERACTIVOS DEL PANEL DEL HERO ============ */
.hero-visual { overflow: hidden; }
.hero-panel-body { flex: 1; display: flex; flex-direction: column; }
.hero-panel-body .mock-list { flex: 0 0 auto; }
.hero-graphic { flex: 1 1 auto; min-height: 118px; margin-top: 14px; display: flex; }
.hero-graphic .hg { width: 100%; height: 100%; display: block; }

/* --- WEB: armado de la página --- */
@keyframes hgUp { to { opacity: 1; transform: translateY(0); } }
.g-web .wb { opacity: 0; transform: translateY(8px); transform-box: fill-box; animation: hgUp .5s ease forwards; }
.g-web .wb1 { animation-delay: .10s } .g-web .wb2 { animation-delay: .25s } .g-web .wb3 { animation-delay: .40s }
.g-web .wb4 { animation-delay: .55s } .g-web .wb5 { animation-delay: .70s } .g-web .wb6 { animation-delay: .85s }
.g-web .wb4 { transition: fill .2s; } .g-web:hover .wb4 { fill: rgba(245,197,24,0.32); }

/* --- FLUJO: nodos + conexiones + pulso --- */
.g-flow .conn { fill: none; stroke: rgba(245,197,24,0.45); stroke-width: 1.5; stroke-dasharray: 4 5; animation: hgDash 1.1s linear infinite; }
@keyframes hgDash { to { stroke-dashoffset: -36; } }
.g-flow .node .nbox { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.16); stroke-width: 1; transition: fill .2s, stroke .2s; }
.g-flow .node text { fill: var(--white); font-size: 7.5px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; font-family: 'DM Sans', sans-serif; }
.g-flow .node { opacity: 0; transform: scale(.85); transform-box: fill-box; transform-origin: center; animation: hgPop .4s ease forwards; }
.g-flow .n1 { animation-delay: .05s } .g-flow .n2 { animation-delay: .18s } .g-flow .n3 { animation-delay: .30s } .g-flow .n4 { animation-delay: .40s } .g-flow .n5 { animation-delay: .50s } .g-flow .n6 { animation-delay: .62s }
@keyframes hgPop { to { opacity: 1; transform: scale(1); } }
.g-flow .node { cursor: pointer; }
.g-flow .node:hover .nbox, .g-flow .node.is-hot .nbox { fill: rgba(245,197,24,0.10); stroke: rgba(245,197,24,0.65); }
.g-flow .conn.is-hot { stroke: #F5C518; stroke-width: 2.2; filter: drop-shadow(0 0 3px rgba(245,197,24,0.6)); }
.g-flow .pulse { display: none; }
@supports (offset-path: path("M0 0 L1 1")) {
  .g-flow .pulse { display: block; offset-distance: 0%; animation: hgFlow 2.6s linear infinite; }
  .g-flow .p1 { offset-path: path("M35,64 L113,64 C150,44 150,30 191,21 C232,26 236,48 269,64"); }
  .g-flow .p2 { offset-path: path("M35,64 L269,64"); animation-delay: .9s; }
  .g-flow .p3 { offset-path: path("M35,64 L113,64 C150,86 150,100 191,107 C232,102 236,80 269,64"); animation-delay: 1.7s; }
  @keyframes hgFlow { to { offset-distance: 100%; } }
}

/* --- Respeto a "reducir movimiento" --- */
@media (prefers-reduced-motion: reduce) {
  .hg, .hg * { animation: none !important; }
  .g-web .wb, .g-flow .node { opacity: 1 !important; transform: none !important; }
  .g-flow .pulse { display: none !important; }
}

/* ============ INTERACTIVIDAD EXTRA + FORMULARIO PREMIUM ============ */
/* Web: bloques sin interacción visual */
.g-web .wb { cursor: pointer; }

/* --- Contacto premium: dos columnas --- */
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 44px; align-items: stretch; max-width: 980px; margin: 48px auto 0; }
.contact-grid .contact-form { max-width: none; margin: 0; background: transparent; border: none; padding: 0; }
.contact-aside { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.contact-aside-title { font-size: 23px; font-weight: 700; line-height: 1.25; letter-spacing: -0.4px; margin-bottom: 20px; }
.contact-perks { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.contact-perks li { font-size: 14px; color: var(--gray); padding-left: 28px; position: relative; line-height: 1.4; }
.contact-perks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: rgba(37,211,102,0.15); }
.contact-perks li::after { content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 3px; border-left: 1.6px solid #25D366; border-bottom: 1.6px solid #25D366; transform: rotate(-45deg); }

/* Chat animado */
.contact-chat { background: rgba(12,19,34,0.7); border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; padding: 14px; flex: 1 1 auto; min-height: 280px; display: flex; flex-direction: column; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 16px 38px -22px rgba(0,0,0,0.45); }
.cchat-header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.cchat-iso { width: 36px; height: 36px; border-radius: 50%; background: rgba(245,197,24,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cchat-iso img { display: block; }
.cchat-name { font-size: 13px; font-weight: 700; }
.cchat-status { font-size: 11px; color: #25D366; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.cchat-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #25D366; }
.cchat-body { display: flex; flex-direction: column; gap: 9px; flex: 1 1 auto; }
.cbubble { max-width: 80%; font-size: 12.5px; line-height: 1.45; padding: 9px 12px; border-radius: 13px; opacity: 0; transform: translateY(8px); }
.cb-in { align-self: flex-start; background: rgba(255,255,255,0.07); border-bottom-left-radius: 3px; }
.cb-out { align-self: flex-end; background: rgba(37,211,102,0.16); border: 1px solid rgba(37,211,102,0.3); border-bottom-right-radius: 3px; }
.cb-typing { align-self: flex-start; background: rgba(255,255,255,0.07); display: flex; gap: 4px; padding: 12px 14px; border-bottom-left-radius: 3px; }
.cb-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gray); display: block; }
/* Campo de mensaje que crece para alinear el botón abajo (simetría) */
.contact-form .form-field-grow { flex: 1 1 auto; }
.contact-form .form-field-grow textarea { height: 100%; min-height: 120px; }

/* Chat siempre en movimiento (bucle continuo, independiente del scroll) */
.contact-chat .cbubble { animation-duration: 13s; animation-iteration-count: infinite; animation-timing-function: ease; }
.contact-chat .cb1 { animation-name: cb1L; }
.contact-chat .cb2 { animation-name: cb2L; }
.contact-chat .cb3 { animation-name: cb3L; }
.contact-chat .cb4 { animation-name: cb4L; }
.contact-chat .cb5 { animation-name: cb5L; }
.contact-chat .cb6 { animation-name: cb6L; }
@keyframes cb1L { 0%,2% { opacity: 0; transform: translateY(8px); } 6%,94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes cb2L { 0%,11% { opacity: 0; transform: translateY(8px); } 15%,94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes cb3L { 0%,22% { opacity: 0; transform: translateY(8px); } 26%,94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes cb4L { 0%,33% { opacity: 0; transform: translateY(8px); } 37%,94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes cb5L { 0%,44% { opacity: 0; transform: translateY(8px); } 48%,94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes cb6L { 0%,55% { opacity: 0; transform: translateY(8px); } 59%,94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
.contact-chat .cb-typing span { animation: cbType 1s infinite ease-in-out; }
.contact-chat .cb-typing span:nth-child(2) { animation-delay: .15s }
.contact-chat .cb-typing span:nth-child(3) { animation-delay: .3s }
@keyframes cbType { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .contact-chat .cbubble { animation: none !important; opacity: 1 !important; transform: none !important; }
  .contact-chat .cb-typing span { animation: none !important; }
}

@media(max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-aside-title { font-size: 20px; }
}

/* ============ FORMULARIO COMPLETO (Netlify) ============ */
.hp-field { display: none; }
/* Botón de envío en amarillo de marca (ya no WhatsApp) */
.form-submit { background: linear-gradient(180deg, #ffdc52 0%, var(--yellow) 100%); color: var(--navy-deep); box-shadow: 0 2px 8px rgba(245,197,24,0.10); transition: transform .18s ease, box-shadow .25s ease, filter .2s ease; }
.form-submit:hover { background: linear-gradient(180deg, #ffdc52 0%, var(--yellow) 100%); filter: brightness(0.96); box-shadow: 0 5px 14px rgba(245,197,24,0.16); }
.form-submit:active { transform: translateY(0); filter: brightness(0.9); transition-duration: .06s; }
.form-submit:disabled { opacity: .6; cursor: default; box-shadow: none; filter: none; transform: none; }
/* Línea alternativa de WhatsApp */
/* Footer del formulario (política de datos) */
.form-privacy { font-size: 12px; color: var(--gray); text-align: center; margin-top: 4px; line-height: 1.5; }
.form-privacy strong { color: var(--white); font-weight: 700; }
.form-privacy a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.form-privacy a:hover { text-decoration: underline; }
/* La nota no reserva espacio cuando está vacía (mantiene la simetría) */
.form-note { min-height: 0; }
/* Estado de éxito */
/* ===== POP DE ÉXITO (mensaje enviado) ===== */
.success-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(8,13,24,0.72); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; padding: 20px; }
.success-overlay.is-open { opacity: 1; visibility: visible; }
.success-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.success-card { position: relative; background: linear-gradient(180deg,#1a2742,#131d33); border: 1px solid rgba(245,197,24,0.25); border-radius: 22px; padding: 38px 32px 30px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.55); transform: scale(0.7) translateY(20px); opacity: 0; }
.success-overlay.is-open .success-card { animation: successPop .6s cubic-bezier(.18,.89,.32,1.28) forwards; }
@keyframes successPop { to { transform: scale(1) translateY(0); opacity: 1; } }
.success-check { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #28c765, #1aa34c); display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 14px rgba(37,211,102,0.22); transform: scale(0); }
.success-overlay.is-open .success-check { animation: checkBounce .7s cubic-bezier(.18,.89,.32,1.5) .15s forwards; }
@keyframes checkBounce { 0% { transform: scale(0) rotate(-25deg); } 60% { transform: scale(1.18) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.success-check svg { width: 40px; height: 40px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.success-overlay.is-open .success-check svg { animation: checkDraw .4s ease .55s forwards; }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.success-card h3 { font-size: 23px; font-weight: 800; margin-bottom: 8px; }
.success-card p { font-size: 14.5px; color: var(--gray); line-height: 1.6; margin-bottom: 22px; }
.success-actions { display: flex; flex-direction: column; gap: 10px; }
.success-close { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--white); font-weight: 600; font-size: 14px; padding: 11px; border-radius: 10px; cursor: pointer; transition: background .2s; }
.success-close:hover { background: rgba(255,255,255,0.12); }
@media (prefers-reduced-motion: reduce) {
  .success-overlay.is-open .success-card, .success-overlay.is-open .success-check, .success-overlay.is-open .success-check svg { animation: none; }
  .success-card { transform: none; opacity: 1; }
  .success-check { transform: scale(1); }
  .success-check svg { stroke-dashoffset: 0; }
}


/* Grid del hero por encima del fondo de partículas */
.hero-grid { position: relative; z-index: 2; }

/* ============ FORMULARIO EN CAJA VISUAL (FORM-CARD) ============ */
.form-card { background: transparent; border: none; border-radius: 0; padding: 0; box-shadow: none; }
.form-card .contact-form { max-width: none; margin: 0; }

/* Formulario como tarjeta simétrica con el chat (para HostGator) */
.contact-grid .contact-form { 
  background: rgba(12,19,34,0.7); 
  border: 1px solid rgba(255,255,255,0.10); 
  border-radius: 16px; 
  padding: 28px;
}

/* Capas del panel del hero por encima del fondo */
.hero-tabs { position: relative; z-index: 1; }
#heroProgress { position: relative; z-index: 1; }
#heroPanelBody { position: relative; z-index: 1; }

/* Aumentar altura del chat para simetría */
.cchat-body { min-height: 260px; }

/* Bajar brillo de hover en gráficos (menos resplandor) */
.g-web .wb:hover { filter: brightness(1.15) drop-shadow(0 0 2px rgba(245,197,24,0.3)); }
.g-flow .node:hover .nbox { filter: brightness(1.1); }

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

/* ============ HERO BACKGROUND INTERACTIVO (Nodos/Constelación) ============ */
.hero { position: relative; overflow: hidden; }
.hero-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.55; z-index: 1; }
.hero-particles circle { fill: rgba(205,218,240,0.62); }
.hero-particles .hp-link { stroke: rgba(152,174,208,0.55); stroke-width: 0.45; }
.hero-particles .hp-spider { stroke: rgba(245,197,24,0.6); stroke-width: 0.65; }

/* Asegurar que el contenido del hero esté encima del background */
.hero-grid { position: relative; z-index: 2; }

/* ============ MINI DASHBOARD INTERACTIVO (panel Datos) ============ */
.g-dash .dgrid { stroke: rgba(255,255,255,0.07); stroke-width: 1; stroke-dasharray: 2 3; }
.g-dash .dbase { stroke: rgba(255,255,255,0.16); stroke-width: 1; }
.g-dash .daxis { fill: rgba(255,255,255,0.4); font: 600 7px 'DM Sans', sans-serif; }
.g-dash .daxis.day { text-anchor: end; }
.g-dash .daxis.dax { text-anchor: middle; }
.g-dash .darea { opacity: 0; animation: dFade .7s ease .9s forwards; }
.g-dash .dline { fill: none; stroke: #F5C518; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: dDraw 1.2s ease .2s forwards; }
@keyframes dDraw { to { stroke-dashoffset: 0; } }
.g-dash .ddot { fill: #ffe08a; opacity: 0; animation: dFade .3s ease forwards; transition: r .15s, filter .15s; }
.g-dash .ddot.is-hot { r: 2.8; filter: drop-shadow(0 0 4px rgba(245,197,24,0.7)); }
.g-dash .ddot:nth-of-type(1) { animation-delay: 1.0s } .g-dash .ddot:nth-of-type(2) { animation-delay: 1.07s } .g-dash .ddot:nth-of-type(3) { animation-delay: 1.14s } .g-dash .ddot:nth-of-type(4) { animation-delay: 1.21s } .g-dash .ddot:nth-of-type(5) { animation-delay: 1.28s } .g-dash .ddot:nth-of-type(6) { animation-delay: 1.35s } .g-dash .ddot:nth-of-type(7) { animation-delay: 1.42s }
@keyframes dFade { to { opacity: 1; } }
.g-dash .dhot { fill: transparent; cursor: pointer; }
.g-dash .dtip { transition: opacity .15s; pointer-events: none; }
.g-dash .dtip rect { fill: rgba(12,19,34,0.96); stroke: rgba(245,197,24,0.5); stroke-width: 1; }
.g-dash .dtip text { fill: #F5C518; font: 700 8px 'DM Sans', sans-serif; text-anchor: middle; }
@media (prefers-reduced-motion: reduce) {
  .g-dash .dline { animation: none !important; stroke-dashoffset: 0 !important; }
  .g-dash .ddot { animation: none !important; opacity: 1 !important; }
  .g-dash .darea { animation: none !important; opacity: 1 !important; }
}




@media (max-width: 768px) {
}

/* ============ PRELOADER (pantalla de carga) ============ */
.preloader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: radial-gradient(600px 400px at 50% 40%, #121d34, var(--navy-deep)); transition: opacity 0.45s ease, visibility 0.45s ease; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader-logo { width: 54px; height: 54px; animation: preBeat 1.4s ease-in-out infinite; }
.preloader-spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid rgba(245,197,24,0.16); border-top-color: var(--yellow); animation: preSpin 0.8s linear infinite; }
@keyframes preSpin { to { transform: rotate(360deg); } }
@keyframes preBeat { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.82; } }
@media (prefers-reduced-motion: reduce) { .preloader-logo, .preloader-spinner { animation: none; } }

/* ============ SCROLLBAR PERSONALIZADA ============ */
html { scrollbar-width: thin; scrollbar-color: var(--yellow) rgba(255,255,255,0.04); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(12,19,34,0.7); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffdc52 0%, var(--yellow-dark) 100%); border-radius: 10px; border: 2px solid var(--navy-deep); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--yellow) 0%, #c9970a 100%); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

/* ============ ENCUADRE: solo el hero ocupa la pantalla inicial ============ */
.hero { min-height: 100vh; }

/* ============ ENCUADRE: contacto a pantalla completa, centrado ============ */
.contact-section {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 92px; padding-bottom: 56px;
  scroll-margin-top: 0;
}
.contact-section .contact-form { margin-top: 32px; gap: 14px; }

/* En pantallas no tan altas o móvil, que no fuerce alturas y fluya natural */
@media (max-height: 720px) {
  .hero { min-height: auto; }
  .contact-section { min-height: auto; padding-top: 110px; padding-bottom: 72px; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .contact-section { min-height: auto; padding-top: 96px; padding-bottom: 64px; }
}

/* ===== MENÚ MÓVIL (hamburguesa) ===== */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; margin: 0 auto; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0; list-style: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(12,19,34,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    padding: 0 24px;
    transition: max-height .35s ease, opacity .25s ease, visibility .25s ease, padding .35s ease;
  }
  nav.is-open .nav-links { max-height: 82vh; opacity: 1; visibility: visible; padding: 6px 24px 18px; }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 15px 2px; font-size: 15px; }
  .nav-links a::after { display: none; }
}

/* ===== BOTÓN AGENDAR CITA (sección contacto) ===== */
.form-actions { display: flex; gap: 12px; align-items: stretch; }
.form-actions .form-submit { flex: 1; }
.schedule-btn, .schedule-btn:link, .schedule-btn:visited, .schedule-btn:active { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 16px; border-radius: 10px; background: rgba(245,197,24,0.08); border: 1px solid rgba(245,197,24,0.3); color: var(--yellow); font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .2s ease, transform .15s ease, box-shadow .2s ease; }
.schedule-btn:hover { background: rgba(245,197,24,0.14); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,197,24,0.12); color: var(--yellow); text-decoration: none; }
.schedule-btn svg { flex-shrink: 0; }
@media (max-width: 540px) { .form-actions { flex-direction: column; } }
