@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@300;400;500;600;700;800&display=swap");

/* 1. VARIABLES (sin cambios) */
:root {
  --primary: #e0633f;
  --primary-dark: #c94e2e;
  --primary-light: #fff0e8;
  --secondary: #064f56;
  --secondary-light: #0a6b74;
  --accent: #ea9200;
  --bg: #f4ebe2;
  --bg-white: #ffffff;
  --text: #1f1b24;
  --text-light: #4b5563;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --radius-btn: 50px;
  --radius-full: 50%;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

/* 2. RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Nunito", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* 3. ANIMACIONES (sin cambios) */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }

  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.floating-image {
  animation: float 5s ease-in-out infinite;
}

/* 4. HEADER & NAVBAR */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s;
}

.header.scrolled {
  background: rgba(255, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  max-height: 40px;
  width: auto;
  height: auto;
  max-width: 100%;
}

.logo img:hover {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(224, 99, 63, 0.08);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(224, 99, 63, 0.12);
}

.nav-link.active::after {
  width: 60%;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-link {
  color: var(--text);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  background: transparent;
}

.icon-link:hover {
  color: var(--primary);
  background: rgba(224, 99, 63, 0.10);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.mobile-only {
  display: none;
}

/* 5. CARRUSEL DE BANNERS */
.banner-carousel {
  width: 100%;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  line-height: 0;
}

.carousel-img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  display: none !important;
}

.carousel-btn-accion {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  /* antes 16px */
  white-space: nowrap;
  z-index: 5;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: white !important;
}

.carousel-btn-accion:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Colores de los botones (sin cambios) */
.banner-1 .carousel-btn-accion {
  background: #e0633f;
}

.banner-1 .carousel-btn-accion:hover {
  background: #c94e2e;
}

.banner-2 .carousel-btn-accion {
  background: #10b981;
}

.banner-2 .carousel-btn-accion:hover {
  background: #059669;
}

.banner-3 .carousel-btn-accion {
  background: #3b82f6;
}

.banner-3 .carousel-btn-accion:hover {
  background: #2563eb;
}

.banner-4 .carousel-btn-accion {
  background: #25d366;
}

.banner-4 .carousel-btn-accion:hover {
  background: #1da851;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary-light);
  width: 20px;
  border-radius: 12px;
}

/* 6. HERO */
.section-inicio {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.hero-section {
  background: #f3d0be;
  padding: 2rem 0 3rem;
  border-radius: 0 0 20% 20%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  z-index: 8;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 0 auto;
  padding: 20px 20px;
  width: 100%;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
  max-width: 100%;
}

.container-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  /* reducido */
}

.hero-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 900;
  font-size: 3rem;
  text-align: center;
  max-width: 100%;
}

.hero h1 {
  font-family: "Fredoka One", cursive;
  font-size: 3.2rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--primary);
}

.hero-description {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-btn);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(224, 99, 63, 0.3);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(224, 99, 63, 0.15);
  transition: var(--transition);
}

