@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alata&family=Comfortaa:wght@300..700&display=swap');



:root {
  --platinum: #e6e8e6;
  --platinum-dark: #ced0ce;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f5f5f7;
  --gray-mid: #8e8e93;
  --gold: #d4af37;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 8px 40px rgba(0, 0, 0, 0.08);
  --section-spacing: 80px;
  --font-family: "alata-regular", sans-serif;
  --overlay-gradient-start: rgba(0, 0, 0, 0.85);
  --overlay-gradient-mid: rgba(0, 0, 0, 0.7);
  --overlay-gradient-end: rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header & Logo */
.header {
  padding: 12px 0;
  position: relative;
  z-index: 1000;
  margin-left: 0 !important;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.logo {
  max-width: 420px;
  height: auto;
  filter: contrast(1.1) brightness(1.05);
  transition: var(--transition);
  margin-left: 0px;
}

.logo:hover {
  transform: scale(1.02);
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px 0 0px;
  position: relative;
  overflow: hidden;
  background: var(--white);
  min-height: 100vh;
  margin: 0;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 80px;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--font-family);
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 36px;
  margin-bottom: 24px;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(30px);
  animation: titleReveal 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.8s;
}

.hero-subtitle {
  font-family: var(--font-family);
  font-size: 1.3rem;
  color: var(--gray-mid);
  margin-bottom: 50px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: subtitleReveal 1s ease forwards 1.2s;
}

.animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: var(--white);
  opacity: 0;
}

#techCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   VIDEO HERO SECTION - Desktop First con Responsive y WebKit
   ========================================================================== */

/* Video Hero Section */
.video-hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
  margin: 0;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  -webkit-overflow-scrolling: touch;
}

/* ==============================
   CONTENEDOR DE VIDEO - ALTA CALIDAD VISUAL
   ============================== */

/* Contenedor del video alineado a la derecha */
.video-container {
  position: absolute;
  top: 0;
  right: 25px;
  width: 50%;
  height: 90%;
  z-index: 1;
  background: var(--black);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  -webkit-will-change: transform;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Filtros de contraste aplicados al elemento video dentro del contenedor */
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -o-object-fit: cover;
  object-position: center;
  -o-object-position: center;
  filter: contrast(140%) brightness(110%) saturate(115%);
  -webkit-filter: contrast(140%) brightness(110%) saturate(115%);
  -moz-filter: contrast(140%) brightness(110%) saturate(115%);
  transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Optimización para diferentes condiciones de iluminación */
@media (prefers-color-scheme: dark) {
  .video-container video {
    filter: contrast(145%) brightness(115%) saturate(120%) hue-rotate(5deg);
    -webkit-filter: contrast(145%) brightness(115%) saturate(120%) hue-rotate(5deg);
  }
}

@media (prefers-color-scheme: light) {
  .video-container video {
    filter: contrast(135%) brightness(105%) saturate(110%) drop-shadow(0 0 10px rgba(0,0,0,0.1));
    -webkit-filter: contrast(135%) brightness(105%) saturate(110%) drop-shadow(0 0 10px rgba(0,0,0,0.1));
  }
}

/* Estados interactivos */
.video-container video:hover {
  filter: contrast(150%) brightness(115%) saturate(125%);
  -webkit-filter: contrast(150%) brightness(115%) saturate(125%);
}

/* Fallback para navegadores sin soporte de filtros */
@supports not (filter: contrast(100%)) {
  .video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      45deg,
      rgba(255,255,255,0.05) 0%,
      rgba(0,0,0,0.1) 50%,
      rgba(255,255,255,0.05) 100%
    );
    z-index: 2;
    mix-blend-mode: overlay;
    -webkit-mix-blend-mode: overlay;
    pointer-events: none;
  }
}

/* ==============================
   RESPONSIVE ADJUSTMENTS
   ============================== */

/* Tablets y laptops pequeñas */
@media (max-width: 1024px) {
  .video-container {
    right: 20px;
    width: 55%;
    height: 85%;
  }
  
  .video-container video {
    filter: contrast(135%) brightness(108%) saturate(112%);
    -webkit-filter: contrast(135%) brightness(108%) saturate(112%);
  }
}

