﻿/* ==========================================
   ESTILO MÉDICO - VERDE UNIFORME
   CON ANIMACIONES Y TARJETAS FLIP
   ========================================== */

:root {
  --verde-principal: #2D9B7A;
  --verde-hover: #3AB795;
  --verde-fondo: #D4E8E0;
  --verde-seccion: #E8F5F0;
  --verde-borde: #A8D0BE;
  --verde-oscuro: #1A6B52;
  --verde-texto: #1A6B52;
  --verde-claro: #4AC8A5;
  --blanco: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sombra: 0 4px 16px rgba(45, 155, 122, 0.12);
  --sombra-fuerte: 0 8px 32px rgba(45, 155, 122, 0.2);
  --radio: 12px;
  --radio-full: 9999px;
  --transicion: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--verde-fondo);
  color: var(--verde-oscuro);
  line-height: 1.6;
  padding: 2rem 1.5rem;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================
   TARJETA PRINCIPAL - BORDE Y SOMBRA VERDE
   ========================================== */
.card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 2.5rem 2.5rem 2rem;
  border: 2px solid var(--verde-borde);
  width: 100%;
  box-sizing: border-box;
  transition: var(--transicion);
}

.card:hover {
  box-shadow: var(--sombra-fuerte);
}

/* ==========================================
   HEADER - TODO VERDE
   ========================================== */
.profile-header {
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--verde-borde);
  margin-bottom: 1.5rem;
}

.profile-left-with-photo {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
}

.photo-container {
  flex-shrink: 0;
}

.doctor-photo {
  width: 200px;
  height: 200px;
  border-radius: 70%;
  object-fit: cover;
  border: 4px solid var(--verde-principal);
  box-shadow: 0 4px 20px rgba(45, 155, 122, 0.2);
  display: block;
}

.profile-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* 🔥 NOMBRE - VERDE OSCURO */
.profile-text h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

/* 🔥 ESPECIALIDAD - VERDE PRINCIPAL */
.specialty-main {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blanco);
  background: var(--verde-principal);
  padding: 0.2rem 1rem;
  border-radius: var(--radio-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.specialty-main i {
  color: var(--blanco);
}

/* 🔥 EDUCACIÓN - VERDE PRINCIPAL */
.education-info {
  font-size: 0.9rem;
  color: var(--verde-principal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.education-info i {
  color: var(--verde-principal);
  font-size: 0.8rem;
}

.education-text {
  color: var(--verde-principal);
}

/* 🔥 MENSAJE DE CONFIANZA - VERDE */
.trust-message {
  font-size: 0.85rem;
  color: var(--verde-principal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--verde-seccion);
  padding: 0.2rem 1rem;
  border-radius: var(--radio-full);
  width: fit-content;
}

.trust-message i {
  color: var(--verde-principal);
}

/* 🔥 UBICACIÓN Y CÉDULA - VERDE */
.location-cedula {
  font-size: 0.85rem;
  color: var(--verde-oscuro);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  background: var(--verde-seccion);
  padding: 0.3rem 1rem;
  border-radius: var(--radio-full);
  border: 1px solid var(--verde-borde);
  width: fit-content;
}

.location-cedula i {
  color: var(--verde-principal);
}

.location-cedula .separator {
  color: var(--verde-borde);
}

/* ==========================================
   ESPECIALIDADES - BORDE VERDE
   ========================================== */
.specialties-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.specialty-item {
  background: var(--verde-seccion);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radio-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--verde-oscuro);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--verde-borde);
  transition: var(--transicion);
}

.specialty-item:hover {
  border-color: var(--verde-principal);
  background: var(--verde-fondo);
}

.specialty-item i {
  color: var(--verde-principal);
  font-size: 0.9rem;
}

/* ==========================================
   BOTONES - VERDES
   ========================================== */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radio-full);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-height: 52px;
  flex: 1 1 auto;
  min-width: 140px;
  transition: var(--transicion);
}

.btn i {
  font-size: 1.1rem;
}

/* 🔥 BOTÓN LLAMAR - VERDE */
.btn-call {
  background: var(--verde-principal);
  color: var(--blanco);
}

.btn-call:hover {
  background: var(--verde-hover);
  transform: translateY(-2px);
  box-shadow: var(--sombra-fuerte);
}

/* Botón WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: var(--blanco);
}

.btn-whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* 🔥 BOTÓN CITA - VERDE */
.btn-appointment {
  background: var(--verde-principal);
  color: var(--blanco);
}

