/* ==========================================================================
   DISEÑO SYSTEM Y VARIABLES - LÁSER CENTER IQUITOS
   ========================================================================== */

:root {
  --primary: #008B99;
  /* Teal/Turquesa principal */
  --primary-rgb: 0, 139, 153;
  --secondary: #00BFA5;
  /* Menta de acento */
  --secondary-rgb: 0, 191, 165;
  --dark: #0F172A;
  /* Navy profundo */
  --dark-light: #1E293B;
  /* Navy claro */
  --light: #F8FAFC;
  /* Fondo claro */
  --white: #FFFFFF;
  --gray-light: #E2E8F0;
  --gray-medium: #94A3B8;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --danger: #EF4444;
  --success: #10B981;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --font-family-body: 'Inter', sans-serif;
  --font-family-title: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-title);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-light);
}

/* ==========================================================================
   COMPONENTES: BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background-color: #007682;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   CABECERA / NAVBAR
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* ==========================================================================
   KEYFRAMES / ANIMACIONES
   ========================================================================== */
@keyframes rotateCircle {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateCircleCounter {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@keyframes scanEye {

  0%,
  100% {
    top: 0;
  }

  50% {
    top: 100%;
  }
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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

@keyframes popSuccess {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  70% {
    transform: scale(1.1);
  }

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

@keyframes floatPin {

  0%,
  100% {
    transform: translateY(0);
  }

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

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* ==========================================================================
   RESPONSIVIDAD Y ADAPTABILIDAD
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-graphic {
    order: -1;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .booking-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-links ul {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 36px;
  }

@media (max-width: 768px) {
  .main-footer {
    padding-bottom: 140px;
  }
}

  .main-nav {
    display: none;
    position: absolute;
    top: 108px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .btn-nav {
    display: none;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .symptoms-list {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


/* ==========================================================================
   BARRA SUPERIOR DE EMERGENCIAS
   ========================================================================== */
.top-emergency-bar {
  background-color: var(--dark-light);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.emergency-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emergency-btn {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.emergency-btn:hover {
  color: var(--white);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--dark-light);
  color: var(--white);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--gray-medium);
  font-size: 14px;
}

.footer-links ul {
  display: flex;
  list-style: none;
  gap: 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 12px;
  color: var(--gray-medium);
}

.dev-credits {
  font-style: italic;
}

/* ==========================================================================
   HERO DE PÁGINA INTERNA (usado por galería, nosotros, etc.)
   ========================================================================== */
.page-hero {
  padding: 140px 0 60px;
  background: radial-gradient(circle at 10% 20%, rgba(0, 139, 153, 0.04) 0%, rgba(255, 255, 255, 1) 90%);
  text-align: center;
}

.page-hero .subtitle {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   GALERÍA ESTILO FACEBOOK (mosaico + zoom al pasar el mouse)
   ========================================================================== */
.fb-gallery-section {
  padding: 20px 0 90px;
  background-color: var(--light);
}

.fb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 220px;
  gap: 6px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.fb-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background-color: var(--dark);
  cursor: zoom-in;
  overflow: hidden;
  font: inherit;
  color: inherit;
}

.fb-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

/* Capa oscura + icono de lupa al pasar el mouse, como en Facebook */
.fb-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0) 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fb-gallery-item__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.55);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition: var(--transition);
  z-index: 2;
}

.fb-gallery-item__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.fb-gallery-item__caption strong {
  color: var(--white);
  font-family: var(--font-family-title);
  font-size: 15px;
  font-weight: 600;
}

.fb-gallery-item__caption small {
  color: var(--gray-light);
  font-size: 12px;
}

.fb-gallery-item:hover img,
.fb-gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.fb-gallery-item:hover::after,
.fb-gallery-item:focus-visible::after,
.fb-gallery-item:hover .fb-gallery-item__zoom,
.fb-gallery-item:focus-visible .fb-gallery-item__zoom,
.fb-gallery-item:hover .fb-gallery-item__caption,
.fb-gallery-item:focus-visible .fb-gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

.fb-gallery-item:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: -3px;
}

@media (max-width: 768px) {
  .fb-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 4px;
    border-radius: 14px;
  }

  .fb-gallery-item__caption strong {
    font-size: 13px;
  }

  .fb-gallery-item__caption small {
    display: none;
  }
}

@media (max-width: 480px) {
  .fb-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
}

/* ==========================================================================
   LIGHTBOX / VISOR DE FOTOS AMPLIADO
   ========================================================================== */
.lc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(6, 10, 20, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.lc-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lc-lightbox__stage {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lc-lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lc-lightbox.is-open .lc-lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lc-lightbox__caption {
  margin-top: 18px;
  text-align: center;
  color: var(--white);
}

.lc-lightbox__caption strong {
  display: block;
  font-family: var(--font-family-title);
  font-size: 17px;
  font-weight: 600;
}

.lc-lightbox__caption span {
  display: block;
  color: var(--gray-medium);
  font-size: 13px;
  margin-top: 2px;
}

.lc-lightbox__counter {
  margin-top: 10px;
  color: var(--gray-medium);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.lc-lightbox__close,
.lc-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.lc-lightbox__close:hover,
.lc-lightbox__nav:hover {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.lc-lightbox__close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  z-index: 5;
}

.lc-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 18px;
  z-index: 5;
}

.lc-lightbox__nav--prev {
  left: 24px;
}

.lc-lightbox__nav--next {
  right: 24px;
}

@media (max-width: 640px) {
  .lc-lightbox__close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .lc-lightbox__nav {
    width: 42px;
    height: 42px;
  }

  .lc-lightbox__nav--prev {
    left: 8px;
  }

  .lc-lightbox__nav--next {
    right: 8px;
  }

  .lc-lightbox__img {
    max-height: 62vh;
  }
}
