/* ============================================================
   Dra. Noelia Fernández Báez — coloproctomx.com
   Sitio estático · Paleta teal de la marca (#207070)
   ============================================================ */

:root {
  --primary: #207070;
  --primary-dark: #035d63;
  --primary-deep: #0d3d3d;
  --primary-soft: #e8f3f2;
  --accent: #48a9a6;
  --ink: #1f2d2d;
  --muted: #5b6b6b;
  --line: #d9e6e5;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(13, 61, 61, .12);
  --radius: 10px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--primary-deep); }

.container { width: min(1170px, 92%); margin: 0 auto; }

.section { padding: 80px 0; }
.section.alt { background: var(--primary-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .kicker {
  display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.section-head .titleline {
  width: 90px; height: 4px; margin: 16px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  position: relative;
}
.section-head p { color: var(--muted); margin-top: 18px; }

.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: .5px; padding: 13px 32px; border-radius: 50px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; cursor: pointer; transition: all .25s;
}
.btn:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--primary); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--primary-dark); }
.btn.light:hover { background: transparent; color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--primary-deep); color: #cfe3e2; font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #9fd4d1; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; margin-right: 22px; }
.topbar svg { width: 15px; height: 15px; fill: var(--accent); flex-shrink: 0; }
.topbar .tb-right { display: flex; align-items: center; gap: 18px; }

.lang-switch { display: flex; align-items: center; gap: 4px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.22); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px;
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .5px;
  color: #cfe3e2 !important; opacity: .55; transition: opacity .2s, background .2s;
}
.lang-btn:hover { opacity: .9; }
.lang-btn.active { opacity: 1; background: rgba(255,255,255,.12); color: #fff !important; }
.lang-btn .flag { width: 18px; height: 12px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* ---------- Header ---------- */
.site-header {
  background: #fff; position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 14px rgba(13, 61, 61, .08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 10px 16px; border-radius: 6px;
}
.nav a:hover { color: var(--primary); }
.nav a.active { color: var(--primary); font-weight: 600; }
.nav .btn { margin-left: 12px; padding: 11px 26px; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--primary-dark); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; }
.slide {
  display: none; position: relative; min-height: 520px;
  background-size: cover; background-position: center;
}
.slide.active { display: block; animation: fadeIn .9s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,61,61,.82) 0%, rgba(13,61,61,.55) 45%, rgba(13,61,61,.12) 100%);
}
.slide .container { position: relative; z-index: 2; display: flex; align-items: center; min-height: 520px; }
.slide-content { max-width: 560px; color: #fff; padding: 60px 0; }
.slide-content .kicker {
  font-family: var(--font-head); font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: #9fd4d1; font-weight: 600; display: block; margin-bottom: 12px;
}
.slide-content h1, .slide-content h2 {
  color: #fff; font-size: clamp(28px, 4.6vw, 46px); font-weight: 700; margin-bottom: 16px;
}
.slide-content p { font-size: 17px; color: #e4f0ef; margin-bottom: 28px; }
.slide-content .btn + .btn { margin-left: 12px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 22px; line-height: 1;
  transition: background .2s; backdrop-filter: blur(2px);
}
.hero-arrow:hover { background: var(--primary); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.45); transition: .2s;
}
.hero-dots button.active { background: #fff; transform: scale(1.25); }

/* ---------- Contact strip cards ---------- */
.contact-strip { position: relative; z-index: 10; margin-top: -55px; }
.contact-strip .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 26px; display: flex; gap: 18px; align-items: flex-start;
  border-bottom: 4px solid var(--primary);
}
.info-card .icon {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary-soft); display: grid; place-items: center;
}
.info-card .icon svg { width: 26px; height: 26px; fill: var(--primary); }
.info-card h3 { font-size: 17px; margin-bottom: 4px; }
.info-card p { font-size: 14.5px; color: var(--muted); }
.info-card p strong { color: var(--primary-dark); font-size: 16px; }

