/* ============================================================
   TOKENS & RESET
============================================================ */
:root {
  --primary:       #2196f3;
  --primary-dark:  #1565c0;
  --primary-light: #e8f4fd;
  --accent:        #00bcd4;
  --navy:          #0d1b3e;
  --dark-navy:     #0a1628;
  --gray-100:      #f4f8fc;
  --gray-200:      #e9eef5;
  --gray-500:      #6b7a8d;
  --gray-700:      #374151;
  --white:         #ffffff;
  --whatsapp:      #25d366;
  --font-sans:     'Inter', system-ui, sans-serif;
  --font-serif:    'Merriweather', Georgia, serif;
  --radius:        12px;
  --shadow-sm:     0 2px 8px rgba(33,150,243,.10);
  --shadow-md:     0 6px 24px rgba(33,150,243,.14);
}

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.6;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
============================================================ */
.text-accent        { color: var(--primary) !important; }
.text-accent-light  { color: var(--accent) !important; }
.text-light-muted   { color: rgba(255,255,255,.65); }
.bg-light-blue      { background-color: var(--gray-100); }
.bg-dark-navy       { background-color: var(--dark-navy); }

.section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  padding: .3rem 0;
  z-index: 1030;
}

.logo-img {
  height: 70px;
  width: auto;
  border-radius: 6px;
}

.navbar-nav .nav-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: .4rem .7rem;
  transition: color .2s;
}

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

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  transition: background-color .2s, transform .15s;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: 8px;
  transition: background-color .2s, transform .15s;
}

.btn-whatsapp:hover {
  background-color: var(--dark-navy);
  border-color: var(--dark-navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ============================================================
   HERO
============================================================ */
.hero-section {
  background: linear-gradient(to right, rgba(100,181,246,.95) 0%, rgba(100,181,246,.80) 50%, rgba(100,181,246,.65) 100%),
              url('images/hero.jpg') center center / cover no-repeat;
  padding: 6rem 0 4rem;
  position: relative;
}

.hero-section h1,
.hero-section p,
.hero-section span,
.hero-section .btn {
  text-shadow: 0 1px 4px rgba(0,0,0,.18);
}

.hero-section .btn {
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2d2d2d;
  margin-bottom: .5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero-title .text-accent {
  color: #2d2d2d !important;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #ffffff;
  max-width: 500px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

.hero-badges {
  color: #ffffff;
  font-size: .9rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  font-weight: 500;
}

.hero-badge-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.hero-img-wrap {
  position: relative;
  display: inline-block;
}

.hero-img {
  border-radius: 0;
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(33,150,243,.18));
}

.hero-badge-float {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--white);
  border-radius: 12px;
  padding: .75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-sans);
}

/* ============================================================
   ABOUT
============================================================ */
#sobre-el-dr {
  background-color: var(--white);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 199px,
    rgba(232,232,232,.7) 199px,
    rgba(232,232,232,.7) 200px
  );
}
.about-img-grid {
  position: relative;
  padding-bottom: 3rem;
  padding-right: 2rem;
}

.about-img-main {
  width: 100%;
  max-width: 720px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 160px;
  border-radius: 50% !important;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.about-checklist {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.about-list-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(42%) sepia(93%) saturate(698%) hue-rotate(183deg) brightness(95%) contrast(95%);
}

/* ============================================================
   SERVICES SWIPER
============================================================ */
.servicios-swiper {
  padding-bottom: 2.5rem !important;
  padding-left: 4px;
  padding-right: 4px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

.service-card-img-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.service-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 20px;
  z-index: 2;
}

.service-badge--urgencia {
  background: #e53935;
}

.service-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.service-desc {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary);
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  padding: .55rem 1.1rem;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}

.service-link:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}


/* ============================================================
   CTA BANNER
============================================================ */
.cta-banner {
  padding: 2rem 0;
}

.cta-banner .container {
  background: linear-gradient(rgba(13,27,62,.75), rgba(13,27,62,.75)),
              url('images/banner-1.jpg') center center / cover no-repeat;
  border-radius: 1rem;
  padding: 2.5rem 3rem;
  overflow: hidden;
}

.cta-banner-img {
  max-height: 420px;
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.35));
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .6rem;
}

.cta-subtitle {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
}

/* ============================================================
   FEATURES
============================================================ */
.feature-card {
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--gray-100);
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

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

/* ============================================================
   VIDEOS
============================================================ */
.videos-swiper {
  padding-bottom: 2.5rem !important;
}

.video-card {
  cursor: pointer;
}

.video-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  transition: background .2s;
}

.play-btn i {
  width: 52px;
  height: 52px;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s;
}

.video-card:hover .play-btn {
  background: rgba(0,0,0,.2);
}

.video-card:hover .play-btn i {
  transform: scale(1.1);
}

.video-title {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ============================================================
   TESTIMONIALS
============================================================ */
.stars-row i {
  color: #f59e0b;
  font-size: .9rem;
}

.testimonios-swiper {
  padding-bottom: 2.5rem !important;
  padding-left: 4px;
  padding-right: 4px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border-bottom: 3px solid var(--primary);
}

.testimonial-text {
  font-size: .95rem;
  color: var(--gray-500);
  font-style: italic;
  line-height: 1.7;
}

/* ============================================================
   FAQ
============================================================ */
.faq-accordion .accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius) !important;
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  font-size: 1rem;
  border-radius: var(--radius) !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--white);
  background: var(--primary);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(33,150,243,.2);
}

.faq-accordion .accordion-button::after {
  filter: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

/* ============================================================
   CONTACT
============================================================ */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-list li i {
  font-size: 1.1rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

.contact-info-list a {
  text-decoration: none;
}

.contact-info-list a:hover {
  color: var(--primary) !important;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: 8px;
  border-color: var(--gray-200);
  font-size: 1rem;
  padding: .65rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33,150,243,.15);
}

.contact-form-card .form-label {
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-700);
  margin-bottom: .35rem;
}

/* ============================================================
   SOCIAL ROW
============================================================ */
.social-row {
  display: flex;
  gap: .6rem;
}

.social-row a {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.social-row a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   MAP FULL WIDTH
============================================================ */
.contact-img {
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.12));
}

.map-full {
  width: 100%;
  line-height: 0;
  margin-bottom: 0;
}

#contacto {
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.map-full iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background-color: var(--dark-navy);
  padding: 1.5rem 0 1rem;
}

.footer-heading {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}

.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer .social-row a {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}

.footer .social-row a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-divider {
  border-color: rgba(255,255,255,.08);
  margin: 2.5rem 0 1.5rem;
}

.footer-dev-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-dev-link:hover {
  text-decoration: underline;
  color: var(--primary);
}

/* ============================================================
   SWIPER CUSTOM ARROWS & PAGINATION
============================================================ */
.swiper-button-prev,
.swiper-button-next {
  color: var(--primary) !important;
  background: var(--white);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: .85rem !important;
  font-weight: 900;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

.bg-dark-navy .swiper-button-prev,
.bg-dark-navy .swiper-button-next {
  background: rgba(255,255,255,.15);
  color: var(--white) !important;
}

.swiper-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.swiper-nav-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (max-width: 991.98px) {
  .hero-badge-float {
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
    bottom: -16px;
  }

  .about-img-grid {
    padding-bottom: 2rem;
    padding-right: 1rem;
  }

  .about-img-secondary {
    width: 120px;
    right: 0;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-section {
    padding: 4rem 0 3rem;
  }

  .cta-banner {
    padding: 2rem 0;
    text-align: center;
  }

  .cta-banner .d-flex {
    justify-content: center;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .about-img-secondary {
    display: none;
  }
}
