/* ====== MEDIA UP — ESTILOS ====== */
:root {
  --crema: #F7F1E3;
  --azul: #1B3FBF;
  --azul-oscuro: #14319c;
  --naranja: #FF4D00;
  --amarillo: #FFC400;
  --texto: #1e2440;
  --blanco: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--crema);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--blanco); }

h1, h2, h3, h4 { line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 700; }

.highlight-orange { color: var(--naranja); }
.highlight-blue { color: var(--azul); }

.section-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--naranja);
  margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p:last-child { color: #55597a; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--naranja);
  color: var(--blanco);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--naranja);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 20px rgba(255, 77, 0, .25);
}
.btn:hover { transform: translateY(-2px); background: #e64500; box-shadow: 0 12px 26px rgba(255,77,0,.3); }
.btn-small { padding: 9px 20px; font-size: .9rem; box-shadow: none; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-outline {
  background: transparent;
  color: var(--azul);
  border-color: var(--azul);
  box-shadow: none;
}
.btn-outline:hover { background: var(--azul); color: var(--blanco); }
.btn svg { width: 20px; height: 20px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 227, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 63, 191, .1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  position: relative;
}
.logo-media { color: var(--azul); }
.logo-up { color: var(--naranja); position: relative; margin-left: 2px; }
.logo-triangle {
  position: absolute;
  top: -10px;
  left: 12%;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 15px solid var(--amarillo);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: color .15s;
}
.nav a:hover { color: var(--naranja); }
.nav a.btn-small { color: var(--blanco); }
.nav a.btn-small:hover { color: var(--blanco); }

.cert-badge {
  display: inline-block;
  background: rgba(27, 63, 191, .08);
  border: 1.5px solid rgba(27,63,191,.3);
  color: var(--azul);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--azul);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 12px;
}
.cert-link:hover { color: var(--naranja); }
.cert-link svg { width: 18px; height: 18px; }

/* ===== AGENDA ===== */
.agenda-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--crema);
  border: 2px solid rgba(27,63,191,.12);
  border-radius: 28px;
  padding: 48px 44px;
}
.agenda-steps {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.agenda-steps span {
  background: var(--blanco);
  border: 1.5px solid rgba(255,77,0,.25);
  color: var(--naranja);
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 18px;
  border-radius: 999px;
}
.agenda-action { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.agenda-note { font-size: .85rem; color: #7a7f9c; }

/* formulario de agenda */
.agenda-form {
  background: var(--blanco);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(30,36,64,.08);
}
.agenda-form h3 { margin-bottom: 16px; }
.af-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.af-row > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.af-row label { font-size: .8rem; font-weight: 700; color: var(--azul); }
.agenda-form input,
.agenda-form select {
  border: 1.5px solid rgba(27,63,191,.2);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .92rem;
  color: var(--texto);
  background: var(--crema);
  outline: none;
  transition: border-color .15s;
}
.agenda-form input:focus,
.agenda-form select:focus { border-color: var(--naranja); }
.af-submit { justify-content: center; align-items: center; }
.af-submit .btn { display: inline-flex; width: 100%; justify-content: center; cursor: pointer; border: none; }

@media (max-width: 900px) {
  .agenda-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .af-row { flex-direction: column; }
}
.nav a.btn-small { color: var(--blanco); }
.nav a.btn-small:hover { color: var(--blanco); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span {
  display: block;
  width: 24px; height: 3px;
  background: var(--azul);
  margin: 5px 0;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--azul);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-sub { font-size: 1.15rem; color: #4a4f6d; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; }
.hero-chips li {
  background: var(--blanco);
  border: 1.5px solid rgba(27,63,191,.15);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--azul);
}

/* formas geométricas del hero */
.hero-shape { position: absolute; z-index: 1; opacity: .9; }
.hero-shape-blue {
  width: 320px; height: 320px;
  background: var(--azul);
  clip-path: polygon(0 100%, 0 40%, 60% 100%);
  bottom: 0; left: 0;
}
.hero-shape-yellow {
  width: 260px; height: 260px;
  background: var(--amarillo);
  clip-path: polygon(100% 100%, 100% 30%, 40% 100%);
  bottom: 0; right: 0;
}
.hero-shape-orange {
  width: 140px; height: 140px;
  background: var(--naranja);
  border-radius: 50%;
  top: -70px; right: 6%;
}

/* ===== TARJETAS SERVICIOS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--blanco);
  border-radius: 22px;
  padding: 34px 28px;
  border-top: 8px solid var(--azul);
  box-shadow: 0 10px 30px rgba(30, 36, 64, .07);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30,36,64,.12); }
.card-orange { border-top-color: var(--naranja); }
.card-yellow { border-top-color: var(--amarillo); }
.card-blue { border-top-color: var(--azul); }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blanco);
}
.card-orange .card-icon { background: var(--naranja); }
.card-blue .card-icon { background: var(--azul); }
.card-yellow .card-icon { background: var(--amarillo); }
.card-icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 10px; color: var(--azul); }
.card-orange h3 { color: var(--naranja); }
.card > p { color: #4a4f6d; margin-bottom: 18px; }
.card-list { list-style: none; margin-top: auto; }
.card-list li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: .93rem;
  color: #3c4160;
}
.card-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--naranja);
  font-weight: 700;
}

/* ===== ENFOQUE ===== */
.focus-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.focus-lead { color: #4a4f6d; margin-bottom: 16px; }
.focus-grid .btn { margin-top: 12px; }
.focus-points { display: grid; gap: 18px; }
.focus-point {
  background: var(--crema);
  border-left: 5px solid var(--naranja);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
}
.focus-point:nth-child(2) { border-left-color: var(--azul); }
.focus-point:nth-child(3) { border-left-color: var(--amarillo); }
.focus-point:nth-child(4) { border-left-color: var(--azul); }
.focus-point h4 { margin-bottom: 4px; font-size: 1.02rem; }
.focus-point p { color: #4a4f6d; font-size: .93rem; }

/* ===== SOBRE MÍ ===== */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.about-avatar {
  background: var(--azul);
  border-radius: 24px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(27,63,191,.25);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.about-dot {
  position: absolute;
  bottom: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--amarillo);
}

/* ===== CONTACTO ===== */
.section-contact {
  background: var(--azul);
  color: var(--blanco);
  overflow: hidden;
  text-align: center;
}
.section-contact .section-kicker { color: var(--amarillo); }
.contact-inner { position: relative; z-index: 2; max-width: 700px; }
.contact-inner p { color: rgba(255,255,255,.85); }
.contact-inner h2 { margin-bottom: 14px; }
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 18px;
}
.section-contact .btn-outline {
  color: var(--blanco);
  border-color: rgba(255,255,255,.6);
  cursor: not-allowed;
}
.section-contact .btn-outline:hover { background: rgba(255,255,255,.12); transform: none; }
.contact-note { font-size: .85rem; color: rgba(255,255,255,.6) !important; }
.contact-shape { position: absolute; z-index: 1; }
.contact-shape-blue {
  width: 300px; height: 300px;
  background: var(--azul-oscuro);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  bottom: 0; left: 0;
  opacity: .5;
}
.contact-shape-yellow {
  width: 200px; height: 200px;
  background: var(--amarillo);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  bottom: 0; right: 0;
  opacity: .85;
}

/* ===== DEMOS SITIOS ===== */
.demos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.demo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(30,36,64,.12);
  background: var(--blanco);
  transition: transform .2s ease, box-shadow .2s ease;
}
.demo:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(30,36,64,.16); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e9e4d8;
  padding: 9px 14px;
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c9c2b2; }
.browser-bar span:nth-child(1) { background: var(--naranja); }
.browser-bar span:nth-child(2) { background: var(--amarillo); }
.browser-bar span:nth-child(3) { background: #25D366; }
.browser-bar em {
  font-style: normal;
  font-size: .72rem;
  color: #8a8578;
  background: rgba(255,255,255,.7);
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 6px;
}
.demo-site { padding: 18px 20px 20px; }

.demo-dentista { --demo-accent: #11998e; background: #f4fbfa; }
.demo-abogado { --demo-accent: #c9a227; background: #17233b; }

.ds-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--azul);
  font-size: .85rem;
}
.ds-top-dark { color: #e8d9a0; }
.ds-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
}
.ds-img img { width: 100%; height: 100%; object-fit: cover; }
.demo-dentista .ds-img img { object-position: center 60%; }

.ds-hero h5 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; color: var(--azul); }
.ds-hero-dark h5 { color: var(--blanco); }
.ds-hero p { font-size: .82rem; color: #556; margin-bottom: 12px; }
.ds-hero-dark p { color: #aeb9d6; }
.ds-btn {
  display: inline-block;
  color: var(--blanco);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
}
.ds-btn-teal { background: #11998e; }
.ds-btn-gold { background: #c9a227; color: #17233b; }
.ds-top .ds-btn { margin-left: 10px; }

.ds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.ds-card {
  background: var(--blanco);
  border: 1px solid rgba(17,153,142,.25);
  color: #0e6e66;
  border-radius: 10px;
  padding: 12px 8px;
  font-size: .74rem;
  font-weight: 600;
  text-align: center;
}
.ds-card-dark {
  background: #223154;
  border-color: rgba(201,162,39,.35);
  color: #d9c77e;
}
.demo-note {
  text-align: center;
  margin-top: 34px;
  color: #7a7f9c;
  font-size: .88rem;
}

@media (max-width: 900px) {
  .demos { grid-template-columns: 1fr; }
}

/* ===== BURBUJA WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; }
.wa-tip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blanco);
  color: var(--texto);
  font-weight: 600;
  font-size: .85rem;
  padding: 8px 14px;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.whatsapp-float:hover .wa-tip { opacity: 1; }

@media (max-width: 768px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 56px; height: 56px; }
  .wa-tip { display: none; }
}

.footer .logo .logo-media,
.footer .logo .logo-up { color: var(--blanco); }
.footer .logo-triangle { border-bottom-color: var(--amarillo); }

/* ===== FOOTER ===== */
.footer {
  background: #12194a;
  color: rgba(255,255,255,.8);
  padding: 40px 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer p { font-size: .92rem; }
.footer-small { font-size: .8rem; color: rgba(255,255,255,.5) !important; }
.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--blanco);
  margin: 6px 0;
  transition: background .15s;
}
.footer-link:hover { background: #0a66c2; }
.footer-link svg { width: 20px; height: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .focus-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-avatar { max-width: 200px; height: 200px; margin-bottom: 10px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-shape-blue, .hero-shape-yellow { opacity: .35; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blanco);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 16px 30px rgba(30,36,64,.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a.btn-small { text-align: center; justify-content: center; display: flex; }
}