/* ---------- Feature boxes ---------- */
.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 30px; text-align: center; transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .icon {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center;
}
.feature .icon svg { width: 34px; height: 34px; fill: #fff; }
.feature h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: .5px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 55px; align-items: center; }
.about .photo { position: relative; }
.about .photo img {
  border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
  background: #fff;
}
.about .photo::after {
  content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: var(--radius); background: var(--primary-soft);
}
.about .kicker {
  font-family: var(--font-head); font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 600; display: block; margin-bottom: 10px;
}
.about h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 20px; }
.about p { color: var(--muted); margin-bottom: 16px; }
.about ul.creds { list-style: none; margin: 22px 0 30px; }
.about ul.creds li { padding: 7px 0 7px 34px; position: relative; color: var(--ink); font-size: 15.5px; }
.about ul.creds li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-1.2 14.6-4.2-4.2 1.7-1.7 2.5 2.5 5.2-5.2 1.7 1.7z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-1.2 14.6-4.2-4.2 1.7-1.7 2.5 2.5 5.2-5.2 1.7 1.7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Services grid ---------- */
.services .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.svc-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(13,61,61,.08); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card .thumb { height: 210px; overflow: hidden; }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.svc-card:hover .thumb img { transform: scale(1.06); }
.svc-card .body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.svc-card h3 { font-size: 19px; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 15px; flex: 1; }
.svc-card .more { margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.svc-card .more::after { content: ' →'; }

/* ---------- Service list (página servicios) ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.svc-item {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: 8px; padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start;
  transition: box-shadow .25s, transform .25s;
}
.svc-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-item .icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary-soft); display: grid; place-items: center;
}
.svc-item .icon svg { width: 22px; height: 22px; fill: var(--primary); }
.svc-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.svc-item p { font-size: 14.5px; color: var(--muted); }

/* ---------- Page header (interior) ---------- */
.page-header {
  position: relative; background: var(--primary-deep) center/cover no-repeat;
  padding: 90px 0; text-align: center; color: #fff;
}
.page-header::before { content: ''; position: absolute; inset: 0; background: rgba(13,61,61,.78); }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); }
.page-header .crumb { margin-top: 10px; font-size: 14.5px; color: #b9d8d6; }
.page-header .crumb a { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 60px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.cta-band p { color: #d8ecea; }

/* ---------- Gallery ---------- */
.gallery .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(13,61,61,.1); }
.gallery img { width: 100%; height: 240px; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 45px; align-items: start; }
.contact-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.contact-panel h3 { font-size: 21px; margin-bottom: 18px; }
.contact-panel .row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-panel .row:last-of-type { border-bottom: none; }
.contact-panel .row .icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary-soft); display: grid; place-items: center;
}
.contact-panel .row .icon svg { width: 21px; height: 21px; fill: var(--primary); }
.contact-panel .row h4 { font-size: 15.5px; margin-bottom: 2px; }
.contact-panel .row p { font-size: 14.5px; color: var(--muted); }

.form-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.form-panel h3 { font-size: 21px; margin-bottom: 6px; }
.form-panel .note { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-panel label { font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--primary-deep); display: block; margin-bottom: 6px; }
.form-panel input, .form-panel textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: #fbfdfd;
  transition: border-color .2s;
}
.form-panel input:focus, .form-panel textarea:focus { outline: none; border-color: var(--primary); }
.form-panel textarea { min-height: 140px; resize: vertical; }
.form-panel .btn { margin-top: 20px; width: 100%; }