/* Tabletas */
@media (max-width: 768px) {
  .video-container {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 400px;
    margin: 0 auto 40px;
    background: var(--black);
  
  .video-container video {
    filter: contrast(130%) brightness(105%) saturate(110%);
    -webkit-filter: contrast(130%) brightness(105%) saturate(110%);
    object-fit: contain;
    -o-object-fit: contain;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .video-container {
    height: 300px;
    margin-bottom: 30px;
  }
  
  .video-container video {
    filter: contrast(125%) brightness(102%) saturate(108%);
    -webkit-filter: contrast(125%) brightness(102%) saturate(108%);
  }
}

/* Móviles pequeños */
@media (max-width: 320px) {
  .video-container {
    height: 250px;
  }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .video-container {
    height: 250px;
    width: 70%;
    margin: 0 auto 30px;
  }
}

/* Pantallas de alta densidad (Retina, 4K) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .video-container video {
    filter: contrast(145%) brightness(112%) saturate(118%) 
            drop-shadow(0 0 1px rgba(255,255,255,0.1));
    -webkit-filter: contrast(145%) brightness(112%) saturate(118%) 
                    drop-shadow(0 0 1px rgba(255,255,255,0.1));
  }
}

/* Optimización para modo de ahorro de energía/rendimiento bajo */
@media (prefers-reduced-transparency: reduce) {
  .video-container video {
    filter: contrast(130%) brightness(105%);
    -webkit-filter: contrast(130%) brightness(105%);
  }
}

/* Ajustes para Safari en iOS */
@supports (-webkit-touch-callout: none) {
  .video-container {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
  }
  
  .video-container video {
    -webkit-filter: contrast(135%) brightness(108%) saturate(112%);
    filter: contrast(135%) brightness(108%) saturate(112%);
  }
}

/* Prevenir efectos de filtro en navegadores con rendimiento limitado */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .video-container video {
    filter: none;
    -webkit-filter: none;
    -moz-filter: none;
  }
}

/* Estado de carga del video */
.video-container.loading video {
  filter: contrast(100%) brightness(90%) saturate(100%);
  -webkit-filter: contrast(100%) brightness(90%) saturate(100%);
}

.video-container.loaded video {
  filter: contrast(140%) brightness(110%) saturate(115%);
  -webkit-filter: contrast(140%) brightness(110%) saturate(115%);
  transition: filter 1s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: filter 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clase para máximo contraste (activar según necesidad) */
.video-container.high-contrast video {
  filter: contrast(160%) brightness(120%) saturate(130%) grayscale(0%);
  -webkit-filter: contrast(160%) brightness(120%) saturate(130%) grayscale(0%);
}

/* Video solo en la mitad derecha */
.video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.video-overlay {
  width: 100%;
  height: 90%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  background: -webkit-linear-gradient(top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  background: -moz-linear-gradient(top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  background: -o-linear-gradient(top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  -webkit-pointer-events: none;
  -moz-pointer-events: none;
  -ms-pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
}

/* Estados de interacción */
.video-overlay.active {
  opacity: 0.9;
}

.video-overlay.fade-out {
  opacity: 0.6;
}

/* Modo alto contraste para accesibilidad */
@media (prefers-contrast: high) {
  .video-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    background: -webkit-linear-gradient(top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.7) 100%);
  }
}

/* Modo reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .video-overlay {
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
  }
}

/* Modo oscuro optimizado */
@media (prefers-color-scheme: dark) {
  .video-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.75) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    background: -webkit-linear-gradient(top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.75) 50%,
        rgba(0, 0, 0, 0.6) 100%);
  }
}

/* Soporte para Firefox */
@-moz-document url-prefix() {
  .video-overlay {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.5) 100%);
  }
}

/* Optimización para dispositivos móviles */
@media screen and (max-width: 991px) {
  .video-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.75) 40%,
        rgba(0, 0, 0, 0.6) 100%);
    background: -webkit-linear-gradient(top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.75) 40%,
        rgba(0, 0, 0, 0.6) 100%);
  }
}

@media screen and (max-width: 768px) {
  .video-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 30%,
        rgba(0, 0, 0, 0.65) 100%);
    background: -webkit-linear-gradient(top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 30%,
        rgba(0, 0, 0, 0.65) 100%);
  }
}

@media screen and (max-width: 576px) {
  .video-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.85) 20%,
        rgba(0, 0, 0, 0.7) 100%);
    background: -webkit-linear-gradient(top,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.85) 20%,
        rgba(0, 0, 0, 0.7) 100%);
  }
}

/* Optimización para orientación landscape en móviles */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .video-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 25%,
        rgba(0, 0, 0, 0.65) 100%);
    background: -webkit-linear-gradient(top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 25%,
        rgba(0, 0, 0, 0.65) 100%);
  }
}

/* Soporte para Safari iOS */
@supports (-webkit-touch-callout: none) {
  .video-overlay {
    -webkit-backdrop-filter: blur(0.5px);
    backdrop-filter: blur(0.5px);
  }
}

/* High DPI/Retina displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .video-overlay {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.87) 0%,
        rgba(0, 0, 0, 0.72) 50%,
        rgba(0, 0, 0, 0.52) 100%);
  }
}

/* Fallback para navegadores antiguos */
.no-cssgradients .video-overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* Impresión */
@media print {
  .video-overlay {
    display: none;
  }
}



.video-overlay {
  background: linear-gradient(180deg,
      var(--overlay-gradient-start) 0%,
      var(--overlay-gradient-mid) 50%,
      var(--overlay-gradient-end) 100%);
  background: -webkit-linear-gradient(top,
      var(--overlay-gradient-start) 0%,
      var(--overlay-gradient-mid) 50%,
      var(--overlay-gradient-end) 100%);
}





/* WebKit Performance Optimizations */
.video-container,
.video-background,
.video-overlay {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

/* WebKit Gradient Fallbacks */
.video-overlay {
  background-image: -webkit-linear-gradient(left,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 20%,
      rgba(0, 0, 0, 0.7) 100%);
  background-image: linear-gradient(90deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 20%,
      rgba(0, 0, 0, 0.7) 100%);
}

/* Contenido sobre el video */
.video-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 140px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
}

.video-text {
  max-width: 600px;
  color: var(--white);
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.video-title {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  margin-left: 25px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.video-subtitle {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 1px 1px 4px rgba(45, 45, 45, 0.3);
  margin-left: 25px;
  margin-right: 225px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Controls para el video */
.video-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 4;
  display: flex;
  gap: 15px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.video-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.video-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
}

.video-btn:active {
  transform: scale(0.95);
  -webkit-transform: scale(0.95);
  -ms-transform: scale(0.95);
}

.video-btn i {
  font-size: 1.2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Estilos para el botón CTA del video */
.video-cta-container {
  margin-top: 10px;
  text-align: center;
}

.video-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--white);
  color: var(--white);
  padding: 8px 20px;
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  transition: var(--transition);
  border: 2px solid var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-elevated);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  -webkit-box-align: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.video-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 90%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: var(--transition);
  z-index: -1;
  -webkit-transition: var(--transition);
}

.video-cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  z-index: -2;
  transition: var(--transition);
  -webkit-transition: var(--transition);
  columns: var(--white);
  border: var(--white);
}

.video-cta-button:hover,
.video-cta-button:focus {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  border-color: var(--platinum);
  -webkit-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
}

.video-cta-button:hover::before,
.video-cta-button:focus::before {
  left: 100%;
}

