* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f2f6ff;
  color: #222;
}

.wave-left,
.wave-right {
  position: fixed;
  top: 0;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ONDA IZQUIERDA */
.wave-left {
  left: -160px;       /* bien afuera */
  top: -400px;        /* más arriba */
  width: 360px;
}

/* SEGUNDA LÍNEA */
.wave-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("wave-left.svg") no-repeat;
  background-size: contain;
  transform: translateX(30px);
  opacity: 0.7;
}

/* TERCERA LÍNEA */
.wave-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("wave-left.svg") no-repeat;
  background-size: contain;
  transform: translateX(60px);
  opacity: 0.4;
}

/* ONDA DERECHA */
.wave-right {
  right: -160px;
  top: 40px;          /* más abajo que la izquierda */
  width: 360px;
}

/* SEGUNDA LÍNEA */
.wave-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("wave-right.svg") no-repeat;
  background-size: contain;
  transform: translateX(-30px);
  opacity: 0.7;
}

/* TERCERA LÍNEA */
.wave-right::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("wave-right.svg") no-repeat;
  background-size: contain;
  transform: translateX(-60px);
  opacity: 0.4;
}

/* Tablet */
@media (max-width: 1024px) {
  .wave-left,
  .wave-right {
    width: 160px;
  }
}

/* Teléfono */
@media (max-width: 768px) {

  .wave-left {
    left: -90px;
    top: -60px;
    width: 220px;
  }

  .wave-right {
    right: -90px;
    top: -40px;
    width: 220px;
  }
}

/* HEADER LOGO */
.header {
  position: absolute;     /* ⬅️ ya no fixed */
  top: -10px;             /* ⬅️ queda encima */
  right: 0;               /* alineado a la derecha del contenedor */
  z-index: 10;
}

/* LOGO */
.logo {
  max-width: 420px;   /* ⬅️ más grande */
  max-height: 140px;  /* ⬅️ más alto pero elegante */
  width: auto;
  object-fit: contain;
}
/* CONTENEDOR PRINCIPAL */
.container {
  position: relative;     
  max-width: 1100px;
  margin: auto;
  padding: 110px 20px 20px; /* ⬅️ más espacio arriba para logo grande */
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

/* FOTO */
.photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.doctor-img {
  width: 320px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* INFO */
.info {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  text-align: center;
}

.name {
  background: #1e63ff;
  color: white;
  padding: 14px;
  border-radius: 30px;
  font-weight: bold;
  margin-bottom: 18px;
}

.descripcion {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* BOTÓN */
.btn-main {
  display: inline-block;
  background: #1e63ff;
  color: white;
  padding: 14px 24px;
  border-radius: 35px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 25px;
}

.btn-main span {
  background: #25D366;
  padding: 6px 12px;
  border-radius: 20px;
  margin-left: 8px;
  font-size: 12px;
}

/* UBICACIÓN */
.ubicacion {
  background: #1e63ff;
  color: white;
  padding: 22px;
  border-radius: 28px;
  margin-bottom: 20px;
}

.ubicacion h2 {
  margin-bottom: 15px;
}

.direccion {
  display: block;
  background: rgba(255,255,255,0.2);
  margin: 8px 0;
  padding: 12px;
  border-radius: 18px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

/* HORARIOS */
.horarios {
  font-size: 14px;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 28px;
  padding: 14px 18px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* FOOTER */
footer {
  font-size: 12px;
  color: #666;
  margin: 25px 0;
  text-align: center;
}

/* ============================= */
/* 📱 CELULAR */
/* ============================= */
@media (max-width: 768px) {

  .header {
    position: absolute;
    top: -45px;                /* encima del contenedor */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .logo {
    width: 180px;              /* más visible */
    max-height: 80px;
  }

  .container {
    position: relative;        /* referencia del logo */
    padding-top: 70px;         /* espacio para el logo */
    flex-direction: column;
    gap: 25px;
  }

  .doctor-img {
    width: 100%;
    max-width: 350px;
  }

  .info {
    padding: 22px;
  }
}