/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --deep-blue: #0e2a47;
  --ocean-blue: #1a5d93;
  --sun-amber: #f79b2e;
  --sun-amber-dark: #e07b0f;
  --ink: #1f2a36;
  --paper: #ffffff;
  --muted: #5f6f7f;
}

body {
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(circle at top right, #e8f2ff 0%, #ffffff 45%);
}

/* Navegacion */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 34, 58, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.logo-image {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lang-flag:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.24);
}

.lang-flag img {
  width: 30px;
  height: 20px;
  display: block;
  border-radius: 2px;
}

/* Hero */
.hero {
  height: auto;
  min-height: 64vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 108px 16px 62px;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  z-index: -3;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.03);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 24, 41, 0.55) 0%, rgba(7, 27, 46, 0.33) 46%, rgba(7, 27, 46, 0.2) 100%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(245, 178, 77, 0.22), transparent 38%),
    linear-gradient(to top, rgba(5, 20, 35, 0.4) 0%, rgba(5, 20, 35, 0.18) 46%, rgba(5, 20, 35, 0.06) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 28px 26px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12, 37, 60, 0.42), rgba(15, 43, 70, 0.26));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 42px rgba(4, 19, 34, 0.35);
  backdrop-filter: blur(5px);
  animation: hero-fade-up 560ms ease-out both;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 200, 0.85), transparent);
}

.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(248, 171, 69, 0.2);
  border: 1px solid rgba(255, 219, 171, 0.7);
  color: #fff6e7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero-promo::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd27f;
  box-shadow: 0 0 0 0 rgba(255, 210, 127, 0.75);
  animation: hero-pulse 1.7s infinite;
}

.hero-kicker {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
  color: #eaf3ff;
  margin-bottom: 12px;
  text-shadow: 0 2px 7px rgba(7, 28, 47, 0.3);
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.15;
  margin-bottom: 12px;
  text-wrap: balance;
  text-shadow: 0 7px 20px rgba(0, 0, 0, 0.42);
}

.hero-title span {
  color: #ffd694;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-description {
  font-size: 0.92rem;
  color: #eef6ff;
  margin: 0 auto 20px;
  max-width: 620px;
  background: rgba(80, 90, 100, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 10px;
  padding: 8px 12px;
  backdrop-filter: blur(2px);
  text-shadow: 0 4px 12px rgba(7, 28, 47, 0.35);
}

.hero .btn {
  display: inline-block;
  background: linear-gradient(90deg, #f7a537, #ec7d1f);
  color: #fff;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255, 224, 185, 0.7);
  box-shadow: 0 12px 24px rgba(170, 92, 22, 0.35);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hero .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -32%;
  width: 26%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  animation: hero-cta-shine 3.2s ease-in-out infinite;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 28px rgba(170, 92, 22, 0.42);
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 210, 127, 0.75);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 210, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 210, 127, 0);
  }
}

@keyframes hero-cta-shine {
  0%,
  62% {
    left: -32%;
  }
  78% {
    left: 120%;
  }
  100% {
    left: 120%;
  }
}

