/*=============== VARIABLES CSS MEJORADAS ===============*/
:root {
  /* Gradientes */
  --primary-gradient: linear-gradient(135deg, #00c3ff 0%, #0066cc 100%);
  --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Colores principales */
  --accent-color: #00ff88;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* Colores de texto */
  --title-color: #ffffff;
  --text-color: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Colores de fondo */
  --body-color: #0a0a1a;
  --surface-color: rgba(255, 255, 255, 0.05);
  --border-color: rgba(0, 195, 255, 0.3);

  /* Tipografía */
  --body-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --title-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --h1-font-size: 3.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  
  /* Sombras */
  --shadow-light: 0 4px 20px rgba(0, 195, 255, 0.1);
  --shadow-medium: 0 8px 30px rgba(0, 195, 255, 0.2);
  --shadow-heavy: 0 15px 50px rgba(0, 195, 255, 0.3);
  
  /* Transiciones */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.6s ease;

  /* Header */
  --header-height: 5rem;
}

/*=============== BASE MEJORADA ===============*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base para rem */
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 { font-size: var(--h1-font-size); }
h2 { font-size: var(--h2-font-size); }
h3 { font-size: var(--h3-font-size); }

ul, ol { 
  list-style: none; 
}

a { 
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

a:focus-visible, 
button:focus-visible, 
.thumbnail:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-color);
}

/*=============== FONDO ANIMADO OPTIMIZADO ===============*/
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 195, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
  animation: bgShift 20s ease-in-out infinite;
  will-change: filter;
}

@keyframes bgShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/*=============== UTILIDADES MEJORADAS ===============*/
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
}
.btn-primary {
  margin-top: 2rem; 
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: transparent;
  color: var(--title-color);
  border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: #00c3ff;
}

/*=============== HEADER MEJORADO ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav__logo {
  width: 150px;
}

.nav__menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link:hover,
.nav__link.active {
  color: #00c3ff;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

/*=============== HERO SECTION MEJORADA ===============*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__content {
  z-index: 2;
}

.hero__subtitle {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #00c3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero__description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__image {
  z-index: 1;
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(0, 195, 255, 0.4));
  animation: ripple 6s ease-in-out infinite;
  will-change: transform, filter;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@keyframes ripple {
  0%, 100% { 
    transform: scale(1); 
    filter: drop-shadow(0 0 25px rgba(0, 195, 255, 0.4)); 
  }
  50% { 
    transform: scale(1.03); 
    filter: drop-shadow(0 0 35px rgba(0, 195, 255, 0.6)); 
  }
}

.hero__stats {
  margin-top: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*=============== SECCIONES GENÉRICAS ===============*/
.section {
  padding: 6rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section__subtitle {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.section__description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/*=============== ABOUT ===============*/
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__content h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--accent-color);
}

.about__text {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about__features {
  display: grid;
  gap: 1.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: 0.75rem;
  border: 1px solid var(--glass-border);
  transition: var(--transition-base);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature__icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.feature__content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about__visual {
  position: relative;
}

.about__image {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-medium);
}

.about__stats {
  position: absolute;
  bottom: -20px;
  left: -20px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

/*=============== SERVICES SECTION ===============*/
.services-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 600px;
    background: transparent;
}
.service-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.service-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(5px);
    z-index: 1;
    transition: background 0.3s ease;
}
.service-card:hover .service-background::after {
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 100% );
}