.btn-appointment:hover {
  background: var(--verde-hover);
  transform: translateY(-2px);
  box-shadow: var(--sombra-fuerte);
}

/* ==========================================
   TELÉFONOS - VERDE
   ========================================== */
.phones-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  background: var(--verde-seccion);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radio);
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--verde-borde);
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--verde-oscuro);
}

.phone-item i {
  color: var(--verde-principal);
}

.phone-item strong,
.footer-contacts span {
  color: var(--verde-principal) !important;
  text-decoration: none !important;
}

/* ==========================================
   HERO - VERDE
   ========================================== */
.hero-section {
  background: var(--verde-seccion);
  border-radius: var(--radio);
  padding: 2rem 2rem;
  margin: 1.5rem 0;
  border: 1.5px solid var(--verde-borde);
  text-align: center;
}

.hero-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin-bottom: 0.5rem;
}

.hero-section p {
  font-size: 1.05rem;
  color: var(--verde-oscuro);
  max-width: 720px;
  margin: 0 auto 1rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  margin-top: 0.75rem;
  color: var(--verde-oscuro);
  font-size: 0.95rem;
}

.hero-highlights span {
  background: var(--blanco);
  border: 1.5px solid var(--verde-borde);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radio-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
}

.hero-highlights span:hover {
  border-color: var(--verde-principal);
}

.experience-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
}

.experience-text strong {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 1.2rem;
  color: var(--verde-principal);
}

#counter-years {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--verde-principal);
  min-width: 50px;
  text-align: center;
  transition: color 0.3s ease;
}

#counter-years.done {
  color: var(--verde-hover);
  animation: pop 0.5s ease-out forwards;
}

/* ==========================================
   PERFIL PROFESIONAL - VERDE
   ========================================== */
.professional-summary {
  margin: 2rem 0;
  padding: 1.8rem 1.8rem;
  background: var(--blanco);
  border-radius: var(--radio);
  border: 1px solid var(--verde-borde);
}

.professional-summary h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--verde-oscuro);
}

.professional-summary p {
  color: var(--verde-oscuro);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.professional-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.professional-summary ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--verde-oscuro);
  line-height: 1.6;
}

.professional-summary ul li::before {
  content: '•';
  color: var(--verde-principal);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

/* ==========================================
   BENEFICIOS - TARJETAS FLIP VERDES
   ========================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.flip-card {
  perspective: 1000px;
  height: 260px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radio);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid var(--verde-borde);
  background: var(--blanco);
  box-shadow: var(--sombra);
}

.flip-card-front {
  z-index: 2;
}

.flip-card-front i {
  font-size: 2.5rem;
  color: var(--verde-principal);
  margin-bottom: 0.75rem;
}

.flip-card-front h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin-bottom: 0.5rem;
}

.flip-card-front p {
  font-size: 0.9rem;
  color: var(--verde-oscuro);
  line-height: 1.5;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--verde-principal), var(--verde-hover));
  color: #FFFFFF;
  border-color: var(--verde-principal);
}

.flip-card-back i {
  font-size: 2.5rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.flip-card-back p {
  font-size: 0.95rem;
  color: #FFFFFF;
  line-height: 1.6;
}

.flip-card-back::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}

/* ==========================================
   INFO BLOCK - VERDE
   ========================================== */
.info-block {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--verde-seccion);
  border-radius: var(--radio);
  border-left: 4px solid var(--verde-principal);
  border: 1px solid var(--verde-borde);
  border-left-width: 4px;
}

.info-block h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin-bottom: 0.5rem;
}

.info-block p {
  color: var(--verde-oscuro);
  line-height: 1.7;
}

.info-block ul {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.info-block ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--verde-oscuro);
}

.info-block ul li i {
  color: var(--verde-principal);
  font-size: 0.6rem;
}

/* ==========================================
   TESTIMONIOS - TARJETAS VERDES
   ========================================== */
.testimonials {
  margin: 2rem 0;
}

.testimonials h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  justify-content: center;
}

.testimonials h3 i {
  color: #f5b342;
  font-size: 1.4rem;
}

.testimonials h3::before,
.testimonials h3::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--verde-borde);
  max-width: 60px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--blanco);
  padding: 1.5rem;
  border-radius: var(--radio);
  border: 1.5px solid var(--verde-borde);
  box-shadow: var(--sombra);
  transition: var(--transicion);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--verde-principal);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--verde-principal);
  box-shadow: var(--sombra-fuerte);
}

