/* ================================
   TIPOGRAFÍA & VARIABLES GLOBALES
================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --color-azul: #0066CC;
  --color-azul-oscuro: #004c99;
  --color-celeste: #4DB8FF;
  --color-rosa: #FF6EB8;
  --color-rosa-oscuro: #e857a1;
  --color-gris: #6c757d;
  --color-gris-claro: #f5f7fb;
  --color-texto: #222;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-texto);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* ================================
   NAVBAR
================================== */

.navbar {
  padding: 0.7rem 1rem;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-clinica {
  height: 42px;
  width: auto;
}

.navbar .nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #555;
  margin-left: 0.5rem;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--color-azul);
  transform: translateY(-1px);
}

.navbar .nav-link.active,
.navbar .nav-link.active:focus {
  color: var(--color-azul);
}

.navbar .nav-link.active::after,
.navbar .nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-azul), var(--color-rosa));
  border-radius: 999px;
}

/* Botón rosa en nav */
.btn-rosa {
  background: linear-gradient(135deg, var(--color-rosa), var(--color-rosa-oscuro));
  border: none;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 110, 184, 0.35);
}

.btn-rosa:hover {
  background: linear-gradient(135deg, var(--color-rosa-oscuro), var(--color-rosa));
  box-shadow: 0 10px 26px rgba(255, 110, 184, 0.5);
}

/* ================================
   HERO / SLIDER (index.html)
================================== */

.hero-section {
  position: relative;
}

.carousel,
.carousel-inner,
.carousel-item {
  max-height: 680px;
}

.carousel-img {
  object-fit: cover;
  max-height: 680px;
  filter: brightness(0.75);
}

.carousel-caption {
  bottom: 18%;
  max-width: 650px;
}

.slide-title {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
}

.carousel-indicators .active {
  background: linear-gradient(90deg, var(--color-azul), var(--color-rosa));
}

/* ================================
   TITULOS & SECCIONES
================================== */

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-azul-oscuro);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-azul), var(--color-rosa));
}

.section-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-azul);
}

/* Sección página interna hero */
.page-hero {
  background: radial-gradient(circle at top left, rgba(77, 184, 255, 0.16), transparent 55%),
              radial-gradient(circle at top right, rgba(255, 110, 184, 0.16), transparent 55%);
}

/* ================================
   CARDS / ICONOS
================================== */

.card-servicio,
.card-estetica,
.card-caso,
.blog-card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background-color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-servicio:hover,
.card-estetica:hover,
.card-caso:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.card-servicio .card-img-top,
.card-estetica .card-img-top,
.blog-card .card-img-top {
  max-height: 210px;
  object-fit: cover;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 255, 0.2), rgba(0, 102, 204, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.icon-circle i {
  color: #ffffff;
  font-size: 1.6rem;
}

/* Listas con check */
.list-check {
  list-style: none;
  padding-left: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.4rem;
}

.list-check li::before {
  content: "\f26a";
  font-family: "Bootstrap-icons";
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--color-azul);
}

/* ================================
   CTA (index)
================================== */

.cta-section {
  background: linear-gradient(135deg, var(--color-azul) 0%, var(--color-rosa) 100%);
  border-radius: 0;
}

/* ================================
   TESTIMONIOS
================================== */

.testimonial-item {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background-color: #f8f9ff;
  border-left: 4px solid var(--color-rosa);
}

/* ================================
   ANTES / DESPUÉS (antes-despues.html)
================================== */

.case-images {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.card-caso:hover .case-img {
  transform: scale(1.03);
}

.case-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
}

.case-label.before {
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.case-label.after {
  background-color: rgba(0, 255, 153, 0.9);
  color: #004225;
}

/* ================================
   BLOG
================================== */

.blog-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ================================
   FORMULARIO CONTACTO
================================== */

form .form-control,
form .form-select {
  border-radius: 0.75rem;
  border: 1px solid #dde2ec;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form .form-control:focus,
form .form-select:focus {
  border-color: var(--color-azul);
  box-shadow: 0 0 0 0.15rem rgba(0, 102, 204, 0.18);
}

/* ================================
   FOOTER
================================== */

footer {
  font-size: 0.85rem;
}

footer a {
  text-decoration: none;
}

.text-rosa {
  color: var(--color-rosa) !important;
}

/* ================================
   BOTONES GENERALES
================================== */

.btn-primary {
  background-color: var(--color-azul);
  border-color: var(--color-azul);
  border-radius: 999px;
  font-weight: 600;
  padding-inline: 1.4rem;
}

.btn-primary:hover {
  background-color: var(--color-azul-oscuro);
  border-color: var(--color-azul-oscuro);
}

.btn-outline-primary {
  border-radius: 999px;
  font-weight: 500;
}

/* ================================
   ANIMACIONES SUAVES
================================== */

/* Clases reutilizables */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(12px);
  animation: slideUp 0.8s ease forwards;
}

/* Keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover scale genérico */
.hover-scale {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-scale:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ================================
   UTILIDADES & RESPONSIVE
================================== */

.bg-light-alt {
  background-color: var(--color-gris-claro);
}

/* Ajustes responsivos hero */
@media (max-width: 991.98px) {
  .carousel-caption {
    bottom: 12%;
  }

  .carousel-caption h1,
  .carousel-caption h2 {
    font-size: 1.7rem;
  }

  .navbar .nav-link::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .carousel,
  .carousel-inner,
  .carousel-item,
  .carousel-img {
    max-height: 520px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ================================
   TOOLTIP CUSTOM (opcional)
================================== */

.tooltip-inner {
  background-color: #1b1f3b;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: #1b1f3b;
}