.video-cta-button:hover::after,
.video-cta-button:focus::after {
  background: var(--black);
}

.video-cta-button:active {
  transform: translateY(-1px);
  -webkit-transform: translateY(-1px);
  -ms-transform: translateY(-1px);
}

.video-cta-button i {
  font-size: 1.1rem;
  transition: var(--transition);
  -webkit-transition: var(--transition);
}

.video-cta-button:hover i,
.video-cta-button:focus i {
  transform: translateY(3px);
  -webkit-transform: translateY(3px);
  -ms-transform: translateY(3px);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .video-content {
    padding: 0 80px;
  }

  .video-subtitle {
    margin-right: 150px;
  }
}

@media screen and (max-width: 991px) {
  .video-content {
    padding: 0 60px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
  }

  .video-title {
    margin-left: 0;
    font-size: 1.75rem;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  .video-subtitle {
    margin-left: 0;
    margin-right: 0;
    font-size: 0.95rem;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  .video-controls {
    bottom: 30px;
    right: 30px;
  }

  .video-cta-container {
    margin-top: 30px;
  }

  .video-cta-button {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .video-content {
    padding: 0 40px;
  }

  .video-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .video-subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .video-controls {
    bottom: 20px;
    right: 20px;
  }

  .video-btn {
    width: 45px;
    height: 45px;
  }
}

@media screen and (max-width: 576px) {
  .video-content {
    padding: 0 20px;
  }

  .video-title {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .video-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .video-controls {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .video-btn {
    width: 40px;
    height: 40px;
  }

  .video-btn i {
    font-size: 1rem;
  }

  .video-cta-container {
    margin-top: 25px;
  }

  .video-cta-button {
    padding: 12px 24px;
    font-size: 0.95rem;
    gap: 10px;
  }

  .video-cta-button i {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .video-content {
    padding: 0 15px;
  }

  .video-title {
    font-size: 1.1rem;
  }

  .video-subtitle {
    font-size: 0.8rem;
  }

  .video-controls {
    bottom: 10px;
    right: 10px;
  }
}

@media screen and (max-width: 374px) {
  .video-title {
    font-size: 1rem;
  }

  .video-subtitle {
    font-size: 0.75rem;
  }

  .video-btn {
    width: 35px;
    height: 35px;
  }

  .video-cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    gap: 8px;
  }

  .video-cta-button i {
    font-size: 0.9rem;
  }
}

/* Soporte para Safari iOS */
@supports (-webkit-touch-callout: none) {
  .video-btn {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .video-cta-button {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }
}

/* Soporte para Firefox */
@-moz-document url-prefix() {
  .video-btn {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .video-title {
    -webkit-font-smoothing: subpixel-antialiased;
  }

  .video-subtitle {
    -webkit-font-smoothing: subpixel-antialiased;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .video-btn {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .video-cta-button {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
}

/* Orientation Specific */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .video-content {
    padding: 0 40px;
  }

  .video-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .video-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .video-cta-container {
    margin-top: 20px;
  }
}

/* Print Styles */
@media print {
  .video-content {
    position: static;
    color: #000;
  }

  .video-btn,
  .video-cta-button {
    display: none;
  }
}

/* FAQ Section Styles */
.faq-section {
  background: linear-gradient(to bottom, var(--white) 0%, var(--gray-light) 100%);
  padding: 100px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.faq-item {
  background: var(--white);
  border-radius: 15px;
  border: 1px solid var(--platinum);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-elevated);
}

.faq-item.active {
  border-color: var(--platinum-dark);
}

.faq-question {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--white);
}

.faq-title {
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  margin: 0;
  flex: 1;
  padding-right: 20px;
  line-height: 1.4;
}

.faq-toggle {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--black);
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.faq-toggle:hover {
  background: var(--platinum);
}

.faq-toggle i {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 30px 25px 30px;
  max-height: 1000px;
}

.faq-answer p {
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 15px;
}

.faq-answer strong {
  color: var(--black);
  font-weight: 600;
}

.faq-answer ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.faq-answer li {
  color: var(--gray-mid);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Comparison Table */
.comparison-table {
  margin: 20px 0;
  background: var(--gray-light);
  border-radius: 10px;
  padding: 20px;
}

.comparison-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.comparison-col h4 {
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--black);
}

.comparison-col ul {
  padding-left: 15px;
  margin-bottom: 0;
}

.comparison-col li {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* FAQ CTA */
.faq-cta {
  text-align: center;
  margin-top: 80px;
  padding: 60px;
  background: linear-gradient(135deg, var(--white) 0%, var(--platinum) 100%);
  border-radius: 20px;
  border: 2px solid var(--platinum-dark);
}

.faq-cta-title {
  font-family: var(--font-family);
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--black);
}

.faq-cta-text {
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.faq-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.whatsapp-button-faq {
  background: var(--black);
  color: var(--white);
  padding: 16px 35px;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid var(--black);
}

.whatsapp-button-faq:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.phone-button-faq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: var(--black);
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid var(--black);
}

.phone-button-faq:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .faq-cta {
    padding: 50px 40px;
  }
}

@media screen and (max-width: 992px) {
  .faq-section {
    padding: 80px 0;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-cta {
    margin-top: 60px;
    padding: 40px 30px;
  }

  .faq-cta-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-column {
    gap: 20px;
  }

  .faq-question {
    padding: 20px 25px;
  }

  .faq-title {
    font-size: 1.1rem;
  }

  .faq-answer {
    padding: 0 25px;
  }

  .faq-item.active .faq-answer {
    padding: 0 25px 20px 25px;
  }

  .faq-buttons {
    flex-direction: column;
    align-items: center;
  }

  .whatsapp-button-faq,
  .phone-button-faq {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .faq-cta {
    padding: 35px 25px;
    margin-top: 50px;
  }

  .faq-cta-title {
    font-size: 1.8rem;
  }

  .faq-cta-text {
    font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .faq-question {
    padding: 18px 20px;
  }

  .faq-title {
    font-size: 1rem;
    padding-right: 15px;
  }

  .faq-toggle {
    width: 35px;
    height: 35px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 18px 20px;
  }

  .comparison-table {
    padding: 15px;
  }

  .faq-cta {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .faq-cta-title {
    font-size: 1.6rem;
  }
}

/* WebKit Optimizations */
.faq-item,
.faq-toggle {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.faq-answer {
  -webkit-transition: max-height 0.5s ease, padding 0.3s ease;
  transition: max-height 0.5s ease, padding 0.3s ease;
}



/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  z-index: 4;
  animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: var(--white);
  font-size: 1.5rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
    -webkit-transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
    -webkit-transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
    -webkit-transform: translateY(-5px) translateX(-50%);
  }
}

@-webkit-keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    -webkit-transform: translateY(0) translateX(-50%);
    transform: translateY(0) translateX(-50%);
  }

  40% {
    -webkit-transform: translateY(-10px) translateX(-50%);
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    -webkit-transform: translateY(-5px) translateX(-50%);
    transform: translateY(-5px) translateX(-50%);
  }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS - Desktop First
   ========================================================================== */

/* Tablet Landscape/Small Desktop Screens (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .video-hero-section {
    height: 100vh;
  }

  .video-container {
    position: relative;
    width: 100%;
    right: 0;
    height: 60%;
    margin-bottom: 0;
  }



  .video-content {
    padding: 0 50px;
    align-items: flex-start;
    padding-top: 40px;
    height: 40%;
  }

  .video-text {
    max-width: 100%;
    text-align: center;
  }

  .video-title {
    font-size: 1.8rem;
    margin-left: 0;
    text-align: center;
  }

  .video-subtitle {
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .video-controls {
    bottom: 25px;
    right: 50%;
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
  }

  .scroll-indicator {
    bottom: 20px;
  }
}

/* Tablet Portrait Screens (576px - 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
  .video-hero-section {
    height: 100vh;
  }

  .video-container {
    position: relative;
    width: 100%;
    right: 0;
    height: 60%;
    margin-bottom: 0;
  }


  .video-content {
    padding: 0 40px;
    align-items: flex-start;
    padding-top: 35px;
    height: 40%;
  }

  .video-text {
    max-width: 100%;
    text-align: center;
  }

  .video-title {
    font-size: 1.6rem;
    margin-left: 0;
    text-align: center;
    margin-bottom: 20px;
  }

  .video-subtitle {
    font-size: 0.95rem;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
  }

  .video-controls {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
  }

  .video-btn {
    width: 45px;
    height: 45px;
  }

  .video-btn i {
    font-size: 1.1rem;
  }

  .scroll-indicator {
    bottom: 15px;
  }

  .scroll-indicator a {
    font-size: 1.3rem;
  }
}

/* Mobile Screens (375px - 575px) */
@media screen and (min-width: 375px) and (max-width: 575px) {
  .video-hero-section {
    height: 100vh;
  }

  .video-container {
    position: relative;
    width: 100%;
    right: 0;
    height: 60%;
    margin-bottom: 0;
  }



  .video-content {
    padding: 0 30px;
    align-items: flex-start;
    padding-top: 30px;
    height: 40%;
  }

  .video-text {
    max-width: 100%;
    text-align: center;
  }

  .video-title {
    font-size: 1.4rem;
    margin-left: 0;
    text-align: center;
    margin-bottom: 15px;
  }

  .video-subtitle {
    font-size: 0.85rem;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
  }

  .video-controls {
    bottom: 15px;
    right: 50%;
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
    gap: 12px;
  }

  .video-btn {
    width: 40px;
    height: 40px;
  }

  .video-btn i {
    font-size: 1rem;
  }

  .scroll-indicator {
    bottom: 10px;
  }

  .scroll-indicator a {
    font-size: 1.2rem;
  }
}

/* Small Mobile Screens (below 375px) */
@media screen and (max-width: 374px) {
  .video-hero-section {
    height: 100vh;
  }

  .video-container {
    position: relative;
    width: 100%;
    right: 0;
    height: 60%;
    margin-bottom: 0;
  }



  .video-content {
    padding: 0 20px;
    align-items: flex-start;
    padding-top: 25px;
    height: 40%;
  }

  .video-text {
    max-width: 100%;
    text-align: center;
  }

  .video-title {
    font-size: 1.3rem;
    margin-left: 0;
    text-align: center;
    margin-bottom: 12px;
  }

  .video-subtitle {
    font-size: 0.8rem;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
  }

  .video-controls {
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    -webkit-transform: translateX(50%);
    gap: 10px;
  }

  .video-btn {
    width: 35px;
    height: 35px;
  }

  .video-btn i {
    font-size: 0.9rem;
  }

  .scroll-indicator {
    bottom: 8px;
  }

  .scroll-indicator a {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   WEBKIT SPECIFIC FIXES - Safari/iOS
   ========================================================================== */

@supports (-webkit-touch-callout: none) {
  .video-hero-section {
    height: -webkit-fill-available;
  }

  /* Fix para Safari video sizing */
  .video-container {
    -webkit-perspective: 1000;
    perspective: 1000;
  }

  /* Mejora de rendimiento en Safari */
  .video-background {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  /* Safari backdrop-filter fallback */
  .video-btn {
    background: rgba(255, 255, 255, 0.15);
  }

  /* Safari smooth animations */
  .scroll-indicator {
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
  }

  /* Safari scroll behavior */
  .video-hero-section {
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
  }
}

/* WebKit Scrollbar para video section */
.video-hero-section::-webkit-scrollbar {
  width: 0;
  height: 0;
}



/* WebKit Font Smoothing */
.video-title,
.video-subtitle {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* WebKit Tap Highlight Fix */
.video-btn,
.scroll-indicator a {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

/* Print Styles */
@media print {
  .video-hero-section {
    display: none !important;
  }
}

/* Section Common Styles */
.section {
  padding: var(--section-spacing) 0;
  position: relative;
}

.section-title {
  font-family: var(--font-family);
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 50px;
  color: var(--black);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg,
      var(--platinum) 0%,
      var(--platinum-dark) 100%);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}


/* Imagen cabecera ancho completo */
.services-header-image {
  position: relative;
  width: 100vw;
  height: 400px;
  overflow: hidden;
  margin-bottom: 80px;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.services-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.4) 100%);
  background: -webkit-linear-gradient(left,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-image-content {
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}

.header-image-title {
  font-family: var(--font-family);
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  -webkit-font-smoothing: antialiased;
}

.header-image-subtitle {
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Services intro */
.services-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-mid);
  line-height: 1.7;
}

.services-intro strong {
  color: var(--black);
  font-weight: 600;
}

/* Servicios Grid mejorado */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 18px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--platinum);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--platinum) 0%, var(--platinum-dark) 100%);
  transition: var(--transition);
}

.service-card:hover::before {
  width: 6px;
  background: linear-gradient(to bottom, var(--gold) 0%, #B38B2D 100%);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--platinum-dark);
}

.service-icon {
  font-size: 2.8rem;
  color: var(--black);
  margin-bottom: 25px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-name {
  font-family: var(--font-family);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--black);
  line-height: 1.3;
}

.service-desc {
  color: var(--gray-mid);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 0;
}

/* Lista de tratamientos mejorada */
.service-list {
  text-align: left;
  margin-top: auto;
  flex-grow: 1;
}

.treatment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(206, 208, 206, 0.2);
}

.treatment-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.treatment-icon {
  color: var(--platinum-dark);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
  min-width: 20px;
}

.treatment-name {
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.treatment-detail {
  color: var(--gray-mid);
  font-size: 0.8rem;
  font-style: italic;
  margin-top: 3px;
  display: block;
}

.treatment-highlight {
  color: var(--black);
  font-weight: 600;
  background: var(--platinum);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 5px;
  display: inline-block;
}

/* Features dentro de cards */
.diagnosis-features,
.skin-care-features,
.wellness-benefits,
.tattoo-removal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(206, 208, 206, 0.3);
}

.feature-item,
.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon,
.benefit-icon {
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.feature-text,
.benefit-text {
  color: var(--gray-mid);
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Services conclusion */
.services-conclusion {
  margin-top: 80px;
  padding: 50px;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--platinum) 100%);
  border-radius: 20px;
  text-align: center;
}

.conclusion-content {
  max-width: 800px;
  margin: 0 auto;
}

.conclusion-icon {
  font-size: 2.5rem;
  color: var(--black);
  margin-bottom: 25px;
  opacity: 0.7;
}

.conclusion-text {
  font-size: 1.2rem;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 35px;
  font-style: italic;
}

.conclusion-text strong {
  color: var(--black);
  font-weight: 600;
}

.whatsapp-button-services {
  background: var(--black);
  color: var(--white);
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 500;
  border: 2px solid var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.whatsapp-button-services:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-image-title {
    font-size: 2.4rem;
  }
}

@media screen and (max-width: 992px) {
  .services-header-image {
    height: 350px;
    margin-bottom: 60px;
  }

  .header-image-title {
    font-size: 2.2rem;
  }

  .header-image-subtitle {
    font-size: 1.1rem;
  }

  .service-card {
    padding: 35px 25px;
  }

  .services-conclusion {
    padding: 40px 30px;
  }
}

@media screen and (max-width: 768px) {
  .services-header-image {
    height: 300px;
    margin-bottom: 50px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .header-image-title {
    font-size: 2rem;
  }

  .header-image-subtitle {
    font-size: 1rem;
  }

  .service-icon {
    font-size: 2.5rem;
    height: 70px;
    margin-bottom: 20px;
  }

  .service-name {
    font-size: 1.3rem;
  }

  .diagnosis-features,
  .skin-care-features,
  .wellness-benefits,
  .tattoo-removal-features {
    grid-template-columns: 1fr;
  }

  .services-conclusion {
    padding: 35px 25px;
    margin-top: 60px;
  }

  .conclusion-text {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 576px) {
  .services-header-image {
    height: 250px;
    margin-bottom: 40px;
  }

  .header-image-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .header-image-subtitle {
    font-size: 0.95rem;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-icon {
    font-size: 2.2rem;
    height: 60px;
  }

  .whatsapp-button-services {
    padding: 16px 30px;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
  }

  .services-conclusion {
    padding: 30px 20px;
    margin-top: 50px;
  }

  .conclusion-text {
    font-size: 1rem;
  }
}

@media screen and (max-width: 374px) {
  .services-header-image {
    height: 220px;
  }

  .header-image-title {
    font-size: 1.6rem;
  }

  .treatment-item {
    flex-direction: column;
    gap: 8px;
  }
}

/* WebKit Optimizations */
.services-header-image,
.service-card {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.service-card:hover {
  -webkit-transform: translateY(-10px);
  transform: translateY(-10px);
}


/* Technology Section */
.technology-section {
  background: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.tech-card {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background: var(--gray-light);
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: var(--shadow-elevated);
}

.tech-icon {
  font-size: 2.5rem;
  color: var(--black);
  margin-bottom: 20px;
}

.tech-name {
  font-family: var(--font-family);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--black);
}

.tech-desc {
  color: var(--gray-mid);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg,
      var(--gray-light) 0%,
      var(--platinum) 100%);
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-subtle);
  margin: 0 10px;
  text-align: center;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-mid);
  margin-bottom: 25px;
  font-style: italic;
  position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--platinum-dark);
  font-family: var(--font-family);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--platinum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gray-mid);
}

.author-info h4 {
  font-weight: 600;
  color: var(--black);
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--gray-mid);
}



/* CTA Button - Premium Design */
.cta-container {
  margin-top: 60px;
  opacity: 0;
  transform: translateY(20px);
  animation: ctaReveal 1s ease forwards 1.6s;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: var(--black);
  color: var(--white);
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  border: 1px solid var(--black);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-subtle);
}

.whatsapp-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: var(--transition);
  z-index: -1;
}

.whatsapp-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
  z-index: -2;
  transition: var(--transition);
}

.whatsapp-button:hover::before {
  left: 100%;
}

.whatsapp-button:hover::after {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  transform: scale(1.02);
}

.whatsapp-button:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: #2a2a2a;
}

.whatsapp-icon {
  font-size: 1.4rem;
  transition: var(--transition);
}

.whatsapp-button:hover .whatsapp-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Estilos para la sección de Medicina Estética */
.hero-features {
  margin: 50px 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  background: var(--white);
  padding: 30px 25px;
  border-radius: 16px;
  border: 1px solid var(--platinum);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--platinum-dark);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--black);
  margin-bottom: 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-family: var(--font-family);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--black);
}