.stat-number {
  font-family: "Fredoka One", cursive;
  font-size: 1.8rem;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.image-wrapper {
  position: relative;
  flex-direction: column;
  align-items: center;
  display: flex;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.floating-badge {
  background: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.floating-badge i {
  color: #f59e0b;
}

/* 7. SERVICIOS de petfy*/

.services-full-section {
  background: #f8dccd;
  padding: 1.5rem 0 2.5rem;
  position: relative;
  border-radius: 0 0 20% 20%;
  z-index: 6;
}

.servicios-header {
  background: #f8dccd;
  padding: 2.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 20% 20%;
  margin-top: -200px;
  padding-top: calc(200px + 2.5rem);
  z-index: 2;
}


.servicios-header .doodle {
  position: absolute;
  font-size: clamp(1.8rem, 5vw, 3rem);
  animation: floatDoodle 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}

.servicios-header .d1 {
  top: 55%;
  left: 25%;
  animation-delay: 0.5s;
}

.servicios-header .d2 {
  top: 55%;
  right: 25%;
  animation-delay: 1.5s;
}

.servicios-header .d3 {
  bottom: 0%;
  left: 15%;
  animation-delay: 2s;
}

.servicios-header .d4 {
  bottom: 0%;
  right: 15%;
  animation-delay: 1s;
}

.servicios-header .container {
  position: relative;
  z-index: 2;
}

.servicios-header h1 {
  font-family: "Fredoka One", cursive;
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.servicios-header p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.servicios-nav {
  padding: 0.5rem 0;
}

.servicios-nav .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

.servicio-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--primary-light);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}

.servicio-nav-btn i {
  font-size: 1rem;
}

.servicio-nav-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(224, 99, 63, 0.25);
}

.servicio-nav-btn.inactivo {
  background: var(--primary-light);
  color: var(--text-muted);
}

.servicio-nav-btn.inactivo:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.servicio-nav-btn.inactivo i {
  opacity: 0.5;
}

.servicios-content {
  padding-top: 2rem;
}

.servicio-panel {
  display: none;
  animation: fadeInUp 0.5s ease;

}

.servicio-panel.active {
  display: block;
}

.inactivo-placeholder {
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 2px dashed rgba(0, 0, 0, 0.08);
  max-width: 700px;

}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.inactivo-placeholder h3 {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.inactivo-placeholder p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 1.2rem;
  font-size: 0.95rem;
}

.placeholder-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.placeholder-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.placeholder-features li i {
  color: var(--primary);
  width: 1.5rem;
}

/* CARRUSEL 3D */
.carousel-3d-container {
  position: relative;
  perspective: 1200px;
  /* ligeramente menor */
  height: 400px;
  /* antes 480px */
  margin: 1.5rem auto;
  overflow: visible;
  max-width: 1000px;
  width: 100%;
}

.carousel-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.plan-card-3d {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotateY(0deg) translateZ(0px);
  width: 260px;
  /* antes 300px */
  background: var(--white);
  border-radius: 24px;
  padding: 1.5rem 1.2rem 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  transition:
    box-shadow 0.3s,
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  will-change: transform, opacity;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 350px;
  backface-visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.plan-card-3d:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.plan-card-3d .plan-emoji {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.plan-card-3d h3 {
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.plan-card-3d .plan-tag {
  display: inline-block;
  padding: 0.15rem 0.8rem;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.plan-tag.tag-popular {
  background: var(--primary);
  color: white;
}

.plan-tag.tag-ahorro {
  background: #ecfdf5;
  color: #059669;
}

.plan-tag.tag-premium {
  background: #fef3c7;
  color: #d97706;
}

.plan-card-3d .plan-precio {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0.2rem 0;
}

.plan-card-3d .plan-precio small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.plan-card-3d .plan-features {
  list-style: none;
  text-align: left;
  margin: 0.3rem 0 0.5rem;
  width: 100%;
}

.plan-card-3d .plan-features li {
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  font-size: 0.8rem;
}

.plan-card-3d .plan-features li i {
  color: var(--success);
  width: 1.2rem;
}

.plan-card-3d .plan-btn-elegir {
  display: inline-block;
  width: 100%;
  padding: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: auto;
}

.plan-card-3d .plan-btn-elegir:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.plan-card-3d.center {
  transform: translateX(-50%) rotateY(0deg) translateZ(0px);
  opacity: 1;
  z-index: 20;
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(224, 99, 63, 0.15);
  pointer-events: auto;
}

.plan-card-3d.left {
  transform: translateX(-100%) rotateY(20deg) translateZ(-140px);
  opacity: 0.6;
  z-index: 10;
  pointer-events: none;
}

.plan-card-3d.right {
  transform: translateX(-10%) rotateY(-20deg) translateZ(-140px);
  opacity: 0.6;
  z-index: 10;
  pointer-events: none;
}

.plan-card-3d.far-left {
  transform: translateX(-100%) rotateY(35deg) translateZ(-260px);
  opacity: 0.2;
  z-index: 5;
  pointer-events: none;
}

.plan-card-3d.far-right {
  transform: translateX(0%) rotateY(-35deg) translateZ(-260px);
  opacity: 0.2;
  z-index: 5;
  pointer-events: none;
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 30;
}

.carousel-arrow {
  position: absolute;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 25px rgba(224, 99, 63, 0.3);
}

.carousel-arrow:first-child {
  left: -5px;
}

.carousel-arrow:last-child {
  right: -5px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}

.carousel-indicators .dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-indicators .dot-indicator.active {
  background: var(--primary);
  width: 26px;
  border-radius: 6px;
}

.acordeon-container {
  max-width: 700px;
  margin: 1.5rem auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.acordeon-header {
  padding: 1.2rem 1.5rem;
  background: var(--primary-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  transition: background 0.3s;
}

.acordeon-header:hover {
  background: #ffe0d0;
}

.acordeon-header .acordeon-icon {
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.acordeon-header.open .acordeon-icon {
  transform: rotate(180deg);
}

.acordeon-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s;
  padding: 0 1.5rem;
}

.acordeon-body.open {
  max-height: 800px;
  padding: 1rem 1.5rem 1.5rem;
}

.acordeon-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.acordeon-body .form-group {
  margin-bottom: 0.8rem;
}

.acordeon-body .form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.acordeon-body .form-group input,
.acordeon-body .form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 15px;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  transition: border 0.3s;
}

.acordeon-body .form-group input:focus,
.acordeon-body .form-group select:focus {
  border-color: var(--primary);
  outline: none;
}

.acordeon-body .btn-enviar {
  width: 100%;
  margin-top: 0.3rem;
}

.benefits-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 1.5rem 0 0.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.benefit-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.benefit-item span {
  font-size: 0.9rem;
}

/* STICKY BAR */
.sticky-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0.5rem 0;
  z-index: 100;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}

.sticky-bar.hidden {
  transform: translateY(100%);
}

.sticky-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 0.3rem 0.8rem;
  flex-wrap: wrap;
}

.sticky-bar-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.sticky-bar-plan {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.sticky-bar-precio {
  font-family: "Fredoka One", cursive;
  color: var(--primary);
  font-size: 1.1rem;
}

.sticky-bar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sticky-bar-btn {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: none;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.sticky-bar-btn.secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}

.sticky-bar-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

.sticky-bar-btn.primary {
  background: var(--primary);
  color: white;
}

.sticky-bar-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.sticky-bar-btn.success {
  background: var(--success);
  color: white;
}

.sticky-bar-btn.success:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* MODAL RESUMEN */
.resumen-modal {
  max-width: 550px;
  padding: 1.5rem 2rem;
}

.resumen-header {
  text-align: center;
  margin-bottom: 1rem;
}

.resumen-icon {
  font-size: 2.5rem;
  display: block;
}

.resumen-header h2 {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
  margin: 0.2rem 0;
}

.resumen-header p {
  color: var(--text-muted);
}

.resumen-body {
  padding: 0.5rem 0;
}

.resumen-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.resumen-item .label {
  color: var(--text-muted);
}

.resumen-item .value {
  font-weight: 700;
}

.resumen-total {
  margin-top: 0.8rem;
  padding: 0.8rem 0;
  border-top: 2px solid var(--primary);
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
}

.resumen-total .total-precio {
  color: var(--primary);
}

.resumen-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.resumen-footer .btn {
  flex: 1;
  justify-content: center;
}

/* 8. RESEÑAS */
.section-subtitle {
  display: block;
  font-family: "Fredoka One", cursive;
  font-size: 1.2rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
  text-align: center;
}

.section-title {
  font-family: "Fredoka One", cursive;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.2;
  text-align: center;
}

.reviews-section {
  position: relative;
  padding: 3rem 0 4rem;
  background: #fffaf7;
  margin-top: -200px;
  padding-top: calc(200px + 3rem);
  z-index: 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  /* centra horizontalmente */
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.review-header h4 {
  font-family: "Fredoka One", cursive;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}

.review-pet {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  margin-left: auto;
  color: #f59e0b;
}

.review-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0.5rem 0 1rem;
  flex-grow: 1;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 0.8rem;
  margin-top: auto;
}

/* 9. BENEFICIOS (si se usa) */
.benefits-section {
  padding: 2.5rem 0;
  background: var(--bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  text-align: center;
  padding: 1.2rem;
}

.benefit-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.benefit-card h3 {
  font-family: "Fredoka One", cursive;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* 10. NOSOTROS */
#inicio,
#servicios,
#nosotros,
#contacto {
  scroll-margin-top: 70px;
}

.nosotros-hero {
  background: #fce6db;
  padding: 3rem 0 4rem;
  color: var(--text);
  text-align: center;
  border-radius: 0 0 20% 20%;
  margin-top: -180px;
  padding-top: calc(180px + 3rem);
  position: relative;
  z-index: 4;
}

.nosotros-hero h1 {
  font-family: "Fredoka One", cursive;
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.nosotros-hero p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0.5rem auto 0;
  font-size: 1rem;
}

.nosotros-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.nosotros-stat {
  text-align: center;
}

.nosotros-stat-num {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
  color: var(--primary);
  display: block;
}

.nosotros-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mvv-section {
  padding: 3.5rem 0;

}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.mvv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.mvv-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.mvv-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--primary);
  transition: var(--transition);
}

.mvv-card:hover .mvv-icon {
  background: var(--primary);
  color: var(--white);
}

.mvv-card h2 {
  font-family: "Fredoka One", cursive;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.mvv-card p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.9rem;
}

.mvv-card ul {
  list-style: none;
  margin-top: 0.8rem;
}

.mvv-card ul li {
  padding: 0.4rem 0;
  display: flex;
  align-items: left;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.85rem;
}

.mvv-card ul li i {
  color: var(--primary);
}

/* 11. CONTACTO */
.contacto-header {
  background-color: #fff5ef;
  padding: 3rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 20% 20%;
  margin-top: -180px;
  padding-top: calc(180px + 3rem);
  z-index: 2;
}

.doodle {
  position: absolute;
  opacity: 0.2;
  font-size: clamp(1.8rem, 5vw, 3rem);
  animation: floatDoodle 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.contacto-header .d1 {
  top: 22%;
  left: 25%;
}

.contacto-header .d2 {
  top: 22%;
  right: 25%;
  animation-delay: 1s;
}

.contacto-header .d3 {
  bottom: 6%;
  left: 20%;
  animation-delay: 0.5s;
}

.contacto-header .d4 {
  bottom: 6%;
  right: 20%;
  animation-delay: 2s;
  z-index:-1;
}

@keyframes floatDoodle {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-18px) rotate(5deg);
  }
}

.contacto-header h1 {
  font-family: "Fredoka One", cursive;
  font-size: 2.2rem;
  color: var(--text);
  position: relative;
}

.contacto-header p {
  color: var(--text-light);
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}

.contacto-content {
  padding: 2.5rem 0 4rem;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
  padding: 2rem 0 2rem;
  text-align: left;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-card:nth-child(1) .info-icon {
  background: #ecfdf5;
  color: #059669;
}

.info-card:nth-child(2) .info-icon {
  background: #eff6ff;
  color: #3b82f6;
}

.info-card:nth-child(3) .info-icon {
  background: #fef3c7;
  color: #d97706;
}

.info-card:nth-child(4) .info-icon {
  background: #fce7f3;
  color: #ec4899;
}

.info-text h4 {
  font-family: "Fredoka One", cursive;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.info-text p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.info-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.info-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}


.social-mini {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.social-mini span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.social-mini a {
  color: var(--text-muted);
  font-size: 1.4rem;
  transition: var(--transition);
}

.social-mini a:hover {
  color: var(--primary);
  transform: scale(1.15);
}


.social-contacto {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin-top: 0.8rem;
}

.social-contacto h4 {
  font-family: "Fredoka One", cursive;
  margin-bottom: 0.8rem;
}

.social-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.social-btn {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.social-btn.fb {
  background: #1877f2;
}

.social-btn.ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #f77737);
}

.social-btn.wa {
  background: #25d366;
}

.form-wrapper {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-wrapper h2 {
  font-family: "Fredoka One", cursive;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  margin-bottom: 0.2rem;
  text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 15px;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(224, 99, 63, 0.08);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-enviar {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-enviar:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(224, 99, 63, 0.25);
}

/* 12. FOOTER */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  font-family: "Fredoka One", cursive;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.6rem;
  color: var(--white);
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* Columna de pagos y redes */
.footer-col-payments {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  padding: 0.5rem 0;
}

.payment-methods i {
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}

.payment-methods i:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.payment-methods .fa-lock {
  font-size: 1.6rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.6rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent);
  transform: scale(1.15);
}

/* Footer bottom */
.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-logo-bottom {
  height: 32px;
  width: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

/* 13. WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 60px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #25d366;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 999;
  text-decoration: none;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  animation: none;
}

/* 14. MODALES */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--white);
  border-radius: 30px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.3s ease;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.3rem;
}

.modal-container h2 {
  font-family: "Fredoka One", cursive;
  text-align: center;
  color: var(--text);
  font-size: 1.3rem;
}

.modal-input-group {
  margin-bottom: 0.8rem;
}

.modal-input-group input,
.modal-input-group select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  background: white;
}

.modal-input-group input:focus,
.modal-input-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.modal-btn {
  width: 100%;
  padding: 0.7rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.modal-btn:hover {
  background: var(--primary-dark);
}

.modal-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.modal-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.modal-oferta {
  text-align: center;
  max-width: 500px;
  padding: 2.5rem 2rem;
}

.oferta-icono {
  font-size: 4rem;
}

.oferta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1rem 0;
}

.oferta-card {
  padding: 1.2rem;
  border-radius: 20px;
}

.oferta-descuento {
  background: linear-gradient(135deg, #fff0e8, #ffe0d0);
}

.oferta-gratis {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.oferta-emoji {
  font-size: 2rem;
}

.oferta-numero {
  font-family: "Fredoka One", cursive;
  font-size: 1.6rem;
}

.oferta-descuento .oferta-numero {
  color: var(--primary);
}

.oferta-gratis .oferta-numero {
  color: #059669;
}

.oferta-etiqueta {
  font-weight: 700;
}

.oferta-codigo {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.7rem;
  margin-top: 0.3rem;
}

.oferta-descuento .oferta-codigo {
  background: var(--primary);
  color: white;
}

.oferta-gratis .oferta-codigo {
  background: #059669;
  color: white;
}

.oferta-btn-principal {
  font-size: 1rem;
  width: 100%;
}

.oferta-btn-secundario {
  background: none;
  border: none;
  color: var(--text-muted);
  margin-top: 0.5rem;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
}

.oferta-btn-secundario:hover {
  color: var(--text);
}

/* 15. PROFILE SIDEBAR (igual solo ajustes menores) */
.profile-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.profile-sidebar.active {
  right: 0;
}

.profile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  backdrop-filter: blur(3px);
}

.profile-overlay.active {
  display: block;
}

.profile-panel-header {
  background: linear-gradient(135deg, var(--primary), #c94e2e);
  padding: 2rem 1.5rem 1.5rem;
  color: var(--white);
  position: relative;
}

.profile-panel-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-large {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  border: 3px solid rgba(255, 255, 255, 0.4);
}

.profile-panel-header h3 {
  font-family: "Fredoka One", cursive;
  font-size: 1.1rem;
}

.profile-panel-header p {
  font-size: 0.8rem;
  opacity: 0.85;
}

.profile-badge-vip {
  display: inline-block;
  background: #f59e0b;
  color: #1f1b24;
  padding: 0.15rem 0.6rem;
  border-radius: 15px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

.profile-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  background: #fff8f5;
}

.profile-kpi {
  text-align: center;
  padding: 0.5rem;
  background: white;
  border-radius: 12px;
}

.profile-kpi-number {
  font-family: "Fredoka One", cursive;
  font-size: 1rem;
  color: var(--primary);
  display: block;
}

.profile-kpi-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-menu {
  padding: 0.5rem 1.2rem;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: "Nunito", sans-serif;
}

.profile-menu-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.profile-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--primary);
}

.profile-menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0.4rem 0;
}

.profile-menu-item.logout {
  color: var(--danger);
}

.profile-menu-item.logout i {
  color: var(--danger);
}

.profile-menu-item.logout:hover {
  background: #fee2e2;
}

/* ============================================================ */
/* 16. MEDIA QUERIES RESPONSIVE (MEJORADAS)                    */
/* ============================================================ */

/* --- Pantallas medianas (tablets, ≤ 1024px) --- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: 0 15px;
  }

  .hero-description {
    max-width: 100%;
    margin: 0 auto 1.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image img {
    max-width: 80%;
  }

  .floating-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .hero-section {
    padding: 1.5rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    font-size: 1.8rem;
  }

  /* Ajuste de curvas en tablet */
  .hero-section,
  .servicios-header,
  .nosotros-hero,
  .contacto-header {
    border-radius: 0 0 40px 40px;
    /* radio fijo más pequeño */
  }

  .servicios-header {
    margin-top: -40px;
    padding-top: calc(40px + 2.5rem);
  }

  .nosotros-hero {
    margin-top: -40px;
    padding-top: calc(40px + 3rem);
  }

  .contacto-header {
    margin-top: -40px;
    padding-top: calc(40px + 3rem);
  }

  .reviews-section {
    margin-top: -40px;
    padding-top: calc(40px + 3rem);
  }

  .servicios-header .doodle,
  .contacto-header .doodle {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    opacity: 0.12;
  }

  /* Ajuste de posiciones para tablet */
  .servicios-header .d1 {
    top: 15%;
    left: 6%;
  }

  .servicios-header .d2 {
    top: 20%;
    right: 6%;
  }

  .servicios-header .d3 {
    bottom: 12%;
    left: 8%;
  }

  .servicios-header .d4 {
    bottom: 15%;
    right: 10%;
  }

  .contacto-header .d1 {
    top: 12%;
    left: 5%;
  }

  .contacto-header .d2 {
    top: 18%;
    right: 5%;
  }

  .contacto-header .d3 {
    bottom: 15%;
    left: 8%;
  }

  .contacto-header .d4 {
    bottom: 18%;
    right: 8%;
  }

  /* --- Ajustes de modales para tablet --- */
.modal-container {
    max-width: 90%;
    padding: 1.8rem;
}
.modal-oferta {
    max-width: 95%;
    padding: 2rem 1.5rem;
}
.oferta-grid {
    gap: 0.8rem;
}
.oferta-card {
    padding: 1rem;
}
.oferta-numero {
    font-size: 1.4rem;
}
}

/* --- Móviles grandes (≤ 768px) --- */
@media (max-width: 768px) {

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1.2rem 1.5rem 1.8rem;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    gap: 0.3rem;
    z-index: 999;
    /* Animación de entrada */
    transform-origin: top center;
    animation: menuSlideDown 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    border-top: 2px solid rgba(224, 99, 63, 0.15);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    width: 100%;
    justify-content: flex-start;
    background: transparent;
    transition: all 0.2s ease;
  }

  .nav-link:hover {
    background: rgba(224, 99, 63, 0.08);
    color: var(--primary);
    padding-left: 1.6rem;
  }

  .nav-link.active {
    background: rgba(224, 99, 63, 0.12);
    color: var(--primary);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .user-actions {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  @keyframes menuSlideDown {
    0% {
      opacity: 0;
      transform: translateY(-12px) scaleY(0.95);
    }

    100% {
      opacity: 1;
      transform: translateY(0) scaleY(1);
    }
  }

  /* --- Animación del ícono hamburguesa (opcional) --- */
  .mobile-menu-btn .fa-bars {
    transition: transform 0.3s ease;
  }

  .mobile-menu-btn .fa-times {
    transform: rotate(90deg);
  }

  /* Estilo del scroll cuando el menú está abierto (evita scroll detrás) */
  body.menu-open {
    overflow: hidden;
  }

  /* === CARRUSEL === */
  .banner-carousel {
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  .carousel-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }

  .carousel-track {
    height: auto !important;
  }

  .carousel-slide {
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    line-height: 0 !important;
  }

  .carousel-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .carousel-btn-accion {
    bottom: 16px !important;
    font-size: 0.7rem !important;
    padding: 4px 12px !important;
    min-width: auto !important;
    max-width: 70% !important;
    white-space: nowrap !important;
  }

  .carousel-dots {
    bottom: 6px !important;
    gap: 6px !important;
  }

  .dot {
    width: 6px !important;
    height: 6px !important;
  }

  .dot.active {
    width: 16px !important;
    border-radius: 12px !important;
  }

  /* === HERO === */
  .hero-section {
    padding: 1rem 0 1.5rem;
    border-radius: 0 0 30px 30px;
    /* radio fijo para móvil */
  }

  .hero {
    padding: 0 12px;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    width: 70px;
    height: 70px;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .hero-image img {
    max-width: 220px;
  }

  .hero-badge {
    font-size: 1.4rem;
    padding: 0.4rem 1.2rem;
  }

  /* === SERVICIOS === */
  .servicios-header {
    padding: 1.8rem 0 2.5rem;
    border-radius: 0 0 30px 30px;
    margin-top: -30px;
    padding-top: calc(30px + 2.5rem);
  }

  .servicios-header h1 {
    font-size: 2.2rem;
  }

  .servicios-nav .container {
    gap: 0.3rem;
  }

  .servicio-nav-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  /* Carrusel 3D */
  .carousel-3d-container {
    height: 340px;
  }

  .plan-card-3d {
    width: 220px;
    min-height: 300px;
    padding: 1rem;
  }

  .plan-card-3d .plan-emoji {
    font-size: 2rem;
  }

  .plan-card-3d h3 {
    font-size: 1rem;
  }

  .plan-card-3d .plan-precio {
    font-size: 1.3rem;
  }

  .plan-card-3d .plan-features li {
    font-size: 0.7rem;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  /* === NOSOTROS === */
  .nosotros-hero {
    border-radius: 0 0 30px 30px;
    margin-top: -30px;
    padding-top: calc(30px + 3rem);
  }

  .nosotros-hero h1 {
    font-size: 1.8rem;
  }

  .nosotros-stats {
    gap: 1rem;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  /* === CONTACTO === */
  .contacto-header {
    border-radius: 0 0 30px 30px;
    margin-top: -30px;
    padding-top: calc(30px + 3rem);
  }

  .contacto-header h1 {
    font-size: 1.8rem;
  }

  .contacto-grid {
    gap: 1.5rem;
  }

  .form-wrapper {
    padding: 1.5rem;
  }

  .info-card {
    padding: 1rem;
  }

  /* === RESEÑAS === */
  .reviews-section {
    margin-top: -30px;
    padding-top: calc(30px + 3rem);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .review-card {
    max-width: 100%;
    padding: 1.5rem;
  }

  /* === FOOTER === */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-col-payments {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-col-payments h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .payment-methods {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  /* Ajuste general de márgenes negativos para que todas las secciones encajen */
  .services-full-section {
    border-radius: 0 0 30px 30px;
  }

  .servicios-header {
    margin-top: -30px;
    padding-top: calc(30px + 2.5rem);
  }

  .nosotros-hero {
    margin-top: -30px;
    padding-top: calc(30px + 3rem);
  }

  .contacto-header {
    margin-top: -30px;
    padding-top: calc(30px + 3rem);
  }

  .reviews-section {
    margin-top: -30px;
    padding-top: calc(30px + 3rem);
  }

  servicios-header .doodle,
  .contacto-header .doodle {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    opacity: 0.10;
  }

  /* Reubicación para móvil: los ponemos más cerca de las esquinas */
  .servicios-header .d1 {
    top: 10%;
    left: 4%;
    animation-delay: 0.3s;
  }

  .servicios-header .d2 {
    top: 12%;
    right: 4%;
    animation-delay: 1.2s;
  }

  .servicios-header .d3 {
    bottom: 8%;
    left: 6%;
    animation-delay: 1.8s;
  }

  .servicios-header .d4 {
    bottom: 10%;
    right: 6%;
    animation-delay: 0.8s;
  }

  .contacto-header .d1 {
    top: 8%;
    left: 4%;
  }

  .contacto-header .d2 {
    top: 12%;
    right: 4%;
    animation-delay: 0.8s;
  }

  .contacto-header .d3 {
    bottom: 10%;
    left: 6%;
    animation-delay: 1.5s;
  }

  .contacto-header .d4 {
    bottom: 12%;
    right: 6%;
    animation-delay: 0.5s;
  }

  /* --- Ajustes de modales para móvil grande --- */
.modal-container {
    max-width: 95%;
    padding: 1.5rem;
    border-radius: 24px;
}
.modal-close-btn {
    top: 10px;
    right: 14px;
    font-size: 1.2rem;
}
.modal-icon {
    font-size: 2rem;
}
.modal-container h2 {
    font-size: 1.2rem;
}
.modal-input-group input,
.modal-input-group select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}
.modal-btn {
    padding: 0.6rem;
    font-size: 0.9rem;
}
.modal-switch {
    font-size: 0.8rem;
}

/* --- Ajustes para el modal de oferta --- */
.modal-oferta {
    max-width: 95%;
    padding: 1.8rem 1.2rem;
}
.oferta-icono {
    font-size: 3rem;
}
.oferta-grid {
    grid-template-columns: 1fr;  /* ← una columna en móvil */
    gap: 0.8rem;
}
.oferta-card {
    padding: 1rem;
}
.oferta-emoji {
    font-size: 1.6rem;
}
.oferta-numero {
    font-size: 1.4rem;
}
.oferta-btn-principal {
    font-size: 0.95rem;
}
.oferta-btn-secundario {
    font-size: 0.85rem;
}

/* --- Ajustes para el modal de login/registro (grid interno) --- */
#formRegistro .modal-input-group {
    margin-bottom: 0.6rem;
}
#formRegistro > form > div:first-of-type,
#formRegistro > form > div:last-of-type {
    grid-template-columns: 1fr;  /* los grids de dos columnas pasan a una */
    gap: 0.5rem;
}
#formRegistro > form > div:first-of-type .modal-input-group,
#formRegistro > form > div:last-of-type .modal-input-group {
    margin-bottom: 0.6rem;
}
}

/* --- Móviles pequeños (≤ 480px) --- */
@media (max-width: 480px) {

  /* === HEADER === */
  .logo img {
    max-height: 30px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }

  /* === CARRUSEL === */
  .carousel-btn-accion {
    bottom: 12px !important;
    font-size: 0.6rem !important;
    padding: 3px 10px !important;
    max-width: 80% !important;
  }

  .carousel-dots {
    bottom: 4px !important;
    gap: 5px !important;
  }

  .dot {
    width: 5px !important;
    height: 5px !important;
  }

  .dot.active {
    width: 14px !important;
    border-radius: 7px !important;
  }

  /* === HERO === */
  .hero-section {
    border-radius: 0 0 20px 20px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .stat-item {
    width: 60px;
    height: 60px;
  }

  .stat-number {
    font-size: 0.9rem;
  }

  .hero-badge {
    font-size: 1.1rem;
    padding: 0.3rem 1rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  /* === SERVICIOS === */
  .servicios-header {
    border-radius: 0 0 20px 20px;
    margin-top: -20px;
    padding-top: calc(20px + 2.5rem);
  }

  .servicios-header h1 {
    font-size: 1.8rem;
  }

  .servicios-header p {
    font-size: 0.9rem;
  }

  .carousel-3d-container {
    height: 290px;
  }

  .plan-card-3d {
    width: 180px;
    min-height: 260px;
    padding: 0.8rem;
  }

  .plan-card-3d .plan-emoji {
    font-size: 1.6rem;
  }

  .plan-card-3d h3 {
    font-size: 0.9rem;
  }

  .plan-card-3d .plan-precio {
    font-size: 1.1rem;
  }

  .plan-card-3d .plan-features li {
    font-size: 0.65rem;
  }

  .carousel-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .carousel-arrow:first-child {
    left: 0;
  }

  .carousel-arrow:last-child {
    right: 0;
  }

  /* === NOSOTROS === */
  .nosotros-hero {
    border-radius: 0 0 20px 20px;
    margin-top: -20px;
    padding-top: calc(20px + 3rem);
  }

  .nosotros-hero h1 {
    font-size: 1.6rem;
  }

  .nosotros-stat-num {
    font-size: 1.2rem;
  }

  /* === CONTACTO === */
  .contacto-header {
    border-radius: 0 0 20px 20px;
    margin-top: -20px;
    padding-top: calc(20px + 3rem);
  }

  .contacto-header h1 {
    font-size: 1.6rem;
  }

  .contacto-grid {
    gap: 1rem;
  }

  .form-wrapper {
    padding: 1rem;
  }

  .form-wrapper h2 {
    font-size: 1.1rem;
  }

  .info-card {
    padding: 0.8rem;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .info-text h4 {
    font-size: 0.95rem;
  }

  /* === RESEÑAS === */
  .reviews-section {
    margin-top: -20px;
    padding-top: calc(20px + 3rem);
  }

  .section-title {
    font-size: 2rem;
  }

  .review-card {
    padding: 1.2rem;
  }

  .review-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .review-header h4 {
    font-size: 1rem;
  }

  /* === FOOTER === */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-col-payments {
    align-items: center;
    text-align: center;
  }

  .payment-methods {
    justify-content: center;
  }

  .payment-methods i {
    font-size: 2rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo-bottom {
    height: 26px;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }

  /* Ajuste general de márgenes negativos para móvil pequeño */
  .services-full-section {
    border-radius: 0 0 20px 20px;
  }

  .servicios-header {
    margin-top: -20px;
    padding-top: calc(20px + 2.5rem);
  }

  .nosotros-hero {
    margin-top: -20px;
    padding-top: calc(20px + 3rem);
  }

  .contacto-header {
    margin-top: -20px;
    padding-top: calc(20px + 3rem);
  }

  .reviews-section {
    margin-top: -20px;
    padding-top: calc(20px + 3rem);
  }

  .servicios-header .doodle,
  .contacto-header .doodle {
    font-size: 1.2rem;
    opacity: 0.08;
  }

  /* Ocultamos algunos doodles en móvil muy pequeño para no saturar */
  .servicios-header .d3,
  .servicios-header .d4,
  .contacto-header .d3,
  .contacto-header .d4 {
    display: none;
  }

  /* Reubicamos los que quedan */
  .servicios-header .d1 {
    top: 8%;
    left: 3%;
  }

  .servicios-header .d2 {
    top: 8%;
    right: 3%;
  }

  .contacto-header .d1 {
    top: 6%;
    left: 3%;
  }

  .contacto-header .d2 {
    top: 6%;
    right: 3%;
  }

  /* --- Ajustes de modales para móvil pequeño --- */
.modal-container {
    max-width: 98%;
    padding: 1.2rem;
    border-radius: 20px;
}
.modal-close-btn {
    top: 8px;
    right: 10px;
    font-size: 1.1rem;
}
.modal-icon {
    font-size: 1.8rem;
}
.modal-container h2 {
    font-size: 1.1rem;
}
.modal-input-group input,
.modal-input-group select {
    padding: 0.5rem 0.7rem;
    font-size: 0.85rem;
    border-radius: 12px;
}
.modal-btn {
    padding: 0.5rem;
    font-size: 0.85rem;
}
.modal-switch {
    font-size: 0.75rem;
}

/* --- Ajustes para el modal de oferta --- */
.modal-oferta {
    padding: 1.5rem 1rem;
}
.oferta-icono {
    font-size: 2.5rem;
}
.oferta-grid {
    gap: 0.6rem;
}
.oferta-card {
    padding: 0.8rem;
}
.oferta-emoji {
    font-size: 1.4rem;
}
.oferta-numero {
    font-size: 1.2rem;
}
.oferta-etiqueta {
    font-size: 0.8rem;
}
.oferta-codigo {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
}
.oferta-btn-principal {
    font-size: 0.85rem;
    padding: 0.6rem;
}
.oferta-btn-secundario {
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

/* --- Ajustes para el modal de registro (grid interno) --- */
#formRegistro > form > div:first-of-type,
#formRegistro > form > div:last-of-type {
    gap: 0.3rem;
}
#formRegistro .modal-input-group input,
#formRegistro .modal-input-group select {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}
}