.service-background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes serviceCardSlideTransition {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Animaciones de slides para cada tarjeta */
.service-card:nth-of-type(1) .service-background-slide:nth-child(1) { animation: serviceCardSlideTransition 20s infinite 0s; }
.service-card:nth-of-type(1) .service-background-slide:nth-child(2) { animation: serviceCardSlideTransition 20s infinite 5s; }
.service-card:nth-of-type(1) .service-background-slide:nth-child(3) { animation: serviceCardSlideTransition 20s infinite 10s; }
.service-card:nth-of-type(1) .service-background-slide:nth-child(4) { animation: serviceCardSlideTransition 20s infinite 15s; }

.service-card:nth-of-type(2) .service-background-slide:nth-child(1) { animation: serviceCardSlideTransition 20s infinite 2s; }
.service-card:nth-of-type(2) .service-background-slide:nth-child(2) { animation: serviceCardSlideTransition 20s infinite 7s; }
.service-card:nth-of-type(2) .service-background-slide:nth-child(3) { animation: serviceCardSlideTransition 20s infinite 12s; }
.service-card:nth-of-type(2) .service-background-slide:nth-child(4) { animation: serviceCardSlideTransition 20s infinite 17s; }

.service-card:nth-of-type(3) .service-background-slide:nth-child(1) { animation: serviceCardSlideTransition 20s infinite 3s; }
.service-card:nth-of-type(3) .service-background-slide:nth-child(2) { animation: serviceCardSlideTransition 20s infinite 8s; }
.service-card:nth-of-type(3) .service-background-slide:nth-child(3) { animation: serviceCardSlideTransition 20s infinite 13s; }
.service-card:nth-of-type(3) .service-background-slide:nth-child(4) { animation: serviceCardSlideTransition 20s infinite 18s; }

.service-card:nth-of-type(4) .service-background-slide:nth-child(1) { animation: serviceCardSlideTransition 20s infinite 4s; }
.service-card:nth-of-type(4) .service-background-slide:nth-child(2) { animation: serviceCardSlideTransition 20s infinite 9s; }
.service-card:nth-of-type(4) .service-background-slide:nth-child(3) { animation: serviceCardSlideTransition 20s infinite 14s; }
.service-card:nth-of-type(4) .service-background-slide:nth-child(4) { animation: serviceCardSlideTransition 20s infinite 19s; }


.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover .service-icon::before {
    transform: translateX(100%);
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-title {
    color: var(--title-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.service-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 14px;
}

.feature-item i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 12px;
}

/*=============== ORGANIGRAMA MEJORADO ===============*/
.organigrama {
  position: relative;
  padding: 6rem 0;
}

.companies-tree {
  position: relative;
  margin-top: 4rem;
}

.companies-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
}

.companies-row::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--glass-border);
}

.company-node {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.company-node::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background-color: var(--glass-border);
}

.company-node:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-color);
}

.company-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--title-color);
}

.company-location {
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/*=============== SECCIÓN DE UBICACIONES (MAPS) ===============*/
.locations-section {
  background: var(--glass-bg);
  padding: 4rem 2rem;
  border-radius: 1.25rem;
  margin-top: 4rem;
  border: 1px solid var(--glass-border);
}

.locations-container {
  max-width: 1000px;
  margin: 0 auto;
}

.location-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.location-tab {
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--glass-border);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.location-tab:hover {
  color: var(--title-color);
  border-color: var(--accent-color);
  background: var(--glass-bg);
}

.location-tab.active {
  background: var(--primary-gradient);
  color: white;
  border-color: #00c3ff;
  box-shadow: var(--shadow-light);
  transform: translateY(-2px);
}

.maps-container {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: #1a1a2e;
  box-shadow: var(--shadow-heavy);
}

.maps-inner-container {
  position: relative;
  width: 100%;
}

.map-wrapper {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}

.map-wrapper.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 2;
}

.map-wrapper iframe {
  width: 60%;
  height: 400px;
  border: none;
}

.location-info {
  width: 40%;
  padding: 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a1a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h3 {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.location-info p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.location-info p i {
  color: #00c3ff;
  font-size: 1.1rem;
  width: 20px;
}

.location-actions {
  margin-top: 1.5rem;
}

.location-btn {
  background: var(--primary-gradient);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: var(--transition-base);
}

.location-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 195, 255, 0.4);
}

/*=============== CONTACTO ===============*/
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  transition: var(--transition-base);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

.contact-item__icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.contact-item__content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item__content p {
  color: var(--text-muted);
  line-height: 1.5;
}

.contact__form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2.5rem;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--title-color);
  font-weight: 500;
}

