/* ========================================
   SALUDABLEMENTE - MEJORAS PROFESIONALES
   QA Environment
   ======================================== */

/* -----------------------------------------
   1. VARIABLES CSS - Sistema de diseño
   ----------------------------------------- */
:root {
  /* Colores principales */
  --primary-green: #2ecc71;
  --primary-green-dark: #27ae60;
  --primary-green-light: #a8e6cf;
  --primary-blue: #00425b;
  --primary-blue-dark: #003347;
  --primary-blue-light: #006080;
  
  /* Colores de acento */
  --accent-orange: #e74c3c;
  --accent-orange-hover: #c0392b;
  --accent-coral: #ff6b6b;
  
  /* Neutros */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Tipografía */
  --font-heading: "Yeseva One", Georgia, serif;
  --font-body: "CircularStd", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Bordes y sombras */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 40px rgba(46, 204, 113, 0.3);
  
  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -----------------------------------------
   2. MEJORAS GLOBALES
   ----------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Mejor selección de texto */
::selection {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Focus visible para accesibilidad */
*:focus-visible {
  outline: 3px solid var(--primary-green);
  outline-offset: 2px;
}

/* -----------------------------------------
   3. HEADER MEJORADO
   ----------------------------------------- */
.header-nav-center {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.header-nav-center.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-lg);
}

.navbar-brand img.logo {
  transition: transform var(--transition-base);
}

.navbar-brand:hover img.logo {
  transform: scale(1.05);
}

/* Navegación mejorada */
.navbar-nav .nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition-base);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* -----------------------------------------
   4. BOTONES MEJORADOS
   ----------------------------------------- */
.btn {
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Botón primario (Agendar cita) */
.btn.bg-red,
.btn.bg-orange-red {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-coral) 100%) !important;
  border: none;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.btn.bg-red:hover,
.btn.bg-orange-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

.btn.bg-red:active,
.btn.bg-orange-red:active {
  transform: translateY(0);
}

/* Efecto ripple en botones */
.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* -----------------------------------------
   5. HERO / BANNER MEJORADO
   ----------------------------------------- */
.banner_section.banner_demo4 {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-3xl);
}

.banner_title h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner_title .before_title span {
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
}

/* Tarjeta de información de contacto */
.list_aboutcompany {
  background: var(--white);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary-green);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.list_aboutcompany:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

.list_aboutcompany .item_xq {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition-fast);
}

.list_aboutcompany .item_xq:hover {
  background: var(--gray-50);
}

.list_aboutcompany .item_xq:last-child {
  border-bottom: none;
}

.list_aboutcompany .item_xq span {
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.list_aboutcompany .item_xq h3 {
  color: var(--gray-700);
  font-size: 1rem;
  margin-top: var(--space-xs);
}

.list_aboutcompany .item_xq a {
  color: var(--primary-blue);
  font-weight: 500;
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.list_aboutcompany .item_xq a:hover {
  color: var(--primary-green);
  transform: translateX(5px);
}

/* Imagen hero mejorada */
.img_head_uniqe .bb_img img {
  transition: transform var(--transition-slow);
}

.img_head_uniqe:hover .bb_img img {
  transform: scale(1.02);
}

/* -----------------------------------------
   6. SECCIÓN DE MÉTODOS DE PAGO
   ----------------------------------------- */
.services_section .items_serv {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
}

.services_section .items_serv:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green-light);
}

.services_section .items_serv .item-img {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-right: var(--space-md);
  transition: background var(--transition-base);
}

.services_section .items_serv:hover .item-img {
  background: var(--primary-green-light);
}

.services_section .items_serv .item-img img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.services_section .items_serv h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* -----------------------------------------
   7. SECCIÓN ABOUT MEJORADA
   ----------------------------------------- */
.about_ir .title_sections h2 {
  position: relative;
  padding-bottom: var(--space-lg);
}

.about_ir .title_sections h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
  border-radius: 2px;
}

.aboutme_gs p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-600);
}

/* -----------------------------------------
   8. GALERÍA / SWIPER MEJORADO
   ----------------------------------------- */
.swipe_basic_topic .swiper-slide .item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.swipe_basic_topic .swiper-slide .item:hover {
  box-shadow: var(--shadow-2xl);
}

.swipe_basic_topic .swiper-slide .item img {
  transition: transform var(--transition-slow);
  object-fit: cover;
}

.swipe_basic_topic .swiper-slide .item:hover img {
  transform: scale(1.08);
}

/* -----------------------------------------
   9. SECCIÓN DE SERVICIOS
   ----------------------------------------- */
.service__workspace.features__workspace {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.service__workspace .title_sections_inner h2 {
  color: var(--primary-blue);
}

.service__workspace .inside__zoop {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service__workspace .inside__zoop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-green);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.service__workspace .inside__zoop:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green-light);
}