.testimonial-card .stars {
  color: #f5b342;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--verde-oscuro);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-card .author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--verde-principal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-card .author::before {
  content: '—';
  color: var(--verde-borde);
}

/* ==========================================
   UBICACIÓN - VERDE
   ========================================== */
.location-section {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--verde-seccion);
  border-radius: var(--radio);
  border: 1px solid var(--verde-borde);
}

.location-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-section h3 i {
  color: var(--verde-principal);
}

.location-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.location-details p {
  font-size: 0.95rem;
  color: var(--verde-oscuro);
  line-height: 1.7;
}

.location-details p strong {
  color: var(--verde-oscuro);
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--verde-principal);
  color: var(--blanco);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radio-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  transition: var(--transicion);
}

.btn-maps:hover {
  background: var(--verde-hover);
  transform: translateY(-2px);
  box-shadow: var(--sombra-fuerte);
}

/* ==========================================
   CTA FINAL - VERDE
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-hover) 100%);
  color: var(--blanco);
  border-radius: var(--radio);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2rem 0 1.5rem;
  box-shadow: 0 8px 32px rgba(45, 155, 122, 0.25);
  border: none;
}

.cta-section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cta-section .btn {
  min-width: 180px;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radio-full);
  transition: var(--transicion);
  border: 2px solid transparent;
}

.cta-section .btn-call {
  background: #FFFFFF;
  color: var(--verde-principal);
  border-color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-call:hover {
  background: var(--verde-seccion);
  border-color: var(--verde-seccion);
  transform: translateY(-2px);
}

.cta-section .btn-call i {
  color: var(--verde-principal);
}

.cta-section .btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.cta-section .btn-whatsapp:hover {
  background: #1DA851;
  border-color: #1DA851;
  transform: translateY(-2px);
}

.cta-section .btn-whatsapp i {
  color: #FFFFFF;
}

/* ==========================================
   FOOTER - VERDE
   ========================================== */
.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 2px solid var(--verde-borde);
  font-size: 0.85rem;
  color: var(--verde-oscuro);
  gap: 0.5rem;
}

.footer-info .dir {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-info .dir i {
  color: var(--verde-principal);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-contacts span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-contacts i {
  color: var(--verde-principal);
}

/* ==========================================
   REDES SOCIALES - INSTAGRAM VERDE
   ========================================== */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--verde-seccion);
  color: var(--verde-principal);
  border: 1.5px solid var(--verde-borde);
  transition: var(--transicion);
  text-decoration: none;
  font-size: 1.1rem;
}

.social-links a:hover {
  background: var(--verde-principal);
  color: var(--blanco);
  border-color: var(--verde-principal);
  transform: translateY(-2px);
  box-shadow: var(--sombra-fuerte);
}

/* ==========================================
   PRIVACIDAD - VERDE
   ========================================== */
.privacy-notice {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--verde-borde);
  font-size: 0.7rem;
  color: var(--verde-oscuro);
  text-align: center;
  opacity: 0.7;
}

