/* Centro Psicológico Morell — Estilos Clínicos y Modernos
   Identidad visual basada en el Logo Oficial:
   Púrpura/Violeta Real (#54337d) y Rosa/Magenta Médico (#e84384). */

:root {
  --violet-primary: #54337d;
  --violet-dark: #3a1f59;
  --violet-deep: #25123b;
  --violet-light: #f6effc;
  --violet-border: #e6d7f2;
  
  --rose-primary: #e84384;
  --rose-dark: #cc2a6b;
  --rose-light: #fdf2f7;
  --rose-border: #fad0e1;

  --wa-green: #25D366;
  --wa-dark: #128C7E;

  --bg-page: #faf8fc;
  --bg-tint: #f4eff8;
  --bg-card: #ffffff;
  
  --ink: #2b2034;
  --muted: #675872;
  --muted-light: #94869e;
  --border: #ede4f3;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(37, 18, 59, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(37, 18, 59, 0.1);
  --shadow-lg: 0 16px 36px -8px rgba(37, 18, 59, 0.15);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg-page); line-height: 1.65; font-size: 1.05rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose-primary); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--violet-deep); line-height: 1.25; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 660px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--rose-primary); margin-bottom: .6rem; }
.lead { font-size: 1.18rem; color: var(--muted); line-height: 1.6; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--violet-deep); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--rose-primary); outline-offset: 2px; border-radius: 4px; }

.demo-banner { background: #fff3cd; color: #856404; text-align: center; font-size: .88rem; padding: .45rem 1rem; border-bottom: 1px solid #ffeeba; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1.4rem; border-radius: var(--radius-full); font-weight: 600; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: all .2s ease; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--violet-primary), var(--violet-dark)); color: #fff; box-shadow: 0 6px 18px rgba(84, 51, 125, .28); }
.btn-primary:hover { background: linear-gradient(135deg, var(--rose-primary), var(--rose-dark)); color: #fff; box-shadow: 0 8px 22px rgba(232, 67, 132, .32); }
.btn-ghost { border-color: var(--violet-primary); color: var(--violet-primary); background: transparent; }
.btn-ghost:hover { background: var(--violet-primary); color: #fff; }
.btn-intranet { background: var(--violet-deep); color: #fff; padding: .55rem 1.15rem; font-size: .92rem; }
.btn-intranet:hover { background: var(--rose-primary); color: #fff; }
.btn-whatsapp-hero { background: var(--wa-green); color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .25); }
.btn-whatsapp-hero:hover { background: var(--wa-dark); color: #fff; }
.btn-sm { padding: .45rem .95rem; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-outline-danger { border-color: #d32f2f; color: #d32f2f; background: transparent; }
.btn-outline-danger:hover { background: #d32f2f; color: #fff; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: var(--radius-full); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.badge-rose { background: var(--rose-light); color: var(--rose-primary); border: 1px solid var(--rose-border); }
.badge-purple { background: var(--violet-light); color: var(--violet-primary); border: 1px solid var(--violet-border); }
.badge-subtle { background: var(--bg-tint); color: var(--muted); }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--violet-deep); }
.brand-logo { border-radius: 50%; object-fit: cover; box-shadow: 0 3px 10px rgba(84, 51, 125, 0.16); border: 2px solid #fff; }
.brand-text { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--violet-deep); }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav > a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .98rem; position: relative; }
.main-nav > a:not(.btn):hover { color: var(--rose-primary); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--violet-deep); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 2px solid var(--border); padding: .75rem 1.5rem 1.5rem; display: none; box-shadow: var(--shadow-md); }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--border); }
  .main-nav .btn { margin-top: .75rem; }
  .btn-intranet-mobile { display: inline-flex; margin-left: auto; padding: .45rem .95rem; font-size: .9rem; }
  .main-nav .btn-intranet { display: none; }
}
@media (min-width: 941px) { .btn-intranet-mobile { display: none; } }
@media (max-width: 480px) { .brand-text { font-size: 1.05rem; } }

/* Hero Portada */
.hero { padding: clamp(3rem, 6vw, 5.5rem) 0; background: radial-gradient(900px 500px at 10% 10%, #fdf2f7 0%, transparent 60%), radial-gradient(800px 500px at 90% 90%, #f6effc 0%, transparent 60%), var(--bg-page); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--rose-border); padding: .35rem .9rem; border-radius: var(--radius-full); font-size: .84rem; font-weight: 600; color: var(--rose-dark); margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 0 3px rgba(37, 211, 102, .25); }
.hero-slogan { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--rose-primary); font-weight: 600; margin-bottom: .8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; color: var(--muted); font-size: .92rem; font-weight: 500; }
.trust-list li { display: flex; align-items: center; gap: .45rem; }
.trust-list svg { width: 18px; height: 18px; stroke: var(--rose-primary); }

.hero-image-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid #fff; }
.hero-image-card img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.hero-floating-badge { position: absolute; bottom: 18px; left: 18px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); padding: .75rem 1.1rem; border-radius: var(--radius-md); display: flex; align-items: center; gap: .75rem; box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,0.8); }
.hero-floating-badge .badge-icon { font-size: 1.5rem; }