.feature-desc {
  color: var(--gray-mid);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-desc strong {
  color: var(--black);
  font-weight: 600;
}

.hero-impact {
  margin: 50px 0;
  padding: 40px;
  background: linear-gradient(135deg,
      var(--gray-light) 0%,
      var(--platinum) 100%);
  border-radius: 20px;
  text-align: center;
}

.impact-title {
  font-family: var(--font-family);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--black);
}

.impact-subtitle {
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.impact-subtitle strong {
  color: var(--black);
  font-weight: 600;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--platinum);
}

.benefit-icon {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-text {
  color: var(--black);
  font-weight: 500;
  font-size: 0.95rem;
}

.cta-note {
  margin-top: 20px;
  color: var(--gray-mid);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-note i {
  color: var(--gold);
}

/* Responsive */
@media screen and (max-width: 992px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hero-impact {
    padding: 30px 25px;
  }
}

@media screen and (max-width: 768px) {
  .hero-features {
    margin: 40px 0 30px;
  }

  .feature-card {
    padding: 25px 20px;
  }

  .feature-icon {
    font-size: 2rem;
    height: 50px;
  }

  .feature-title {
    font-size: 1.2rem;
  }

  .impact-title {
    font-size: 1.6rem;
  }

  .impact-subtitle {
    font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .hero-impact {
    padding: 25px 20px;
    margin: 40px 0;
  }

  .cta-note {
    flex-direction: column;
    gap: 8px;
  }

  .feature-grid {
    gap: 20px;
  }

  .benefit-item {
    padding: 10px 15px;
  }
}

/* WebKit optimizations */
.feature-card,
.benefit-item {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* SEO optimizations - contenido visualmente oculto */
.seo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.footer {
  padding: 50px 0 30px;
  text-align: center;
  color: var(--gray-mid);
  font-size: 0.85rem;
  border-top: 1px solid rgba(206, 208, 206, 0.3);
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(245, 245, 247, 0.95) 100%);
  position: relative;
  z-index: 2;
}

.footer p {
  margin: 10px 0;
  line-height: 1.5;
}

.footer strong {
  color: var(--black);
  font-weight: 500;
}

.footer-address {
  color: var(--gray-mid);
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.3px;
}

.footer-copyright {
  margin-top: 15px;
  color: var(--gray-mid);
  font-size: 0.8rem;
}

.footer-dev {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(206, 208, 206, 0.2);
  color: var(--gray-mid);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.dev-link {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0 5px;
}

.dev-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 5px;
  right: 5px;
  height: 1px;
  background: var(--platinum-dark);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.dev-link:hover {
  color: var(--black);
}

.dev-link:hover::after {
  transform: scaleX(1);
}

.dev-desc {
  font-style: italic;
  color: var(--gray-mid);
  font-size: 0.7rem;
  letter-spacing: 0.2px;
}

/* Animations */
@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtitleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes servicesReveal {
  to {
    opacity: 1;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      #1a1a1a 0%,
      #090909 25%,
      #0a0a0a 50%,
      #141414 75%,
      #1a1a1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      transparent 30%,
      rgba(255, 255, 255, 0.03) 70%,
      transparent 100%);
  animation: subtleGlow 8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes subtleGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

/* ==============================
   LOADING LOGO - ANIMACIONES PROFESIONALES
   Compatibilidad total cross-browser y responsive
   ============================== */

.loading-logo {
  width: 440px;
  height: auto;
  max-width: 100%;
  animation: logoFadeIn 1.5s ease forwards,
    logoExplode 0.7s ease-out 1.5s forwards;
  -webkit-animation: logoFadeIn 1.5s ease forwards,
    logoExplode 0.7s ease-out 1.5s forwards;
  -moz-animation: logoFadeIn 1.5s ease forwards,
    logoExplode 0.7s ease-out 1.5s forwards;
  opacity: 0;
  transform-origin: center;
  -webkit-transform-origin: center;
  -moz-transform-origin: center;
  -ms-transform-origin: center;
  -o-transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity, filter;
  -webkit-will-change: transform, opacity, filter;
  box-sizing: border-box;
}

/* Animación de entrada del logo */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.98);
    filter: brightness(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1.1);
  }
}

/* Versión WebKit para Safari y navegadores antiguos */
@-webkit-keyframes logoFadeIn {
  0% {
    opacity: 0;
    -webkit-transform: scale(0.98);
    -webkit-filter: brightness(0.8);
  }

  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    -webkit-filter: brightness(1.1);
  }
}

/* Versión Mozilla para Firefox */
@-moz-keyframes logoFadeIn {
  0% {
    opacity: 0;
    -moz-transform: scale(0.98);
    filter: brightness(0.8);
  }

  100% {
    opacity: 1;
    -moz-transform: scale(1);
    filter: brightness(1.1);
  }
}

/* Animación de explosión del logo */
@keyframes logoExplode {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1.1);
  }

  30% {
    opacity: 1;
    transform: scale(1.2);
    filter: brightness(2) drop-shadow(0 0 30px white);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
    filter: brightness(3) drop-shadow(0 0 100px white);
  }
}

