/* Dra. Emaly Mauricio · Versión 2 */
:root {
  --primary: #b45776;
  --primary-dark: #923e5a;
  --secondary: #f9e9ef;
  --text: #442e38;
  --muted: #75636b;
  --bg: #fffdfc;
  --accent: #e9b4c7;
  --shadow-soft: 0 14px 40px #70374d0d;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 4px; }
.container { width: 100%; max-width: 1200px; margin: auto; padding: 0 28px; }
section { padding: 5.5rem 0; scroll-margin-top: 100px; }
h1, h2 { font-family: 'Lora', Georgia, serif; font-weight: 500; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-kicker { color: var(--primary-dark); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.3; letter-spacing: -.025em; margin: .65rem 0 1rem; }
.section-subtitle { color: var(--muted); max-width: 590px; margin: auto; font-size: .92rem; }
.skip-link { position: fixed; top: -90px; left: 16px; z-index: 300; background: #fff; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
/* Encabezado y navegación */
header { position: sticky; top: 0; z-index: 100; background: #fffcfcf5; border-bottom: 1px solid #f2e7eb; backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 82px; padding: .9rem 0; }
.logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #e9c6d3; color: var(--primary-dark); background: #fceef3; border-radius: 50%; }
.logo-text span { display: block; }
.logo-text span:first-child { font-size: .78rem; font-weight: 600; letter-spacing: .015em; }
.logo-text span:last-child { font-size: .63rem; letter-spacing: .2em; color: var(--muted); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; }
.nav-links a { position: relative; font-size: .8rem; font-weight: 500; color: var(--muted); padding: 8px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); }
.nav-links a.active::after { content: ''; position: absolute; width: 16px; height: 2px; background: var(--primary); bottom: 2px; left: 0; }
.nav-toggle { display: none; border: 1px solid #ead4dc; background: #fff; color: var(--primary-dark); border-radius: 12px; width: 44px; height: 44px; font-size: 1.1rem; flex-shrink: 0; }
/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.35rem; min-height: 48px; border-radius: var(--radius-pill); border: 1px solid transparent; font-family: 'Poppins', sans-serif; font-size: .82rem; line-height: 1.4; font-weight: 600; text-align: center; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.btn-primary { color: #fff; background: var(--primary-dark); box-shadow: 0 7px 16px #923e5a1a; }
.btn-primary:hover { background: #793047; box-shadow: 0 9px 22px #923e5a25; transform: translateY(-1px); }
.btn-secondary { color: var(--primary-dark); background: #fff; border-color: #dec3cd; }
.btn-secondary:hover, .btn-outline:hover { background: #fbedf2; }
.btn-outline { color: var(--primary-dark); background: transparent; border-color: #dfbecb; }
.nav-cta .btn { min-height: 42px; font-size: .75rem; padding: .7rem 1.1rem; }
/* Portada */
.hero { position: relative; padding: 4.5rem 0 4rem; background: radial-gradient(ellipse at 85% 35%, #f5dce5, transparent 52%), linear-gradient(120deg, #fffaf8, #fff7fa); }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 5rem; }
.hero-copy, .hero-visual { min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--primary-dark); font-size: .73rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.hero-kicker > span { width: 7px; height: 7px; background: #bf7b94; border-radius: 50%; }
.hero-title { font-size: clamp(2.5rem, 4.8vw, 4.05rem); line-height: 1.14; letter-spacing: -.04em; margin: 1.25rem 0 1.3rem; }
.hero-title em { color: var(--primary-dark); font-weight: 500; }
.hero-subtitle { font-size: 1rem; font-weight: 600; color: #66404f; margin-bottom: .65rem; }
.hero-text { color: var(--muted); font-size: .95rem; line-height: 1.85; max-width: 495px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 1rem; }
.hero-actions .fa-whatsapp { font-size: 1.1rem; }
.hero-location { display: inline-flex; align-items: center; gap: .5rem; color: #806775; font-size: .76rem; min-height: 36px; }
.hero-location:hover { color: var(--primary-dark); text-decoration: underline; }
.hero-badges { display: flex; gap: 1.3rem; flex-wrap: wrap; border-top: 1px solid #e9d7df; margin-top: 1.7rem; padding-top: 1.3rem; }
.hero-badge { display: flex; align-items: center; gap: .6rem; font-size: .66rem; color: #715d67; line-height: 1.6; }
.hero-badge > i { color: var(--primary); width: 18px; text-align: center; font-size: 1rem; }
.hero-visual { position: relative; padding: .6rem 0 1rem; }
.hero-image-card { position: relative; margin: 0; padding: 10px; border: 1px solid #ffffffc4; border-radius: 120px 120px 28px 28px; background: #ffffff70; box-shadow: 0 24px 60px #713c5012; }
.hero-photo { aspect-ratio: 4 / 4.5; overflow: hidden; border-radius: 110px 110px 22px 22px; background: #ddd8d3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.hero-floating-card { position: relative; display: flex; align-items: center; gap: .8rem; margin: -24px 16px 2px; padding: 1.15rem 1rem; background: #fff; border: 1px solid #f3e4e9; border-radius: 16px; box-shadow: 0 8px 22px #6633480a; }
.hero-caption-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--secondary); color: var(--primary-dark); }
.hero-floating-card strong { display: block; font-size: .79rem; font-weight: 600; }
.hero-floating-card > span > span { display: block; font-size: .65rem; color: var(--muted); margin-top: .25rem; }
.hero-visual-label { display: block; text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .6rem; color: #8a6d78; padding-top: 1rem; }
/* Trayectoria */
.sobre-mi-grid { display: grid; grid-template-columns: .8fr 1.3fr; align-items: start; gap: 4.5rem; }
.sobre-mi-photo { margin: .4rem 0 0; border-radius: 24px; overflow: hidden; background: #f8f0ed; border: 1px solid #eee4e0; }
.sobre-mi-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 65%; }
.sobre-mi-photo figcaption { padding: 1.2rem; text-align: center; font-size: .7rem; color: #785e69; }
.sobre-mi-text { min-width: 0; }
.sobre-mi-text .section-title { margin-top: .65rem; }
.sobre-mi-heading { font-size: 1rem; font-weight: 600; margin: 1.4rem 0 .35rem; }
.sobre-mi-text p { color: var(--muted); font-size: .87rem; margin: 0 0 1rem; }
.sobre-mi-text .sobre-mi-role { font-size: .74rem; line-height: 1.8; color: var(--primary-dark); }
.about-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.6rem 0; }
.about-highlights > div { background: #fff7f9; padding: 1rem .85rem; border: 1px solid #f0dfe6; border-radius: 14px; }
.about-highlights > div > span { font-size: .68rem; color: #b5748c; }
.about-highlights h4 { font-size: .74rem; font-weight: 600; line-height: 1.6; margin: .45rem 0 .4rem; }
.about-highlights p { font-size: .67rem; line-height: 1.65; margin: 0; }
.career-details { border-top: 1px solid #e8d6dd; border-bottom: 1px solid #e8d6dd; }
.career-details summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; color: var(--primary-dark); font-size: .85rem; font-weight: 600; cursor: pointer; list-style: none; }
.career-details summary::-webkit-details-marker { display: none; }
.career-toggle::before { content: '+'; font-size: 1.5rem; font-weight: 400; }
.career-details[open] .career-toggle::before { content: '−'; }
.career-content { padding: .25rem 0 1rem; }
.career-item { position: relative; padding: 0 0 .7rem 1.25rem; border-left: 1px solid #e7c6d2; }
.career-item::before { content: ''; position: absolute; left: -4px; top: .4rem; width: 7px; height: 7px; background: #b8758e; border-radius: 50%; }
.career-item h4 { font-size: .8rem; margin-bottom: .5rem; color: #77465a; }
.career-item p, .career-closing { font-size: .8rem; }

#servicios { scroll-margin-top: 100px; }
.services { background: linear-gradient(180deg, #fff9fb, #fff); }
.service-group {
  background: #fff;
  border: 1px solid #f0dce3;
  border-radius: var(--radius-lg);
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.service-group-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
  cursor: pointer;
  list-style: none;
}
.service-group-heading::-webkit-details-marker { display: none; }
.service-group-heading:hover { background: #fff5f8; }
.service-group-heading h3 { flex: 1; min-width: 0; font-size: 1.1rem; line-height: 1.5; }
.service-group-number { color: #91334e; font-weight: 600; font-size: .85rem; }
.service-count { color: #725b63; font-size: .75rem; white-space: nowrap; }
.service-expand {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--secondary);
  color: #91334e;
  text-align: center;
  line-height: 28px;
}
.service-expand::before { content: "+"; }
.service-group[open] .service-expand::before { content: "−"; }
.service-group[open] .service-group-heading { border-bottom: 1px solid #f5e7ec; }
.service-group-content { padding: 1.4rem; }
.service-group-description { color: #665960; margin-bottom: 1.3rem; font-size: .9rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid #f0dce3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover { border-color: #e9a7bb; box-shadow: 0 6px 20px #9b486014; }
.service-icon {
  width: 36px;
  height: 36px;
  background: var(--secondary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #91334e;
  margin-bottom: .75rem;
}
.service-title { font-weight: 600; font-size: .95rem; line-height: 1.5; margin-bottom: .5rem; }
.service-text { color: #665960; font-size: .85rem; line-height: 1.7; margin-bottom: 1rem; overflow-wrap: break-word; }
.service-consult {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #91334e;
  font-weight: 600;
  font-size: .8rem;
  min-height: 44px;
  margin-top: auto;
}
.service-consult:hover { text-decoration: underline; }
.service-consult:focus-visible, .service-group-heading:focus-visible {
  outline: 3px solid #91334e;
  outline-offset: -3px;
  border-radius: 8px;
}
.services-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-top: 2rem;
  background: #fceef3;
  border-radius: var(--radius-lg);
}
.services-help h3 { font-size: 1rem; margin-bottom: .3rem; }
.services-help p { font-size: .85rem; color: #665960; max-width: 550px; }
.services-help .btn { flex-shrink: 0; text-align: center; justify-content: center; }
@media (max-width: 768px) {
  .service-group-heading { flex-wrap: wrap; gap: .6rem; padding: 1rem; }
  .service-group-heading h3 { flex-basis: calc(100% - 65px); font-size: 1rem; }
  .service-count { margin-left: 1.9rem; }
  .service-expand { margin-left: auto; }
  .service-group-content { padding: 1rem; }
  .services-help { flex-direction: column; align-items: stretch; padding: 1.25rem; }
}


/* TESTIMONIOS: tarjetas alineadas y navegación manual */
.testimonials {
  padding: 5rem 0 3.5rem;
  background: radial-gradient(ellipse at top right, #f8dce6 0, transparent 50%), #fff6f9;
  scroll-margin-top: 90px;
}
.testimonial-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2rem; }
.testimonial-heading .section-title { font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.25; letter-spacing: -.035em; margin: .6rem 0 .9rem; color: #442c36; }
.testimonial-intro { color: #725c65; font-size: .95rem; max-width: 520px; }
.testimonial-heading-detail { display: flex; align-items: center; gap: 1rem; color: #8a5367; font-size: .8rem; line-height: 1.7; flex-shrink: 0; padding-bottom: .3rem; }
.testimonial-detail-line { height: 1px; width: 44px; background: #cf94a9; }
.testimonial-carousel { min-width: 0; }
.testimonial-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #d294aa transparent; padding: 6px 0 18px; }
.testimonial-carousel.is-ready .testimonial-viewport { scrollbar-width: none; }
.testimonial-carousel.is-ready .testimonial-viewport::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; align-items: stretch; gap: 24px; }
.testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  margin: 0;
  padding: 1.7rem;
  background: #fff;
  border: 1px solid #eedce3;
  border-radius: 22px;
  box-shadow: 0 6px 14px #72344c08;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: border-color .2s, box-shadow .2s;
}
.testimonial-card:hover { border-color: #dca8ba; box-shadow: 0 8px 18px #72344c10; }
.testimonial-card-top { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 1.2rem; }
.testimonial-stars { display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px; height: 20px; color: #b57c26; flex-shrink: 0; line-height: 1; }
.testimonial-stars svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
.testimonial-quote-mark { font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: #f1d5df; height: 32px; }
.testimonial-text { font-size: .95rem; line-height: 1.85; color: #57434d; margin: 0 0 1.6rem; font-style: normal; }
.testimonial-person { margin-top: auto; display: flex; align-items: center; gap: .85rem; padding-top: 1.25rem; border-top: 1px solid #f2e8ec; }
.testimonial-avatar { display: block; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; object-position: 50% 45%; background-color: #eddbd4; border: 2px solid #fff; box-shadow: 0 0 0 1px #ecd8df; }
.testimonial-identity { min-width: 0; }
.testimonial-name { display: block; font-weight: 600; color: #713c50; font-size: .9rem; }
.testimonial-navigation { display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0 1.25rem; }
.testimonial-carousel.is-ready .testimonial-navigation { display: flex; }
.testimonial-navigation-actions { display: flex; align-items: center; gap: .6rem; }
.carousel-status { font-size: .75rem; color: #795563; font-variant-numeric: tabular-nums; margin-right: .6rem; white-space: nowrap; }
.carousel-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #dfb9c7; border-radius: 50%; background: #fff; color: #8a3e59; cursor: pointer; }
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover:not(:disabled) { background: #8a3e59; color: #fff; border-color: #8a3e59; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-dots { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.carousel-dot { width: 28px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.carousel-dot::after { content: ''; width: 7px; height: 7px; border-radius: 99px; background: #d9b7c4; transition: width .2s, background .2s; }
.carousel-dot.active::after { width: 20px; background: #a24b6a; }
.testimonial-image-note { font-size: .72rem; line-height: 1.6; color: #7c6470; border-top: 1px solid #ecd6df; padding-top: 1.15rem; }
.testimonial-viewport:focus-visible, .carousel-btn:focus-visible, .carousel-dot:focus-visible { outline: 2px solid #91334e; outline-offset: 3px; }
@media (max-width: 992px) {
  .testimonial-card { flex-basis: calc((100% - 24px) / 2); }
  .testimonial-heading-detail { display: none; }
}
@media (max-width: 640px) {
  .testimonials { padding: 3rem 0 2.5rem; }
  .testimonial-card { flex-basis: 100%; padding: 1.5rem; }
  .testimonial-navigation { flex-wrap: wrap; }
  .testimonial-navigation-actions { margin-left: auto; }
  .carousel-dot { width: 24px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-card, .carousel-dot::after { transition: none; }
}


/* Búsqueda de servicios */
.service-search-tools { max-width: 740px; margin: 0 auto 2rem; }
.service-search-label { display: block; font-size: .84rem; font-weight: 500; margin-bottom: .7rem; }
.service-search-field { display: flex; align-items: center; gap: .85rem; padding: .4rem .5rem .4rem 1.1rem; border: 1px solid #dfc3ce; border-radius: 16px; background: #fff; box-shadow: 0 5px 20px #70374d05; }
.service-search-field:focus-within { border-color: var(--primary-dark); box-shadow: 0 0 0 3px #a7506e12; }
.service-search-field > i { font-size: .95rem; color: #9d6b7e; }
.service-search-field input { flex: 1; width: 100%; min-width: 0; min-height: 46px; border: 0; outline: none; background: transparent; color: var(--text); font-size: 16px; }
.service-search-field input::placeholder { color: #937f88; font-size: .82rem; }
.service-search-field button { flex-shrink: 0; min-height: 44px; padding: .5rem .7rem; border: 0; background: #f8eaf0; border-radius: 10px; color: var(--primary-dark); font-size: .73rem; }
.service-search-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .65rem; font-size: .69rem; color: var(--muted); }
#serviceSearchStatus { color: #864661; }
.service-empty { padding: 2rem; margin-bottom: 1.5rem; text-align: center; background: #fff; border: 1px dashed #d8b8c5; border-radius: var(--radius-lg); }
.service-empty h3 { font-size: 1rem; margin-bottom: .5rem; }
.service-empty p { color: var(--muted); font-size: .85rem; margin-bottom: 1.25rem; }
/* Contacto */
.contact { background: #fffdfc; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: stretch; }
.contact-card { padding: 2.2rem; border: 1px solid #ebd8df; border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.contact-title { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.3; margin: .7rem 0 1rem; letter-spacing: -.025em; }
.contact-intro { color: var(--muted); font-size: .86rem; max-width: 420px; }
.contact-list { list-style: none; margin: 1.5rem 0 1rem; }
.contact-list li { display: flex; align-items: baseline; gap: .75rem; color: #705765; font-size: .82rem; margin-bottom: .75rem; }
.contact-list i { width: 16px; flex: 0 0 16px; color: var(--primary); }
.contact-list a:hover { text-decoration: underline; }
.directions-link { display: inline-flex; align-items: center; gap: .6rem; padding: .3rem 0; color: var(--primary-dark); font-size: .78rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.contact-actions .btn { font-size: .75rem; padding: .7rem 1rem; }
.map-card { border: 1px solid #ebd8df; border-radius: 24px; overflow: hidden; background: #f8f0ed; }
.map-card iframe { display: block; border: 0; width: 100%; height: 100%; min-height: 380px; }
footer { padding: 2rem 0; background: #432c37; color: #f1dee6; text-align: center; font-size: .75rem; }
.mobile-contact-bar { display: none; }
/* Adaptación de la página */
@media (max-width: 1100px) {
  .hero-grid { gap: 2.5rem; }
  .sobre-mi-grid { gap: 2.5rem; }
}
@media (max-width: 1000px) {
  .nav { flex-wrap: wrap; min-height: 74px; }
  .nav-links { order: 3; flex-basis: 100%; align-items: stretch; flex-direction: column; gap: .15rem; }
  .nav-links a { padding: .7rem .5rem; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-links a:hover, .nav-links a.active { background: #fbedf2; }
  .nav-cta { display: none; order: 4; flex-basis: 100%; padding-bottom: .4rem; }
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .nav-links { display: none; }
  .js .nav-menu-open .nav-links, .js .nav-menu-open .nav-cta { display: flex; }
  .nav-menu-open { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; }
  .hero-grid { grid-template-columns: 1.12fr 1fr; gap: 2rem; }
  .hero-title { font-size: 2.75rem; }
  .hero-badges { gap: 1rem; }
  .hero-floating-card { margin-left: 5px; margin-right: 5px; padding: .9rem; }
  .sobre-mi-grid { grid-template-columns: .75fr 1fr; gap: 2rem; }
  .about-highlights { grid-template-columns: 1fr; }
  .about-highlights > div { display: grid; grid-template-columns: 26px 1fr; column-gap: .3rem; padding: .75rem; }
  .about-highlights > div > span { grid-row: 1 / 3; padding-top: .1rem; }
  .about-highlights h4 { margin: 0 0 .2rem; }
  .about-highlights p { grid-column: 2; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { padding: 1.7rem; }
}
@media (max-width: 768px) {
  html { scroll-padding-bottom: 100px; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .container { padding: 0 20px; }
  section { padding: 3.7rem 0; }
  .hero { padding: 2.6rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { text-align: center; }
  .hero-title { font-size: clamp(2.5rem, 8vw, 3.5rem); }
  .hero-text { max-width: 510px; margin: 0 auto; font-size: .88rem; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { width: 100%; max-width: 400px; margin: 0 auto; }
  .hero-photo { aspect-ratio: 4 / 4.4; }
  .hero-badges { margin-top: 1.1rem; gap: 1rem; }
  .hero-kicker { font-size: .65rem; }
  .sobre-mi-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sobre-mi-photo { max-width: 360px; margin: 0 auto; width: 100%; }
  .sobre-mi-photo img { aspect-ratio: 4 / 4.5; }
  .sobre-mi-text .section-title { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.6rem; }
  .map-card iframe { min-height: 300px; }
  .mobile-contact-bar { position: fixed; display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; bottom: 0; left: 0; right: 0; z-index: 90; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fffdfcf7; border-top: 1px solid #e9d2dc; box-shadow: 0 -5px 24px #65364b0a; backdrop-filter: blur(12px); }
  .mobile-contact-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 12px; min-height: 48px; padding: .6rem; font-size: .69rem; font-weight: 600; text-align: center; line-height: 1.4; }
  .mobile-contact-primary { background: var(--primary-dark); color: #fff; }
  .mobile-contact-directions { background: #f8eaf0; color: var(--primary-dark); }
  .mobile-contact-bar i { font-size: 1rem; }
  body.keyboard-active .mobile-contact-bar { display: none; }
}
@media (max-width: 380px) {
  .logo-text span:first-child { font-size: .68rem; }
  .logo-icon { width: 34px; height: 34px; }
  .nav { gap: .7rem; }
  .hero-actions { flex-direction: column; }
  .hero-badges { gap: .75rem; }
  .hero-badge { font-size: .58rem; gap: .35rem; }
  .hero-caption-icon { display: none; }
  .service-search-field { padding-left: .75rem; gap: .5rem; }
  .service-search-field input::placeholder { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