/* Secciones */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-top { align-items: start; grid-template-columns: 1.25fr 1fr; }
.split-media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 3px solid #fff; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.check-list li { padding-left: 2rem; position: relative; font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--rose-light); color: var(--rose-primary); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* Carrusel de Servicios Interactivo */
.slider-wrapper { position: relative; display: flex; align-items: center; gap: .75rem; }
.slider-track { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding: 1rem .25rem; width: 100%; }
.slider-track::-webkit-scrollbar { display: none; }
.slide-card { flex: 0 0 calc(33.333% - 1rem); min-width: 290px; scroll-snap-align: start; background: #fff; border-radius: var(--radius-lg); padding: 1.8rem; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.slide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rose-border); }
.slide-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--violet-light); display: grid; place-items: center; position: relative; }
.card-icon::after { content: ""; position: absolute; inset: 12px; background: var(--violet-primary); -webkit-mask: var(--icon) center/contain no-repeat; mask: var(--icon) center/contain no-repeat; }
.slide-card h3 { font-size: 1.35rem; color: var(--violet-deep); margin-bottom: .6rem; }
.slide-card p { color: var(--muted); font-size: .96rem; line-height: 1.6; flex: 1; }
.slide-card-footer { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.btn-select-service { display: inline-flex; font-weight: 700; font-size: .92rem; color: var(--rose-primary); transition: gap .2s; }
.btn-select-service:hover { color: var(--violet-primary); }

.slider-btn { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1.5px solid var(--border); color: var(--violet-deep); display: grid; place-items: center; cursor: pointer; transition: all .2s; box-shadow: var(--shadow-sm); flex-shrink: 0; z-index: 2; }
.slider-btn:hover { background: var(--violet-primary); color: #fff; border-color: var(--violet-primary); transform: scale(1.05); }
.slider-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.slider-indicators { display: flex; justify-content: center; gap: .5rem; margin-top: 1.8rem; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--border); cursor: pointer; transition: all .25s ease; padding: 0; }
.slider-dot.active { background: var(--rose-primary); width: 28px; border-radius: var(--radius-full); }

@media (max-width: 980px) {
  .slide-card { flex: 0 0 calc(50% - .7rem); }
}
@media (max-width: 640px) {
  .slide-card { flex: 0 0 100%; min-width: auto; }
  .slider-btn { display: none; }
}

/* Iconos de servicios SVG mask */
.icon-person { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
.icon-couple { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='16' cy='8' r='3'/%3E%3Cpath d='M2 20c0-3 3-5 6-5s6 2 6 5M10 20c0-3 3-5 6-5s6 2 6 5'/%3E%3C/svg%3E"); }
.icon-family { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='7' cy='6' r='2.5'/%3E%3Ccircle cx='17' cy='6' r='2.5'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M3 20c0-4 2-7 4-7s3 1 3 1M21 20c0-4-2-7-4-7s-3 1-3 1M9 21c0-2 1-4 3-4s3 2 3 4'/%3E%3C/svg%3E"); }
.icon-child { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='7' r='3'/%3E%3Cpath d='M7 21l1-7h8l1 7M5 12l3-2M19 12l-3-2'/%3E%3C/svg%3E"); }
.icon-mind { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E"); }
.icon-video { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='M16 10l6-3v10l-6-3'/%3E%3C/svg%3E"); }
.icon-leaf { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15'/%3E%3Cpath d='M5 19l7-7'/%3E%3C/svg%3E"); }

/* Proceso clínico */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.step-card { background: #fff; padding: 2.2rem 1.8rem; border-radius: var(--radius-lg); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); position: relative; }
.step-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--rose-primary); opacity: .4; line-height: 1; margin-bottom: .8rem; display: block; }
.step-card h3 { color: var(--violet-deep); font-size: 1.25rem; }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; }
.member { text-align: center; background: #fff; border-radius: var(--radius-lg); padding: 2.2rem 1.6rem; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.avatar { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.2rem; border: 3px solid var(--rose-light); }
.avatar-initials { display: grid; place-items: center; background: linear-gradient(135deg, var(--violet-light), var(--rose-light)); color: var(--violet-primary); font-family: var(--serif); font-size: 2rem; font-weight: 700; }
.member h3 { font-size: 1.2rem; margin-bottom: .3rem; color: var(--violet-deep); }
.member-role { color: var(--rose-primary); font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }

/* Formulario */
.form { background: #fff; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius-xl); border: 1.5px solid var(--border); box-shadow: var(--shadow-md); margin-top: 1.5rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--violet-deep); }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .78rem .95rem; border-radius: var(--radius-md); border: 1.5px solid var(--border); background: var(--bg-page); color: var(--ink); transition: all .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet-primary); background: #fff; box-shadow: 0 0 0 3px rgba(84, 51, 125, .12); outline: none; }
.field-highlight { animation: highlight-pulse 1.5s ease; }
@keyframes highlight-pulse { 0% { border-color: var(--rose-primary); box-shadow: 0 0 0 4px var(--rose-border); } 100% { border-color: var(--border); } }
.field.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.field.checkbox input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--rose-primary); }
.field.checkbox label { font-weight: 400; flex: 1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Contacto y Mapa */
.contact-card { background: linear-gradient(145deg, var(--violet-deep), var(--violet-dark)); color: #f4effa; border-radius: var(--radius-xl); padding: clamp(1.8rem, 3vw, 2.5rem); box-shadow: var(--shadow-lg); }
.contact-card h2 { color: #fff; font-size: 1.7rem; }
.contact-card a { color: #fce4ec; }
.contact-card a:hover { color: #fff; text-decoration: underline; }
.contact-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rose-border); margin-top: 1.1rem; }
.contact-list dd { margin: .25rem 0 0; font-size: .98rem; }
.link-whatsapp-highlight { color: #80e2a7 !important; font-weight: 700; font-size: 1.05rem; }
.note-lock { display: flex; align-items: center; gap: .4rem; margin-top: 1.4rem; color: #d0c4db; }

/* Mapa embebido */
.map-embed-box { margin-top: 1.5rem; background: rgba(255, 255, 255, 0.08); padding: 1rem; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.12); }
.map-embed-title { font-weight: 600; font-size: .92rem; margin-bottom: .6rem; color: #fff; }
.map-btn { margin-top: .75rem; border-color: rgba(255, 255, 255, 0.4); color: #fff !important; }
.map-btn:hover { background: #fff; color: var(--violet-deep) !important; text-decoration: none !important; }

/* Botón flotante interactivo de WhatsApp */
.whatsapp-floating { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; align-items: center; gap: 12px; }
.whatsapp-btn { width: 62px; height: 62px; border-radius: 50%; background: var(--wa-green); color: #fff !important; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.whatsapp-btn:hover { transform: scale(1.08); background: #20bd5a; box-shadow: 0 10px 28px rgba(37, 211, 102, .6); }
.whatsapp-pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--wa-green); animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1); pointer-events: none; }
@keyframes pulse-ring { 0% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1.3); opacity: 0; } 100% { transform: scale(0.95); opacity: 0; } }

.whatsapp-bubble { background: #fff; border-radius: var(--radius-md); padding: .7rem 1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border); max-width: 240px; cursor: pointer; transition: opacity .3s, transform .3s; }
.whatsapp-bubble-title { font-size: .78rem; font-weight: 700; color: var(--rose-primary); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .15rem; }
.whatsapp-bubble-text { font-size: .88rem; font-weight: 600; color: var(--violet-deep); margin: 0; line-height: 1.35; }
.whatsapp-bubble.bubble-minimized { opacity: 0; transform: translateX(20px); pointer-events: none; }

/* Intranet Login & Dashboard */
.auth-card { max-width: 440px; margin: 3rem auto; background: #fff; border-radius: var(--radius-xl); padding: 2.5rem; border: 1.5px solid var(--border); box-shadow: var(--shadow-lg); text-align: center; }
.auth-logo { border-radius: 50%; margin: 0 auto 1rem; box-shadow: var(--shadow-md); border: 3px solid var(--violet-light); }
.auth-form { text-align: left; margin: 1.5rem 0; }
.auth-footer { border-top: 1px solid var(--border); padding-top: 1.2rem; }

.dashboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.dashboard-actions { display: flex; gap: .75rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.kpi-card { background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.kpi-num { font-size: 2.4rem; font-weight: 700; font-family: var(--serif); line-height: 1; margin-bottom: .4rem; }
.color-rose { color: var(--rose-primary); }
.color-purple { color: var(--violet-primary); }
.color-green { color: #2e7d32; }
.kpi-label { font-size: .88rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.module-card { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: center; }
.module-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center; flex-shrink: 0; }
.icon-purple { background: var(--violet-light); color: var(--violet-primary); }
.icon-rose { background: var(--rose-light); color: var(--rose-primary); }
.icon-teal { background: #e0f2f1; color: #00796b; }
.module-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }

.table-card { background: #fff; border-radius: var(--radius-xl); border: 1.5px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden; }
.table-head { padding: 1.8rem; border-bottom: 1px solid var(--border); }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
.data-table th { background: var(--bg-tint); padding: .9rem 1.2rem; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); }
.data-table td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.status-pill { display: inline-block; padding: .25rem .65rem; border-radius: var(--radius-full); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.status-nueva { background: #ffebee; color: #c62828; }
.status-contactada { background: #e3f2fd; color: #1565c0; }
.status-agendada { background: #e8f5e9; color: #2e7d32; }
.status-descartada { background: #eeeeee; color: #616161; }
.small-select { font-size: .84rem; padding: .35rem .6rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; }

/* Alertas */
.alerts { margin-bottom: 1.5rem; }
.alert { padding: .9rem 1.2rem; border-radius: var(--radius-md); font-size: .95rem; margin-bottom: .75rem; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* Pie */
.site-footer { background: #fff; padding: 4rem 0 2rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-size: 1.35rem; color: var(--violet-deep); font-weight: 700; margin-bottom: .4rem; }
.footer-title { font-weight: 700; color: var(--violet-deep); margin-bottom: .6rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer p { margin-bottom: .45rem; font-size: .94rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-grid, .split, .split-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 580px) {
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-bubble { display: none; }
}
