/*
Theme Name: LASURCLINIC Homepage
Theme URI: https://lasurclinic.com/
Author: LASURCLINIC
Description: Tema ligero con plantilla seleccionable para la homepage de LASURCLINIC.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: lasurclinic
*/

:root {
  --lasur-green: #057a3f;
  --lasur-green-dark: #015f35;
  --lasur-teal: #078ca1;
  --lasur-cyan: #1eb7c5;
  --lasur-red: #f04b38;
  --lasur-ink: #203142;
  --lasur-muted: #607080;
  --lasur-line: #dce6e9;
  --lasur-soft: #eef8f5;
  --lasur-white: #ffffff;
  --lasur-shadow: 0 20px 60px rgba(15, 56, 70, 0.14);
  --lasur-radius: 8px;
  --lasur-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--lasur-ink);
  background: #ffffff;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  color: #fff;
  background: var(--lasur-green);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 40px rgba(20, 51, 66, 0.08);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--lasur-max), calc(100% - 32px));
  min-height: 102px;
  margin: 0 auto;
  gap: 28px;
}

.site-logo {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: min(290px, 48vw);
}

.site-logo img {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
}

.header-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #203142;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-menu a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--lasur-green);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.primary-menu a:hover::after,
.primary-menu a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-item-has-children > a::before,
.primary-menu .has-submenu > a::before {
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  order: 2;
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 30px);
  z-index: 40;
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(7, 140, 161, 0.12);
  border-radius: var(--lasur-radius);
  background: #fff;
  box-shadow: var(--lasur-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.primary-menu .menu-item {
  position: relative;
}

.primary-menu .menu-item:hover > .sub-menu,
.primary-menu .menu-item:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  min-height: 38px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-transform: none;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
  color: var(--lasur-green);
  background: #eef8f5;
}

.primary-menu .sub-menu a::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(5, 122, 63, 0.18);
  border-radius: 8px;
  color: var(--lasur-green);
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.lasur-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.lasur-btn:hover,
.lasur-btn:focus-visible {
  transform: translateY(-2px);
}

.lasur-btn--green {
  color: #ffffff;
  background: linear-gradient(135deg, var(--lasur-green), #008f4c);
  box-shadow: 0 12px 25px rgba(5, 122, 63, 0.22);
}

.lasur-btn--green:hover,
.lasur-btn--green:focus-visible {
  box-shadow: 0 16px 32px rgba(5, 122, 63, 0.28);
}

.lasur-btn--outline {
  color: var(--lasur-green);
  border-color: var(--lasur-red);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(240, 75, 56, 0.11);
}

.lasur-btn--outline:hover,
.lasur-btn--outline:focus-visible {
  color: #ffffff;
  background: var(--lasur-green);
  border-color: var(--lasur-green);
}

.lasur-btn img,
.lasur-btn svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.laser-rule {
  position: absolute;
  z-index: 0;
  right: -10px;
  bottom: 0;
  left: -10px;
  height: 3px;
  overflow: visible;
  background: linear-gradient(90deg, transparent 0, rgba(240, 75, 56, 0.35) 9%, var(--lasur-red) 18%, #ff9b8f 23%, var(--lasur-red) 28%, var(--lasur-red) 90%, transparent 100%);
  background-size: 230% 100%;
  pointer-events: none;
  animation: laserScan 4.2s linear infinite;
}

.laser-rule::before,
.laser-rule::after {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid var(--lasur-red);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(240, 75, 56, 0.65);
  content: "";
  transform: translateY(-50%);
  animation: laserPulse 2.8s ease-in-out infinite;
}

.laser-rule::before {
  left: 6.8%;
}

.laser-rule::after {
  right: 0;
  animation-delay: 0.6s;
}

.site-footer {
  color: #d8edf0;
  background: #073c44;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 34px;
  width: min(var(--lasur-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 34px;
}

.site-footer img {
  width: 250px;
  max-width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.05rem;
}

.site-footer p,
.site-footer li {
  margin: 0;
  color: #d8edf0;
  font-size: 0.95rem;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: min(var(--lasur-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: #b7d6db;
  font-size: 0.86rem;
}

.webazul-credit a {
  color: #ffffff;
  font-weight: 800;
}

.webazul-credit a span {
  color: #2c9bff;
}

@keyframes laserPulse {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(240, 75, 56, 0.5);
  }

  50% {
    box-shadow: 0 0 22px rgba(240, 75, 56, 0.95);
  }
}

@keyframes laserScan {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (max-width: 1040px) {
  .site-header__inner {
    min-height: 88px;
  }

  .header-actions {
    gap: 14px;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 10px 0 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-header.is-open .primary-navigation {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-menu {
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid rgba(7, 140, 161, 0.12);
    border-radius: var(--lasur-radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--lasur-shadow);
  }

  .primary-menu a {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
  }

  .primary-menu a::after {
    display: none;
  }

  .primary-menu .sub-menu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 0 0 6px 16px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid rgba(5, 122, 63, 0.18);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-toggle {
    display: grid;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.78rem;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  .site-header__inner {
    width: calc(100% - 24px);
    max-width: var(--lasur-max);
    min-height: 76px;
    gap: 12px;
  }

  .site-logo {
    width: min(220px, 56vw);
  }

  .site-logo img {
    max-height: 54px;
  }

  .header-cta {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
  }

  .laser-rule {
    right: 0;
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