.form__input,
.form__textarea,
.form__input option {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 0.625rem;
  color: var(--title-color);
  font-family: inherit;
  font-size: inherit;
  transition: var(--transition-base);
}

select.form__input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300c3ff' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}


.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: #00c3ff;
  box-shadow: 0 0 0 3px rgba(0, 195, 255, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

/*=============== TESTIMONIALES Y CERTIFICACIONES ===============*/
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  transition: var(--transition-base);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.testimonial__quote {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  opacity: 0.3;
  line-height: 1;
}

.testimonial__text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-color);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--title-color);
}

.author__position {
  font-size: 0.9rem;
  color: var(--accent-color);
}

.certifications__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.certification-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-base);
}

.certification-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-color);
}

.certification__icon {
  width: 80px;
  height: 80px;
  background: var(--secondary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: white;
}

.certification-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.certification-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition-base);
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

.trust__icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.trust__content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--title-color);
}

.trust__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/*=============== FOOTER MEJORADO ===============*/
.footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__brand p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-detail i {
  color: var(--accent-color);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--title-color);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
}


.footer__section h4 {
  margin-bottom: 1.5rem;
  color: var(--title-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #00c3ff;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

/*=============== INTERACTIVE 3D VIEWER & GALLERY ===============*/
.tech-innovation {
    background: #0f1419;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.valve-3d-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.valve-3d-content .section__title {
    background: linear-gradient(135deg, #ffffff 0%, #a0a9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.valve-3d-viewer {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    border-radius: 1rem;
    overflow: hidden;
    cursor: grab;
}

.viewer-area {
    position: relative;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 26, 0.6);
}

#valve-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    background: radial-gradient(circle at center, rgba(0, 195, 255, 0.05) 0%, rgba(10, 10, 26, 0.98) 100%);
}

#valve-canvas:active {
    cursor: grabbing;
}

.loading-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(10, 10, 26, 0.9); 
    backdrop-filter: blur(5px); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    z-index: 10; 
    transition: opacity 0.5s 0.5s ease; 
    border-radius: 1.25rem; 
}

.loading-overlay.hidden { 
    opacity: 0; 
    pointer-events: none; 
}

.loader { 
    width: 50px; 
    height: 50px; 
    border: 3px solid rgba(0, 195, 255, 0.3); 
    border-top: 3px solid #00c3ff; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
    margin-bottom: 1rem; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.loading-text { 
    color: var(--text-color); 
}

.progress-bar { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 4px; 
    background: rgba(255, 255, 255, 0.1); 
}

.progress-fill { 
    height: 100%; 
    background: var(--primary-gradient); 
    width: 0%; 
    transition: width 0.3s ease; 
}

.info-tooltip { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(0, 0, 0, 0.7); 
    color: white; 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-size: 0.85rem; 
    opacity: 0; 
    transform: translateY(-10px); 
    transition: all 0.4s ease; 
    pointer-events: none; 
    z-index: 5; 
}

.info-tooltip.show { 
    opacity: 1; 
    transform: translateY(0); 
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
    touch-action: manipulation;
    user-select: none;
}

.gallery-nav-btn:hover {
    background: rgba(0, 195, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
    border-color: var(--accent-color);
}

.gallery-nav-btn.prev { left: 1rem; }
.gallery-nav-btn.next { right: 1rem; }

.viewer-controls-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
}

.controls-panel {
    display: flex;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.controls-panel::-webkit-scrollbar { display: none; }

.control-btn { 
    background: rgba(0, 195, 255, 0.1);
    border: 1px solid rgba(0, 195, 255, 0.2);
    color: white; 
    padding: 0.75rem 1.25rem; 
    border-radius: 0.5rem; 
    cursor: pointer; 
    font-size: 0.85rem; 
    font-family: var(--title-font); 
    font-weight: 600; 
    transition: var(--transition-base); 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    white-space: nowrap;
    touch-action: manipulation;
    user-select: none;
    flex-shrink: 0;
}

.control-btn:hover { 
    background: rgba(0, 195, 255, 0.2);
    border-color: var(--accent-color); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0, 195, 255, 0.2);
}

.control-btn.active { 
    background: var(--primary-gradient); 
    border-color: var(--accent-color); 
    box-shadow: var(--shadow-light); 
    color: white; 
}

.control-btn i { font-size: 1rem; }

#clipping-controls {
    display: none;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

#clipping-controls.visible { display: flex; }

#clipping-controls label {
    font-weight: 600;
    color: var(--title-color);
    font-size: 12px;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

#clipping-controls select {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.clipping-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.slider-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#clipping-controls input[type="range"] {
    flex: 1;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    transition: var(--transition-base);
    touch-action: none;
}