.service__workspace .inside__zoop:hover::before {
  transform: scaleY(1);
}

.service__workspace .inside__zoop h4 {
  font-weight: 600;
  color: var(--gray-700);
  margin: 0;
  transition: color var(--transition-fast);
}

.service__workspace .inside__zoop:hover h4 {
  color: var(--primary-green);
}

/* -----------------------------------------
   10. SECCIÓN DE EQUIPO MEJORADA
   ----------------------------------------- */
.sec__office_location {
  background: var(--gray-50);
}

.sec__office_location .title_sections h2 {
  text-align: center;
  position: relative;
  display: inline-block;
}

.sec__office_location .title_sections h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
  border-radius: 2px;
}

/* Cards del equipo */
.block_map_locat {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
  height: 100%;
}

.block_map_locat:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-2xl);
}

.block_map_locat .block_loaction {
  padding: var(--space-xl);
}

.block_map_locat .item_locat h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.block_map_locat .item_locat .add_ress {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--space-md);
}

.block_map_locat .item_locat img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gray-100);
  transition: all var(--transition-base);
  margin: 0 auto;
  display: block;
}

.block_map_locat:hover .item_locat img {
  border-color: var(--primary-green);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.block_map_locat .availability h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: var(--space-sm);
}

.block_map_locat .availability span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.block_map_locat .availability .c-green {
  color: var(--primary-green) !important;
  font-weight: 600;
}

/* Especialidad tag */
.block_map_locat .font-s-14.c-green {
  background: var(--primary-green-light);
  color: var(--primary-green-dark) !important;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

/* -----------------------------------------
   11. SECCIÓN DE CONTACTO
   ----------------------------------------- */
.simplecontact_section.gbo_contact {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  position: relative;
  overflow: hidden;
}

.simplecontact_section.gbo_contact::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.simplecontact_section .title_sections h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.simplecontact_section .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* -----------------------------------------
   12. FOOTER MEJORADO
   ----------------------------------------- */
.defalut-footer.gq_footer {
  background: linear-gradient(180deg, var(--primary-blue-dark) 0%, #001a24 100%);
}

.gq_footer .item_about h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.gq_footer .item_about h4 {
  font-size: 1rem;
  opacity: 0.9;
}

.gq_footer iframe {
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  box-shadow: var(--shadow-lg);
}

.gq_footer .btn-social {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  font-size: 1.2rem;
}

.gq_footer .btn-social:hover {
  background: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.gq_footer .btn-social.whatsapp-item:hover {
  background: #25d366;
}

.gq_footer .btn-social.call-item:hover {
  background: var(--accent-orange);
}

/* Imagen de marcas */
.gq_footer img.rounded-8 {
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.gq_footer img.rounded-8:hover {
  transform: scale(1.02);
}

/* -----------------------------------------
   13. LOADING / PRELOADER
   ----------------------------------------- */
.loading_overlay {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
}

.loading_overlay .loader_logo img {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* -----------------------------------------
   14. SCROLL TO TOP MEJORADO
   ----------------------------------------- */
.prgoress_indicator {
  background: var(--primary-green);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.prgoress_indicator:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* -----------------------------------------
   15. ANIMACIONES PERSONALIZADAS
   ----------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Aplicar animaciones a elementos */
[data-aos="fade-up"] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* -----------------------------------------
   16. MEJORAS RESPONSIVE
   ----------------------------------------- */
@media (max-width: 991px) {
  .list_aboutcompany {
    margin-top: var(--space-xl);
  }
  
  .service__workspace .inside__zoop {
    padding: var(--space-lg);
  }
  
  .block_map_locat .block_loaction {
    padding: var(--space-lg);
  }
}

@media (max-width: 767px) {
  :root {
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }
  
  .banner_title h1 {
    text-align: center;
  }
  
  .banner_title .before_title {
    text-align: center;
  }
  
  .item_sm-about {
    text-align: center !important;
  }
  
  .services_section .items_serv {
    margin-bottom: var(--space-md);
  }
  
  .block_map_locat {
    margin-bottom: var(--space-lg);
  }
  
  .simplecontact_section .title_sections {
    text-align: center;
  }
  
  .simplecontact_section .text-md-right {
    text-align: center !important;
    margin-top: var(--space-lg);
  }
  
  .gq_footer .row > div {
    text-align: center;
    margin-bottom: var(--space-xl);
  }
}

/* -----------------------------------------
   17. DARK MODE PREPARATION (BONUS)
   ----------------------------------------- */
@media (prefers-color-scheme: dark) {
  /* Preparado para futuro dark mode */
}

/* -----------------------------------------
   18. UTILIDADES ADICIONALES
   ----------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Mejora de legibilidad */
.aboutme_gs p,
.title_sections p,
.title_sections_inner p {
  max-width: 65ch;
}

/* Badge QA indicator */
body::after {
  content: "QA";
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--accent-orange);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}