/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.25s; }
.fade-in-3 { animation-delay: 0.4s; }
.fade-in-4 { animation-delay: 0.55s; }
.fade-in-5 { animation-delay: 0.7s; }
.fade-in-6 { animation-delay: 0.85s; }
.fade-in-7 { animation-delay: 1s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
}
.slide-up-1 { animation-delay: 0.1s; }
.slide-up-2 { animation-delay: 0.3s; }
.slide-up-3 { animation-delay: 0.5s; }
.slide-up-4 { animation-delay: 0.7s; }
.slide-up-5 { animation-delay: 0.9s; }
.slide-up-6 { animation-delay: 1.1s; }
.slide-up-7 { animation-delay: 1.3s; }

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.zoom-in {
  animation: zoomIn 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

@keyframes shine {
  from { background-position: -200% center; }
  to { background-position: 200% center; }
}

.shine-text {
  background: linear-gradient(90deg, 
    var(--verde-principal) 0%, 
    var(--verde-hover) 40%, 
    var(--verde-principal) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 3s linear infinite;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }

  .card {
    padding: 1rem;
    border-radius: 12px;
  }

  .profile-left-with-photo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .doctor-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--verde-principal);
  }

  .profile-text {
    text-align: center;
    align-items: center;
  }

  .profile-text h1 {
    font-size: 1.4rem;
    word-break: break-word;
  }

  .specialty-main,
  .education-info,
  .trust-message {
    justify-content: center;
    width: auto;
  }

  .location-cedula {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    padding: 0.3rem 0.8rem;
  }

  .location-cedula .separator {
    display: none;
  }

  .contact-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-width: unset;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    min-height: 52px;
    box-sizing: border-box;
  }

  .specialties-section {
    gap: 0.4rem;
    justify-content: center;
  }

  .specialty-item {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .hero-section {
    padding: 1.2rem;
  }

  .hero-section h2 {
    font-size: 1.3rem;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-highlights span {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .experience-text {
    flex-wrap: wrap;
    justify-content: center;
  }

  #counter-years {
    font-size: 1.5rem;
    min-width: 35px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    gap: 1rem;
  }

  .flip-card {
    height: 200px;
    min-height: unset;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
  }

  .flip-card:active {
    transform: scale(0.98);
  }

  .flip-card-front,
  .flip-card-back {
    padding: 1rem;
  }

  .flip-card-front h4 {
    font-size: 0.95rem;
  }

  .flip-card-front p,
  .flip-card-back p {
    font-size: 0.8rem;
  }

  .flip-card-front i,
  .flip-card-back i {
    font-size: 2rem;
  }

  .info-block {
    padding: 1rem;
  }

  .info-block ul {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonials h3 {
    font-size: 1.2rem;
  }

  .testimonials h3::before,
  .testimonials h3::after {
    max-width: 30px;
  }

  .testimonial-card {
    padding: 1.2rem;
  }

  .testimonial-card p {
    font-size: 0.85rem;
  }

  .testimonial-card .stars {
    font-size: 0.8rem;
  }

  .cta-section {
    padding: 1.5rem 1rem;
  }

  .cta-section h3 {
    font-size: 1.3rem;
  }

  .cta-section .btn {
    width: 100%;
    min-width: unset;
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .footer-info {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-contacts {
    flex-direction: column;
    gap: 0.25rem;
  }

  .location-details {
    flex-direction: column;
    text-align: center;
  }

  .location-section {
    padding: 1rem;
  }

  .phones-section {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .social-links {
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .profile-text h1 {
    font-size: 1.2rem;
  }

  .doctor-photo {
    width: 120px;
    height: 120px;
  }

  .flip-card {
    height: 180px;
  }

  .flip-card-front h4 {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.7rem;
    min-height: 48px;
  }

  .hero-section h2 {
    font-size: 1.1rem;
  }

  .cta-section h3 {
    font-size: 1.1rem;
  }
}

/* ==========================================
   MODO OSCURO - VERDE OSCURO
   ========================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --verde-fondo: #0F2F22;
    --verde-seccion: #1A3A2A;
    --verde-borde: #1A4A3A;
    --verde-principal: #3AB795;
    --verde-hover: #4AC8A5;
    --verde-oscuro: #8FBCA8;
    --blanco: #1A2332;
    --sombra: 0 4px 16px rgba(0, 0, 0, 0.3);
    --sombra-fuerte: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  body {
    background: var(--verde-fondo);
  }

  .card {
    background: #1A2332;
    border-color: var(--verde-borde);
  }

  .hero-section {
    background: var(--verde-seccion);
    border-color: var(--verde-borde);
  }

  .hero-section h2 {
    color: var(--verde-oscuro);
  }

  .hero-section p {
    color: var(--verde-oscuro);
  }

  .flip-card-front {
    background: #111827;
    border-color: var(--verde-borde);
  }

  .flip-card-front h4 {
    color: var(--verde-oscuro);
  }

  .flip-card-front p {
    color: var(--verde-oscuro);
  }

  .flip-card-back {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-hover));
  }

  .specialty-main {
    background: var(--verde-principal);
  }

  .education-info {
    color: var(--verde-principal);
  }

  .education-text {
    color: var(--verde-principal);
  }

  .trust-message {
    background: var(--verde-seccion);
  }

  .location-cedula {
    background: var(--verde-seccion);
    border-color: var(--verde-borde);
    color: var(--verde-oscuro);
  }

  .specialty-item {
    background: var(--verde-seccion);
    border-color: var(--verde-borde);
    color: var(--verde-oscuro);
  }

  .specialty-item:hover {
    border-color: var(--verde-principal);
  }

  .info-block {
    background: var(--verde-seccion);
    border-color: var(--verde-borde);
  }

  .info-block h3 {
    color: var(--verde-oscuro);
  }

  .info-block p {
    color: var(--verde-oscuro);
  }

  .info-block ul li {
    color: var(--verde-oscuro);
  }

  .location-section {
    background: var(--verde-seccion);
    border-color: var(--verde-borde);
  }

  .location-section h3 {
    color: var(--verde-oscuro);
  }

  .location-details p {
    color: var(--verde-oscuro);
  }

  .location-details p strong {
    color: var(--verde-oscuro);
  }

  .phones-section {
    background: var(--verde-seccion);
    border-color: var(--verde-borde);
  }

  .phone-item {
    color: var(--verde-oscuro);
  }

  .professional-summary {
    border-color: var(--verde-borde);
  }

  .professional-summary h3 {
    color: var(--verde-oscuro);
  }

  .professional-summary p {
    color: var(--verde-oscuro);
  }

  .professional-summary ul li {
    color: var(--verde-oscuro);
  }

  .hero-highlights span {
    background: #111827;
    border-color: var(--verde-borde);
    color: var(--verde-oscuro);
  }

  .hero-highlights {
    color: var(--verde-oscuro);
  }

  #counter-years {
    color: var(--verde-principal);
  }

  .profile-text h1 {
    color: var(--verde-oscuro);
  }

  .shine-text {
    background: linear-gradient(90deg, 
      var(--verde-oscuro) 0%, 
      var(--verde-principal) 40%, 
      var(--verde-oscuro) 80%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
  }

  .phone-item strong,
  .footer-contacts span {
    color: var(--verde-principal) !important;
  }

  .btn-call {
    background: var(--verde-principal);
  }

  .btn-call:hover {
    background: var(--verde-hover);
  }

  .btn-appointment {
    background: var(--verde-principal);
  }

  .btn-appointment:hover {
    background: var(--verde-hover);
  }

  .btn-maps {
    background: var(--verde-principal);
  }

  .btn-maps:hover {
    background: var(--verde-hover);
  }

  .cta-section {
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-hover));
  }

  .cta-section .btn-call {
    background: var(--blanco);
    color: var(--verde-principal);
  }

  .cta-section .btn-call:hover {
    background: var(--verde-seccion);
  }

  .social-links a {
    background: var(--verde-seccion);
    color: var(--verde-principal);
    border-color: var(--verde-borde);
  }

  .social-links a:hover {
    background: var(--verde-principal);
    color: var(--blanco);
    border-color: var(--verde-principal);
  }

  .testimonial-card {
    background: #111827;
    border-color: var(--verde-borde);
  }

  .testimonial-card p {
    color: var(--verde-oscuro);
  }

  .testimonial-card .author {
    color: var(--verde-principal);
  }

  .footer-info {
    color: var(--verde-oscuro);
  }

  .privacy-notice {
    color: var(--verde-oscuro);
  }
}

/* ==========================================
   ESTRELLAS PARPADEANTES - FONDO VERDE
   ========================================== */

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: var(--verde-fondo);
}

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: twinkle ease-in-out infinite alternate;
}

.star:nth-child(1) { width: 3px; height: 3px; top: 10%; left: 15%; animation-duration: 1.5s; animation-delay: 0s; }
.star:nth-child(2) { width: 2px; height: 2px; top: 25%; left: 30%; animation-duration: 2.5s; animation-delay: 0.5s; }
.star:nth-child(3) { width: 4px; height: 4px; top: 15%; left: 55%; animation-duration: 1.8s; animation-delay: 1s; }
.star:nth-child(4) { width: 2px; height: 2px; top: 35%; left: 70%; animation-duration: 2s; animation-delay: 0.3s; }
.star:nth-child(5) { width: 3px; height: 3px; top: 5%; left: 85%; animation-duration: 1.2s; animation-delay: 0.8s; }
.star:nth-child(6) { width: 5px; height: 5px; top: 45%; left: 10%; animation-duration: 2.2s; animation-delay: 1.5s; }
.star:nth-child(7) { width: 2px; height: 2px; top: 55%; left: 45%; animation-duration: 1.7s; animation-delay: 0.2s; }
.star:nth-child(8) { width: 3px; height: 3px; top: 65%; left: 80%; animation-duration: 2.8s; animation-delay: 0.7s; }
.star:nth-child(9) { width: 4px; height: 4px; top: 75%; left: 25%; animation-duration: 1.4s; animation-delay: 1.2s; }
.star:nth-child(10) { width: 2px; height: 2px; top: 85%; left: 60%; animation-duration: 2.1s; animation-delay: 0.4s; }

@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}