/* Servicios */
.services {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.services h2 {
  font-family: 'Sora', sans-serif;
  text-align: center;
  font-size: 2rem;
  color: #153a63;
  margin-bottom: 12px;
}

.services-intro {
  max-width: 760px;
  margin: 0 auto 12px auto;
  text-align: center;
  color: #4d5d6d;
}

.services-compact {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 24%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f9ff;
  border: 1px solid #d8e7ff;
  border-radius: 12px;
  padding: 10px;
  scroll-snap-align: start;
}

.service-pill img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.service-pill span {
  color: #163f6b;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.services-compact::-webkit-scrollbar {
  height: 6px;
}

.services-compact::-webkit-scrollbar-thumb {
  background: #b7d4f1;
  border-radius: 99px;
}

/* Nosotros */
.about-section {
  max-width: 1200px;
  margin: 44px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.about-content {
  background: linear-gradient(145deg, #f4faff, #ffffff);
  border: 1px solid #d5e6fb;
  border-radius: 16px;
  padding: 28px;
}

.about-content h2 {
  font-family: 'Sora', sans-serif;
  color: #163f6b;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 12px;
}

.about-content p {
  color: #4f5f6f;
  margin-bottom: 12px;
}

.about-lead {
  font-size: 1.03rem;
  line-height: 1.55;
}

.about-highlights {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.about-highlights span {
  background: #e9f3ff;
  color: #1b4f81;
  border: 1px solid #cde2fa;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.about-media {
  border-radius: 16px;
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 10px 26px rgba(16, 56, 94, 0.16);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-mini-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.about-mini-stats article {
  background: #f3f9ff;
  border: 1px solid #d7e8fb;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.about-mini-stats article img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 6px;
}

.about-mini-stats strong {
  display: block;
  color: #17406b;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
}

.about-mini-stats p {
  margin: 2px 0 0;
  color: #5b6d7d;
  font-size: 0.82rem;
}

/* Testimonios */
.testimonials {
  max-width: 1200px;
  margin: 34px auto;
  padding: 0 20px;
}

.testimonials h2 {
  font-family: 'Sora', sans-serif;
  text-align: center;
  color: #163f6b;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-bottom: 8px;
}

.testimonials-intro {
  text-align: center;
  color: #56708a;
  margin: 0 auto 14px;
}

.testimonials-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 24%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #d8e7f8;
  border-radius: 12px;
  padding: 12px;
  scroll-snap-align: start;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  margin-bottom: 8px;
}

.testimonial-card p {
  color: #44586b;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.testimonial-card h3 {
  color: #17406b;
  font-size: 0.92rem;
  margin: 0;
}

.testimonial-card span {
  color: #67809a;
  font-size: 0.8rem;
}

.testimonials-grid::-webkit-scrollbar {
  height: 6px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
  background: #b7d4f1;
  border-radius: 99px;
}

/* FAQ SEO */
.faq-section {
  max-width: 1200px;
  margin: 34px auto;
  padding: 0 20px;
}

.faq-section h2 {
  font-family: 'Sora', sans-serif;
  text-align: center;
  color: #163f6b;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #d8e7f8;
  border-radius: 12px;
  padding: 12px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  color: #17406b;
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  padding-right: 20px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: #1b4f81;
  font-size: 1.15rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  color: #4f6071;
  font-size: 0.9rem;
  margin: 8px 0 0;
}

/* Calculadora */
.calculator {
  max-width: 1200px;
  margin: 48px auto;
  padding: 34px 20px;
  background: linear-gradient(145deg, #123a61, #1b5d93);
  color: #fff;
}

.calculator h2 {
  font-family: 'Sora', sans-serif;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.calculator-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px auto;
  color: #deebf8;
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
}

.form-group input,
.form-group select {
  height: 44px;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 1rem;
}

.form-group input[type="file"] {
  height: auto;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.95);
}

.calculator-btn {
  border: none;
  cursor: pointer;
  height: 44px;
  width: 100%;
}

.calculator-actions {
  align-self: end;
}

.calculator-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: none;
}

.calculator-result strong {
  color: #ffd79d;
}

.calculator-thanks {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(159, 210, 164, 0.55);
  background: rgba(232, 247, 232, 0.16);
  color: #ecfff0;
  display: none;
  text-align: center;
}

.thanks-logo {
  width: 72px;
  height: auto;
  margin-bottom: 6px;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer p {
  margin: 0;
}

.footer-social-link {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  background: #1877f2;
  border: 1px solid rgba(255, 255, 255, 0.26);
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  background: #0f63d1;
  transform: translateY(-1px);
}

.mobile-sticky-cta {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-bottom: 78px;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #ffffff;
    background: linear-gradient(90deg, #f7a537, #ec7d1f);
    box-shadow: 0 10px 24px rgba(170, 92, 22, 0.36);
  }

  .navbar {
    padding: 12px 16px;
    flex-wrap: nowrap;
  }

  .logo span {
    display: none;
  }

  .logo-image {
    width: 32px;
    height: 32px;
  }

  .lang-switcher {
    gap: 8px;
  }

  .lang-flag {
    width: 40px;
    height: 28px;
  }

  .lang-flag img {
    width: 26px;
    height: 18px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    min-height: 56vh;
    align-items: flex-start;
    padding: 92px 12px 34px;
  }

  .hero-bg-image {
    object-position: center 60%;
    transform: scale(1);
  }

  .hero-content {
    max-width: 100%;
    padding: 20px 14px 18px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(4, 19, 34, 0.3);
  }

  .hero-promo {
    font-size: 0.72rem;
    padding: 5px 10px;
    margin-bottom: 8px;
  }

  .hero-description {
    font-size: 0.86rem;
    max-width: 340px;
    margin: 0 auto 16px;
  }

  .hero-content {
    padding: 0 4px;
  }

  .hero .btn {
    width: min(100%, 320px);
    padding: 12px 18px;
    font-size: 1rem;
  }

  .services {
    margin: 24px auto;
    padding: 0 12px;
  }

  .services-compact {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 2px 6px;
    -webkit-overflow-scrolling: touch;
  }

  .service-pill {
    padding: 10px 12px;
    scroll-snap-align: start;
  }

  .service-pill img {
    width: 34px;
    height: 34px;
  }

  .services-compact::-webkit-scrollbar {
    height: 6px;
  }

  .services-compact::-webkit-scrollbar-thumb {
    background: #b7d4f1;
    border-radius: 99px;
  }

  .about-section {
    margin: 24px auto;
    padding: 0 12px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-content {
    padding: 22px;
  }

  .about-highlights {
    margin-top: 12px;
  }

  .about-mini-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-media {
    min-height: 190px;
  }

  .testimonials {
    margin: 24px auto;
    padding: 0 12px;
  }

  .testimonials-grid {
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 6px;
  }

  .testimonial-card {
    scroll-snap-align: start;
  }

  .testimonials-grid::-webkit-scrollbar {
    height: 6px;
  }

  .testimonials-grid::-webkit-scrollbar-thumb {
    background: #b7d4f1;
    border-radius: 99px;
  }

  .faq-section {
    margin: 24px auto;
    padding: 0 12px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .calculator {
    margin: 24px 12px;
    padding: 24px 14px;
  }

  .calculator-form {
    grid-template-columns: 1fr;
  }

  .calculator-actions label {
    display: none;
  }

}

@media (max-width: 480px) {
  .hero-kicker {
    font-size: 0.67rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 1.72rem;
    margin-bottom: 10px;
  }

  .hero {
    min-height: 52vh;
    padding-top: 88px;
    padding-bottom: 30px;
  }

  .hero-bg-image {
    object-position: center 58%;
  }
}