/* Versión WebKit para Safari */
@-webkit-keyframes logoExplode {
  0% {
    opacity: 1;
    -webkit-transform: scale(1);
    -webkit-filter: brightness(1.1);
  }

  30% {
    opacity: 1;
    -webkit-transform: scale(1.2);
    -webkit-filter: brightness(2) drop-shadow(0 0 30px white);
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(1.8);
    -webkit-filter: brightness(3) drop-shadow(0 0 100px white);
  }
}

/* Versión Mozilla para Firefox */
@-moz-keyframes logoExplode {
  0% {
    opacity: 1;
    -moz-transform: scale(1);
    filter: brightness(1.1);
  }

  30% {
    opacity: 1;
    -moz-transform: scale(1.2);
    filter: brightness(2) drop-shadow(0 0 30px white);
  }

  100% {
    opacity: 0;
    -moz-transform: scale(1.8);
    filter: brightness(3) drop-shadow(0 0 100px white);
  }
}

/* ==============================
   RESPONSIVE ADJUSTMENTS
   ============================== */

/* Desktop grande */
@media (min-width: 1400px) {
  .loading-logo {
    width: 500px;
  }
}

/* Tablet y laptops pequeñas */
@media (max-width: 1024px) {
  .loading-logo {
    width: 380px;
    animation: logoFadeIn 1.2s ease forwards,
      logoExplode 0.6s ease-out 1.2s forwards;
    -webkit-animation: logoFadeIn 1.2s ease forwards,
      logoExplode 0.6s ease-out 1.2s forwards;
  }
}

