:root {
  --primary: #09253f;
  --navy2: #123b61;
  --gold: #c8a15a;
  --gold2: #ead18a;
  --cream: #f7f3ea;
  --text: #4b5563;
  --gray: #64748b;
  --shadow: 0 24px 60px rgba(9, 37, 63, .18)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65
}

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

img {
  display: block
}

.section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center
}

.center {
  text-align: center
}

.center-title {
  text-align: center;
  max-width: 780px;
  margin: 12px auto 44px
}

.center-text {
  text-align: center;
  color: var(--gray);
  max-width: 680px;
  margin: 0 auto 34px
}

h1,
h2,
h3 {
  line-height: 1.08
}

h1 span {
  color: var(--gold)
}

h2 {
  font-size: clamp(2rem, 3.25vw, 3.25rem);
  letter-spacing: -.04em
}

h3 {
  font-size: 1.25rem
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: .25s ease
}

.btn:hover {
  transform: translateY(-2px)
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--primary);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background-color: transparent;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-light {
  background-color: #f0f0f0 !important;
}

.bg-cream {
  background-color: var(--cream);
}

.bg-gold {
  background-color: var(--gold);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #10243a;
  box-shadow: 0 14px 28px rgba(201, 164, 95, .28)
}

.text-primary {
  color: var(--primary) !important;
}

.text-gold {
  color: var(--gold) !important;
}

.light {
  background: #fff;
  color: var(--navy)
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 40px;
  z-index: 100;
  background: #28c362;
  color: #fff;
  padding: 10px 18px;
  border-radius: 40px;
  font-weight: 900;
  box-shadow: 0px 7px 15px rgba(0, 0, 0, .2);
}

.whatsapp-float:hover {
  transform: scale(1.03) !important;
  background-color: #f0f0f0 !important;
  border: 2px solid #25D366 !important;
  color: #25D366 !important;
  transition: all .3s ease !important;
  cursor: pointer;
}

.hero-copy h1.hero-title {
  font-family: Georgia, serif;
  font-size: 95px;
  color: var(--navy);
  line-height: 1;
}

/* Contenedor general de la cabecera */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  z-index: 1;
  border-bottom-right-radius: 40px;
  border-bottom-left-radius: 40px;
}

/* Área que calcula la altura para el fondo borroso (abarca todo el ancho de la pantalla) */
.hero-blur-bg {
  position: relative;
  width: 100%;
  height: 100%;
}

/* El fondo degradado con blur (Ignora el container para rellenar toda la pantalla) */
.hero-blur-bg::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: 0;
  background: linear-gradient(105deg, #fff 0%, #fff 45%, #eaf4f8 45%, #dcecf3 100%);
  filter: blur(15px);
  z-index: -1;
}

/* Curva decorativa del fondo (Fija abajo en la pantalla completa) */
.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -16%;
  width: 62%;
  height: 30%;
  background: var(--primary);
  border-top: 8px solid var(--gold);
  border-radius: 0 100% 0 0;
  z-index: 0;
}

/* Capas de seguridad para que el contenido no pierda interactividad */
.hero-grid,
.navbar {
  position: relative;
  z-index: 2;
}

/* Asegura que los textos del hero no queden bloqueados por las capas */
.hero-copy,
.navbar,
.hero-photo {
  position: relative;
  z-index: 2;
}

.navbar {
  max-width: 1180px;
  margin: auto;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5
}

.brand img {
  width: 168px;
  max-height: 70px;
  object-fit: contain
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--navy);
  font-weight: 800;
  font-size: .92rem
}


.hero-logo {
  width: 360px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 22px
}

.gold-line {
  width: 250px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0 16px
}


.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-photo {
  position: relative
}

.hero-photo:before {
  content: "";
  position: absolute;
  left: -26px;
  top: 0;
  width: 5px;
  height: 82%;
  background: linear-gradient(var(--gold2), var(--gold));
  border-radius: 99px;
  z-index: 2;
}

.hero-photo img {
  width: 100%;
  height: 710px;
  object-fit: cover;
  object-position: center top;
  border-radius: 38px;
  box-shadow: var(--shadow)
}

.about:before,
.appointment:before,
.contact:before,
.portal:before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(180deg, #fff, var(--cream));
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.image-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
  border-radius: 32px;
  box-shadow: var(--shadow)
}

.gold-border img {
  border: 4px solid rgba(201, 164, 95, .35)
}

.tech::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #09253f, #123b61);
  z-index: -1;
}

.tech h2,
.tech p {
  color: #fff
}

.tech p {
  color: rgba(255, 255, 255, .82)
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px
}

.benefit-list span {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 18px;
  padding: 18px;
  font-weight: 900
}

.surgical,
.social {
  background: #fff
}