#clipping-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: var(--transition-base);
}

#clipping-controls input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
}

#clipping-value {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 12px;
    min-width: 40px;
    text-align: center;
    background: rgba(0, 255, 136, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background-color: var(--glass-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: var(--glass-border);
    border-color: var(--accent-color);
}

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-light);
}

.filter-info {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.thumbnail-gallery-container {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 0.5rem;
    transition: var(--transition-base);
    background: var(--glass-bg);
    text-align: center;
    width: clamp(120px, 15vw, 150px);
    flex-shrink: 0;
    touch-action: manipulation;
    user-select: none;
    position: relative;
    opacity: 1;
    transition: all 0.3s ease;
}

.thumbnail.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    width: 0;
    padding: 0.5rem 0;
    margin: 0 -0.5rem;
}

.thumbnail:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 195, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 195, 255, 0.2);
}

.thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium), 0 0 20px rgba(0, 195, 255, 0.3);
    transform: translateY(-3px);
}

.thumbnail img {
    width: 100%;
    height: clamp(80px, 10vw, 100px);
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.thumbnail span {
    color: var(--text-color);
    font-weight: 500;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    display: block;
    line-height: 1.2;
}

.thumbnail-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 123, 255, 0.8);
    color: white !important;
    font-size: 0.7rem !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}
/*=============== POP-UP PROMOCIONAL ===============*/
.promo-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.promo-popup-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.promo-popup {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  width: 90%;
  max-width: 750px;
  position: relative;
  box-shadow: var(--shadow-heavy);
  padding: 2rem;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.promo-popup-overlay:not(.hidden) .promo-popup {
  transform: scale(1);
}

.popup-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.popup-close-btn:hover {
  color: var(--title-color);
}

.popup-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.popup-image img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  height: auto;
}

.popup-title {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.popup-description {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.countdown-timer {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.time-block {
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem;
  border-radius: 0.5rem;
  min-width: 70px;
}

.time-block span:first-child {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1;
}

.time-block span:last-child {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.popup-cta {
  width: auto;
  display: inline-flex;
}
/* Overlay de fondo */
.asesor-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Se activa con JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

/* Contenedor del Popup */
.asesor-popup {
    background: #fff;
    width: 90%;
    max-width: 750px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Lado Izquierdo: Imagen */
.asesor-image-container {
    width: 45%;
    background: #f4f4f4;
}

.aseser-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lado Derecho: Contenido */
.asesor-details {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-online {
    color: #28a745;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.asesor-title {
    font-size: 1.8rem;
    color: #003366; /* Azul corporativo */
    margin-bottom: 15px;
    line-height: 1.2;
}

.asesor-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}

/* Botón CTA */
.btn-asesor-cta {
    background: #0056b3;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn-asesor-cta:hover {
    background: #003d7a;
    transform: scale(1.02);
}

/* Botón cerrar */
.asesor-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.footer-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 15px;
}
.author-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

        /* El badge que aparece en la esquina inferior derecha */
.author-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0.7;
    z-index: 10;
}

.author-badge:hover {
    opacity: 1;
    transform: scale(1.04);
}

.author-badge__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Segoe UI', sans-serif;
}

.author-badge__label {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    line-height: 1.2;
    font-family: 'Segoe UI', sans-serif;
}

.author-badge__label strong {
    display: block;
    color: #fff;
    font-size: 11.5px;
    white-space: nowrap;
}

        /* El tooltip expandido que aparece al hacer hover */
.author-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 270px;
    background: rgba(8, 12, 28, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 100;
}

        /* Flecha del tooltip */
.author-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 10px;
    height: 10px;
    background: rgba(8, 12, 28, 0.92);
    border-right: 1px solid rgba(56, 189, 248, 0.25);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    transform: rotate(45deg);
}

.author-tooltip__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.author-tooltip__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    font-family: 'Segoe UI', sans-serif;
}