.map-wrap { margin-top: 60px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Testimonios / Opiniones ---------- */
.reviews { background: linear-gradient(180deg, var(--primary-soft) 0%, #fff 100%); }
.rating-banner {
  display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.rating-score {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow); padding: 18px 28px;
}
.rating-score .num { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.rating-score .stars { color: #f5a623; font-size: 22px; letter-spacing: 3px; line-height: 1.2; }
.rating-score .count { font-size: 13.5px; color: var(--muted); }
.rating-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-cert {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 50px; padding: 9px 18px; font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--primary-dark);
}
.badge-cert svg { width: 18px; height: 18px; fill: #f5a623; }

.review-carousel { position: relative; max-width: 820px; margin: 0 auto; }
.review-slide {
  display: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 42px 48px 34px; text-align: center; position: relative;
}
.review-slide.active { display: block; animation: fadeIn .7s ease; }
.review-slide .quote-mark {
  font-family: Georgia, serif; font-size: 70px; line-height: .5; color: var(--accent);
  display: block; margin-bottom: 18px;
}
.review-slide p.text { font-size: 17.5px; color: var(--ink); font-style: italic; margin-bottom: 20px; }
.review-slide .stars { color: #f5a623; font-size: 17px; letter-spacing: 3px; margin-bottom: 8px; }
.review-slide .author { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); font-size: 15px; }
.review-slide .source { font-size: 12.5px; color: var(--muted); }
.review-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.review-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer;
  background: #bcd6d4; transition: .2s;
}
.review-dots button.active { background: var(--primary); transform: scale(1.25); }
.reviews .cta-link { text-align: center; margin-top: 30px; }

/* ---------- Publicaciones ---------- */
.pub-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pub-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 20px; align-items: flex-start;
  transition: box-shadow .25s, transform .25s;
}
.pub-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pub-card .date {
  flex-shrink: 0; width: 74px; text-align: center; background: var(--primary-soft);
  border-radius: 10px; padding: 12px 8px; font-family: var(--font-head);
}
.pub-card .date .y { display: block; font-size: 20px; font-weight: 700; color: var(--primary-dark); line-height: 1.1; }
.pub-card .date .m { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pub-card h3 { font-size: 17.5px; margin-bottom: 6px; }
.pub-card .venue { font-size: 14px; color: var(--accent); font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; }
.pub-card p { font-size: 14.5px; color: var(--muted); }
.pub-card .more { display: inline-block; margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.pub-card .more::after { content: ' →'; }
.pub-empty {
  text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 60px 30px; color: var(--muted); grid-column: 1 / -1;
}
.pub-empty svg { width: 54px; height: 54px; fill: var(--accent); margin-bottom: 14px; }
.pub-empty h3 { margin-bottom: 8px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-deep); color: #b9d1d0; font-size: 14.5px; }
.site-footer .cols {
  display: grid; grid-template-columns: 4fr 3fr 3fr; gap: 40px; padding: 60px 0 40px;
}
.site-footer h4 {
  color: #fff; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px;
  position: relative; padding-bottom: 10px;
}
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; border-radius: 2px; background: var(--accent); }
.site-footer p { margin-bottom: 10px; }
.site-footer a { color: #d8ecea; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 5px 0; }
.site-footer .f-logo { background: #fff; border-radius: 8px; padding: 10px 14px; display: inline-block; margin-bottom: 16px; }
.site-footer .f-logo img { height: 44px; }
.site-footer .social { display: flex; gap: 12px; margin-top: 16px; }
.site-footer .social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; transition: background .2s;
}
.site-footer .social a:hover { background: var(--primary); }
.site-footer .social svg { width: 19px; height: 19px; fill: #fff; }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: 13.5px; color: #8fb0af;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .contact-strip .grid, .features .grid, .services .grid, .gallery .grid { grid-template-columns: 1fr 1fr; }
  .about .wrap, .contact-wrap { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .contact-strip { margin-top: -30px; }
}

@media (max-width: 767px) {
  .topbar .tb-item.hide-sm { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85%); background: #fff;
    flex-direction: column; align-items: flex-start; padding: 90px 30px 30px; gap: 4px;
    box-shadow: -10px 0 40px rgba(0,0,0,.15); transform: translateX(110%); transition: transform .3s;
  }
  .nav.open { transform: translateX(0); }
  .nav a { width: 100%; padding: 13px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 18px 0 0; width: 100%; text-align: center; border-radius: 8px; }
  .nav-toggle { display: block; position: relative; z-index: 400; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .contact-strip .grid, .features .grid, .services .grid, .svc-list, .gallery .grid, .form-grid, .site-footer .cols, .pub-list { grid-template-columns: 1fr; }
  .review-slide { padding: 32px 24px 28px; }
  .slide, .slide .container { min-height: 480px; }
  .section { padding: 60px 0; }
  .hero-arrow { display: none; }
  .brand img { height: 44px; }
}