.appointment-box {
  border-left: 4px solid var(--gold);
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(9, 37, 63, .07)
}

.appointment-box p {
  margin: 8px 0
}

.video-frame video {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: #000
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px
}

.instagram-grid div {
  height: 310px;
  border-radius: 26px;
  background: linear-gradient(135deg, #f5f1e8, #fff);
  border: 1px dashed rgba(9, 37, 63, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 900
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.portal-box {
  background: #fff;
  border-radius: 30px;
  padding: 42px;
  box-shadow: 0 14px 34px rgba(9, 37, 63, .07);
  border: 1px solid rgba(9, 37, 63, .08)
}

footer {
  background: #061a2d;
  color: #fff;
  padding: 58px 0 24px
}

.footer-logo {
  width: 230px;
  max-height: 105px;
  object-fit: contain;
  margin-bottom: 18px
}

.footer-brand h3 {
  color: var(--gold2);
  font-size: 1.35rem;
  margin-bottom: 10px
}

footer p {
  color: rgba(255, 255, 255, .72);
  margin-top: 8px
}

.navigation-top {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  z-index: 9;
  backdrop-filter: blur(15px);
  border: 1px solid rgb(255 255 255);
  transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1) 0.2s;
  padding: 20px 15px;
}

.header-number svg path:nth-child(2) {
  -webkit-animation: header-phone 1s infinite cubic-bezier(.1, .57, .5, 1);
  animation: header-phone 1s infinite cubic-bezier(.1, .57, .5, 1);
}

.header-number svg path:nth-child(3) {
  -webkit-animation: header-phone2 1s infinite cubic-bezier(.1, .57, .5, 1);
  animation: header-phone2 1s infinite cubic-bezier(.1, .57, .5, 1);
}

.pulse-suave {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: #c8a15a;
  animation: pulso 2s infinite ease-in-out;
}

.anuncio-portal {
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fc 100%);
  border-left: 5px solid var(--gold) !important;
  /* Detalle dorado médico */
}

.portal-icon {
  width: 60px;
  height: 60px;
  background-color: var(--cream);
  color: var(--primary);
}

.badge-proximamente {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.bg-blur-circle {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 165px;
  height: 165px;
  background: var(--cream);
  border-radius: 50%;
  filter: blur(40px);
}

/*======================responsive===animate=========================*/
@media(max-width:980px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .hero-grid,
  .grid-2,
  .contact-box {
    grid-template-columns: 1fr
  }

  .cards {
    grid-template-columns: 1fr 1fr
  }

  .hero-photo img {
    height: 560px
  }

  .hero:after {
    width: 95%;
    height: 18%
  }
}

@media(max-width:640px) {
  .hero-copy h1.hero-title {
    font-size: 60px;
  }

  .section {
    padding: 40px 0
  }

  .cards,
  .credentials,
  .benefit-list,
  .instagram-grid {
    grid-template-columns: 1fr
  }

  .hero-photo img,
  .image-frame img,
  .video-frame video {
    height: 460px;
    border-radius: 24px
  }

  .contact-box,
  .portal-box {
    padding: 30px 22px
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px
  }
}


@media(max-width:640px) {
  body {
    overflow-x: hidden
  }

  .hero {
    padding-bottom: 40px
  }

  .hero-grid {
    gap: 28px
  }

  h1 {
    font-size: 3rem;
    line-height: 1.05
  }

  .specialty {
    font-size: 1.1rem
  }

  .hero-actions,
  .actions-inline {
    flex-direction: column;
    align-items: stretch
  }

  .navbar {
    padding-top: 10px
  }

  .brand img {
    width: 130px
  }

  .hero-photo:before {
    display: none
  }

  .hero-photo img {
    height: 420px
  }

  .video-frame video {
    height: 320px
  }

  .instagram-grid div {
    height: 220px
  }

}

@keyframes header-phone {

  0%,
  30% {
    opacity: 0;
    -webkit-transform: translate3d(-20px, 20px, 0);
    transform: translate3d(-20px, 20px, 0)
  }

  80% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0)
  }

  100% {
    opacity: 0
  }
}

@keyframes header-phone2 {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-20px, 20px, 0);
    transform: translate3d(-20px, 20px, 0)
  }

  70%,
  90% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0)
  }

  100% {
    opacity: 0
  }
}

@keyframes pulso {
  0% {
    transform: scale(1);
    /* Sombra inicial intensa pero pequeña */
    box-shadow: 0 0 0 0 rgba(234, 209, 138, 0.7);
  }

  70% {
    /* El elemento crece un poco y la sombra se expande */
    transform: scale(1.03);
    box-shadow: 0 0 0 20px rgba(234, 209, 138, 0);
  }

  100% {
    /* Retorno suave al estado inicial */
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(234, 209, 138, 0);
  }
}