/* Tabletas */
@media (max-width: 768px) {
  .loading-logo {
    width: 320px;
    animation: logoFadeIn 1s ease forwards,
      logoExplode 0.5s ease-out 1s forwards;
    -webkit-animation: logoFadeIn 1s ease forwards,
      logoExplode 0.5s ease-out 1s forwards;
  }
}

/* Móviles grandes */
@media (max-width: 480px) {
  .loading-logo {
    width: 280px;
    animation: logoFadeIn 0.8s ease forwards,
      logoExplode 0.4s ease-out 0.8s forwards;
    -webkit-animation: logoFadeIn 0.8s ease forwards,
      logoExplode 0.4s ease-out 0.8s forwards;
  }
  
  /* Animaciones optimizadas para móviles */
  @keyframes logoFadeInMobile {
    0% {
      opacity: 0;
      transform: scale(0.95);
      filter: brightness(0.85);
    }
    100% {
      opacity: 1;
      transform: scale(1);
      filter: brightness(1.05);
    }
  }
  
  @-webkit-keyframes logoFadeInMobile {
    0% {
      opacity: 0;
      -webkit-transform: scale(0.95);
      -webkit-filter: brightness(0.85);
    }
    100% {
      opacity: 1;
      -webkit-transform: scale(1);
      -webkit-filter: brightness(1.05);
    }
  }
  
  .loading-logo {
    animation: logoFadeInMobile 0.8s ease forwards,
      logoExplode 0.4s ease-out 0.8s forwards;
    -webkit-animation: logoFadeInMobile 0.8s ease forwards,
      logoExplode 0.4s ease-out 0.8s forwards;
  }
}