.author-tooltip__meta {
    line-height: 1.3;
}

.author-tooltip__name {
    font-size: 13px;
    font-weight: 700;
    color: #f0f6ff;
    white-space: nowrap;
    font-family: 'Segoe UI', sans-serif;
}

.author-tooltip__role {
    font-size: 11px;
    color: #64748b;
    font-family: 'Segoe UI', sans-serif;
}

.author-tooltip__divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 8px 0;
}

.author-tooltip__copyright {
    font-size: 10.5px;
    color: #475569;
    line-height: 1.5;
    font-family: 'Segoe UI', sans-serif;
}

.author-tooltip__copyright span {
    color: #38bdf8;
}

.author-tooltip__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 11.5px;
    color: #38bdf8;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    pointer-events: all;
    transition: color 0.2s;
}

.author-tooltip__link:hover {
    color: #7dd3fc;
}

.author-tooltip__link svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

/* Mostrar tooltip al hacer hover en el badge */
.author-badge:hover .author-tooltip,
.author-badge:focus-within .author-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
/*=============== RESPONSIVE DESIGN (BREAKPOINTS) ===============*/

@media screen and (max-width: 1024px) {
  :root {
    --h1-font-size: 2.8rem;
    --h2-font-size: 1.8rem;
  }
  
  .hero__container,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    justify-items: center; 
  }
  
  .hero__content,
  .about__content {
    order: 2;
    text-align: center;
  }

  .hero__visual,
  .about__visual {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .hero__image,
  .about__image {
    max-width: 500px;
  }

  .hero__description,
  .about__text {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .about__stats {
    position: static;
    transform: none;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .contact__grid {
    align-items: stretch;
  }

  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }

  .footer__brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .valve-3d-container {
      grid-template-columns: 1fr;
      text-align: center;
  }
}
@media screen and (max-width: 900px) {
  .map-wrapper, .map-wrapper.active {
    flex-direction: column;
  }

  .map-wrapper iframe {
    width: 100%;
    height: 300px; 
  }

  .location-info {
    width: 100%;
    padding: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 0.95rem;
    --header-height: 4.5rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .nav__logo {
    width: 120px;
  }
  
  .nav__toggle {
    display: flex;
    z-index: 1100;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    display: flex;
    z-index: 1050;
  }

  .nav__menu.active {
    right: 0;
  }  
  
  .nav__link {
    font-size: 1.5rem;
  }
        
  .hero {
    min-height: auto;
    padding-top: var(--header-height);
  }

  .hero__container {
    gap: 2rem;
  }
  
  .hero__visual {
    margin-bottom: 0;
  }

  .hero__stats {
    order: 3;
    margin-top: 2rem;
  }
  
  .hero__actions {
    order: 4;
    margin-top: 2rem;
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .section__header {
    margin-bottom: 3rem;
  }
  .promo-popup {
    width: 95%; /* Un poco más de espacio en los bordes */
    max-width: 400px; /* Un ancho máximo para que no se estire demasiado */
    padding: 1.5rem; /* Menos relleno interno */
    max-height: 90vh; /* Altura máxima para evitar que ocupe toda la pantalla */
    overflow-y: auto; /* Permite scroll interno si el contenido es muy largo */
  }

  .popup-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem; /* Menos espacio entre imagen y texto */
  }

  .popup-close-btn {
    top: 8px;
    right: 12px;
    font-size: 2rem; /* Botón de cierre un poco más pequeño */
  }

  .popup-image {
    max-width: 250px; /* Imagen más pequeña y controlada */
    margin: 0 auto 1rem;
  }

  .popup-title {
    font-size: 1.6rem; /* Título más compacto */
    margin-bottom: 0.5rem;
  }

  .popup-description {
    font-size: 0.9rem; /* Descripción ligeramente más pequeña */
    margin-bottom: 1.25rem;
  }

  .countdown-timer {
    justify-content: center;
    gap: 0.5rem; /* Espacio más ajustado entre bloques */
    margin-bottom: 1.5rem;
  }
  
  .time-block {
    padding: 0.5rem;
    min-width: 65px; /* Bloques del contador más pequeños */
    border-radius: 0.5rem;
  }

  .time-block span:first-child {
    font-size: 1.5rem; /* Números del contador más pequeños */
  }

  .time-block span:last-child {
    font-size: 0.65rem; /* Etiquetas del contador más pequeñas */
  }

  .popup-cta {
    width: 100%; /* El botón ocupa todo el ancho para ser fácil de tocar */
    padding: 0.8rem 1rem;
  }


  /* ========== INICIO DE LAS CORRECCIONES DE CENTRADO MÓVIL ========== */
  
  .services-grid {
    grid-template-columns: 1fr; /* Forzar una sola columna */
    justify-items: center; /* Centrar las tarjetas dentro de la rejilla */
  }

  .service-card {
    max-width: 420px; /* Evitar que las tarjetas se estiren demasiado */
    width: 100%;
  }

  .companies-row {
    flex-direction: column; /* Apilar los nodos verticalmente */
    align-items: center; /* Centrar la columna de nodos */
    gap: 1.5rem;
  }
  
  .companies-row::before,
  .company-node::before {
    display: none;
  }
  
  .company-node {
    width: 100%; /* El nodo ocupa el 100% de su contenedor padre */
    max-width: 320px; /* Pero no más de 320px */
    flex-basis: auto; /* Reseteamos la base flexible */
  }
  
  .valve-3d-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar los elementos (contenido y visor) */
    gap: 2rem;
  }
  
  /* ========== FIN DE LAS CORRECCIONES ========== */
  
  .testimonials__grid,
  .trust-indicators {
    grid-template-columns: 1fr;
  }

  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer__grid,
  .footer__section {
    text-align: center;
  }

  .contact-detail {
    justify-content: center;
  }
  
  .valve-3d-viewer {
    height: 80vh;
    max-height: 600px;
    order:1;
    width: 100%; /* Asegurar que ocupe todo el ancho disponible */
  }
  .valve-3d-content {
    order: 2;
    width: 100%;
  }
  .tech-innovation .hero__actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
  }

  .viewer-controls-wrapper {
    width: calc(100% - 2rem);
    max-width: 500px;
    padding: 0.75rem;
  }
  .controls-panel {
    gap: 0.5rem;
  }

  .control-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .info-tooltip {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    top: 10px;
    right: 10px;
  }

  .gallery-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .gallery-nav-btn.prev { left: 10px; }
  .gallery-nav-btn.next { right: 10px; }

  #clipping-controls {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .thumbnail-gallery {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .thumbnail {
    width: 120px;
  }
}
@media (max-width: 600px) {
    .asesor-popup {
        flex-direction: column;
    }
    .asesor-image-container, .asesor-details {
        width: 100%;
    }
    .asesor-image-container {
        height: 250px;
    }
    .asesor-details {
        padding: 20px;
    }
}
@media screen and (max-width: 480px) {
  :root {
    --h1-font-size: 1.8rem;
    --h2-font-size: 1.4rem;
  }

  .hero__visual {
    max-width: 250px;
  }

  .hero__description {
    font-size: 0.9rem;
  }
  
  .card, .service-card, .company-card, .testimonial-card, .contact-item, .contact__form {
    padding: 1.5rem;
  }
  
  .valve-3d-viewer {
    height: 70vh;
  }

  .control-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .thumbnail {
    width: 100px;
  }
  .thumbnail img {
    height: 70px;
  }
}