/* Móviles pequeños */
@media (max-width: 320px) {
  .loading-logo {
    width: 240px;
    animation: logoFadeIn 0.7s ease forwards,
      logoExplode 0.35s ease-out 0.7s forwards;
    -webkit-animation: logoFadeIn 0.7s ease forwards,
      logoExplode 0.35s ease-out 0.7s forwards;
  }
}

/* Pantallas de muy alta densidad (4K+) */
@media (min-width: 2560px) {
  .loading-logo {
    width: 550px;
  }
}

/* ==============================
   OPTIMIZACIONES Y FALLBACKS
   ============================== */

/* Soporte para prefers-reduced-motion (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
  .loading-logo {
    animation: none;
    -webkit-animation: none;
    -moz-animation: none;
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    filter: brightness(1);
    -webkit-filter: brightness(1);
  }
}

/* Dispositivos táctiles - optimizaciones de rendimiento */
@media (hover: none) and (pointer: coarse) {
  .loading-logo {
    animation-duration: 1.2s, 0.5s;
    -webkit-animation-duration: 1.2s, 0.5s;
  }
}

/* Fallback para navegadores sin soporte de filter */
@supports not (filter: brightness(1)) {
  .loading-logo {
    animation-name: logoFadeInNoFilter, logoExplodeNoFilter;
    -webkit-animation-name: logoFadeInNoFilter, logoExplodeNoFilter;
  }
  
  @keyframes logoFadeInNoFilter {
    0% {
      opacity: 0;
      transform: scale(0.98);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes logoExplodeNoFilter {
    0% {
      opacity: 1;
      transform: scale(1);
    }
    30% {
      opacity: 1;
      transform: scale(1.2);
    }
    100% {
      opacity: 0;
      transform: scale(1.8);
    }
  }
  
  @-webkit-keyframes logoFadeInNoFilter {
    0% {
      opacity: 0;
      -webkit-transform: scale(0.98);
    }
    100% {
      opacity: 1;
      -webkit-transform: scale(1);
    }
  }
  
  @-webkit-keyframes logoExplodeNoFilter {
    0% {
      opacity: 1;
      -webkit-transform: scale(1);
    }
    30% {
      opacity: 1;
      -webkit-transform: scale(1.2);
    }
    100% {
      opacity: 0;
      -webkit-transform: scale(1.8);
    }
  }
}

/* Optimización para Safari en iOS */
@supports (-webkit-touch-callout: none) {
  .loading-logo {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .loading-logo {
    width: 250px;
    animation: logoFadeIn 0.9s ease forwards,
      logoExplode 0.45s ease-out 0.9s forwards;
    -webkit-animation: logoFadeIn 0.9s ease forwards,
      logoExplode 0.45s ease-out 0.9s forwards;
  }
}

/* Ajustes para pantallas de alta relación de aspecto (notch) */
@media (max-width: 480px) and (max-height: 700px) {
  .loading-logo {
    width: 220px;
  }
}

/* Prevención de FOUT (Flash of Unstyled Content) */
.loading-logo[data-loaded="false"] {
  visibility: hidden;
}

.loading-logo[data-loaded="true"] {
  visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 30px;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {


  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .logo {
    max-width: 250px;
  }

  .whatsapp-button {
    padding: 20px 36px;
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    padding: 30px 25px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    padding: 30px 20px;
  }

  .contact-form {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .logo {
    max-width: 200px;
  }

  .whatsapp-button {
    width: 100%;
    max-width: 320px;
    padding: 18px 30px;
  }

  .section-title {
    font-size: 2rem;
  }

  .video-title {
    font-size: 1rem;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }
}

/* Mobile Optimizations */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    padding: 8px 0 60px;
    -webkit-tap-highlight-color: transparent;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 8px;
  }

  .logo {
    max-width: 180px;
    -webkit-user-drag: none;
  }

  .whatsapp-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 0.95rem;
    -webkit-appearance: none;
  }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }

  body {
    min-height: -webkit-fill-available;
  }

  .whatsapp-button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
}

/* WebKit Optimizations */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--platinum);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-mid);
  border-radius: 4px;
}

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

/* Focus Styles */
:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--gold);
  color: var(--white);
}

/* Smooth Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Landscape */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 20px 0;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    margin-bottom: 30px;
  }

  .cta-container {
    margin-top: 30px;
  }
}














.hero-banner {
  position: relative;
  height: 60vh;
  min-height: 500px;
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/img/clinica-interior.jpg') center/cover no-repeat;
  opacity: 0.2;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.banner-title {
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  font-family: var(--font-family);
}

.banner-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sección Historia */
.history-section {
  padding: 100px 0;
  background: var(--white);
}

.history-timeline {
  max-width: 900px;
  margin: 60px auto 0;
  position: relative;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--platinum), var(--platinum-dark));
}

.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.timeline-year {
  width: 60px;
  height: 60px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 40px;
  position: relative;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  padding-top: 10px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--black);
}

/* Sección Esencia */
.essence-section {
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--platinum) 100%);
  padding: 100px 0;
}

.essence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.essence-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.essence-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-elevated);
}

.essence-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 25px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.essence-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--black);
}

/* Sección Equipo */
.team-section {
  padding: 100px 0;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.team-member {
  text-align: center;
}

.member-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 25px;
  overflow: hidden;
  border: 3px solid var(--platinum);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--black);
}

.member-role {
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 15px;
}

/* Acreditación */
.accreditation-section {
  background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
  color: var(--white);
  padding: 100px 0;
}

.accreditation-badge-large {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.accreditation-icon-large {
  font-size: 5rem;
  color: var(--gold);
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-title {
    font-size: 2.5rem;
  }

  .history-timeline::before {
    left: 20px;
  }

  .timeline-year {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    margin-right: 30px;
  }

  .essence-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .essence-card,
  .team-member {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 50vh;
    min-height: 400px;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-year {
    margin: 0 auto 20px;
  }
}

/* Animaciones de revelación */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Estilos para el modal de imágenes */
.image-modal {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Estilos para formularios */
.form-control.error {
  border-color: #ff4757 !important;
}

.error-message {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive para dispositivos */
.mobile-device .some-element {
  /* Estilos específicos para móvil */
}

.tablet-device .some-element {
  /* Estilos específicos para tablet */
}


/* Video solo en la mitad derecha */
.video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

/* Contenedor responsivo para visualización al 100% */
.video-fullscreen-container {
  position: relative;
   width: 100% !important;
  height: 100vh;
  overflow: hidden;
}

.video-fullscreen-container .video-background {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
}

/* Media queries para compatibilidad responsiva */
@media screen and (max-width: 480px) {
  .video-fullscreen-container {
    height: 100vh;
    position: relative;
     width: 100vw !important;
  }
  
  .video-fullscreen-container .video-background {
    width: 300%;
    height: auto;
    min-height: 100vh;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .video-fullscreen-container {
    height: 100vh;
    width: 300% !important;
  }
  
  .video-fullscreen-container .video-background {
    width: 100% !important;
    height: 100%;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .video-fullscreen-container {
    height: 100vh;
    width: 100%;
  }
  
  .video-fullscreen-container .video-background {
    width: 100%;
    height: 100%;
  }
}

@media screen and (min-width: 1025px) {
  .video-fullscreen-container {
    height: 100vh;
    width: 100%;
  }
  
  .video-fullscreen-container .video-background {
    width: 100%;
    height: 100%;
  }
}

/* Ajuste para orientación móvil */
@media screen and (orientation: portrait) and (max-height: 600px) {
  .video-fullscreen-container .video-background {
    object-fit: contain;
  }
}



/* WebKit Performance Optimizations */
.video-container,
.video-background,
.video-overlay {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}


  /* Mejora de rendimiento en Safari */
  .video-background {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }