/* =========================================================
   phconta · Landing para visitantes anónimos
   Se carga solo en la portada sin sesión (ver html.tpl.php).
   Todas las clases van con prefijo .phl para no chocar con Metronic.
   ========================================================= */

:root {
  --phl-ink: #26344b;         /* oscuro (mismo del header) */
  --phl-text: #3b4660;
  --phl-muted: #67809f;       /* azul secundario */
  --phl-line: #e5e8f1;
  --phl-bg: #ffffff;
  --phl-tint: #eef1f5;        /* fondo */
  --phl-primary: #3598dc;     /* azul primario */
  --phl-primary-d: #2a7fbb;
  --phl-primary-50: #e7f2fb;
  --phl-secondary: #67809f;   /* azul secundario */
  --phl-ok: #1fa3af;          /* verde #32c5d2 oscurecido para texto legible */
  --phl-green: #32c5d2;       /* verde */
  --phl-ok-50: #e2f7f9;
  --phl-warn: #d9480f;
  --phl-warn-50: #fff0e6;
  --phl-navy: #26344b;      /* color del header del tema original */
  --phl-navy-d: #26344b;
  --phl-radius: 18px;
  --phl-shadow: 0 1px 2px rgba(38, 52, 75, .05), 0 12px 32px -12px rgba(38, 52, 75, .18);
  --phl-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.phl-body {
  margin: 0;
  background: var(--phl-bg);
  color: var(--phl-text);
  font-family: var(--phl-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.phl-modal-open, body.phl-menu-open { overflow: hidden; }
.phl img { max-width: 100%; display: block; }
.phl a { color: inherit; }
.phl h1, .phl h2, .phl h3, .phl h4 { color: var(--phl-ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
.phl p { margin: 0; }
.phl-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.phl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--phl-font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.phl-btn:hover { transform: translateY(-1px); }
.phl-btn--sm { padding: 10px 18px; font-size: 14px; }
.phl-btn--lg { padding: 16px 28px; font-size: 16px; }
.phl-btn--block { width: 100%; }
.phl-btn--primary { background: var(--phl-primary); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(53, 152, 220, .6); }
.phl-btn--primary:hover { background: var(--phl-primary-d); }
.phl-btn--ghost { background: #fff; color: var(--phl-ink) !important; border-color: var(--phl-line); }
.phl-btn--ghost:hover { border-color: var(--phl-ink); }
.phl-btn--light { background: #fff; color: var(--phl-primary) !important; }
.phl-btn--outline-light { color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.phl-btn--outline-light:hover { border-color: #fff; }
.phl-btn:focus-visible, .phl a:focus-visible, .phl summary:focus-visible, .phl button:focus-visible {
  outline: 3px solid rgba(53, 152, 220, .45); outline-offset: 2px;
}
.phl-link { font-weight: 600; font-size: 15px; text-decoration: none; color: #fff !important; }
.phl-link:hover { color: #b9c3d6 !important; }

/* ---------- Header ---------- */
.phl-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--phl-navy);
  transition: box-shadow .2s;
}
.phl-header.is-scrolled { box-shadow: 0 8px 24px -10px rgba(38, 52, 75, .55); }
.phl-header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.phl-brand img { height: 34px; width: auto; }
.phl-nav { display: flex; align-items: center; gap: 28px; margin-right: auto; }
.phl-nav > a { font-weight: 600; font-size: 15px; text-decoration: none; color: #b9c3d6 !important; transition: color .2s; }
.phl-nav > a:hover { color: #fff !important; }
.phl-nav__mobile-cta { display: none; }
.phl-header__cta { display: flex; align-items: center; gap: 20px; }
.phl-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; margin-left: auto; cursor: pointer; }
.phl-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.phl-menu-open .phl-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.phl-menu-open .phl-burger span:nth-child(2) { opacity: 0; }
.phl-menu-open .phl-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mensajes de Drupal ---------- */
.phl-messages { padding-top: 16px; }
.phl-messages .messages { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--phl-line); background: var(--phl-tint); font-size: 15px; }
.phl-messages .messages.error { background: var(--phl-warn-50); border-color: #ffc9a8; color: #8a2c06; }
.phl-messages .messages.status { background: var(--phl-ok-50); border-color: #a6e5eb; color: #146d75; }
.phl-messages .messages ul { margin: 0; padding-left: 18px; }
.phl-messages .element-invisible { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; height: 1px; }

/* ---------- Hero ---------- */
.phl-hero {
  position: relative; overflow: hidden; padding: 72px 0 96px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(53, 152, 220, .10), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(15, 168, 119, .08), transparent 60%);
}
.phl-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.phl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--phl-primary-50); color: var(--phl-primary-d); font-weight: 700; font-size: 13px;
}
.phl-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--phl-primary); box-shadow: 0 0 0 4px rgba(53, 152, 220, .18); }
.phl-hero h1 { margin-top: 20px; font-size: clamp(36px, 5vw, 58px); font-weight: 800; }
.phl-hero h1 em { font-style: normal; color: var(--phl-primary); }
.phl-lead { margin-top: 20px; font-size: 19px; max-width: 34em; color: var(--phl-text); }
.phl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.phl-hero__checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--phl-muted); }
.phl-hero__checks li, .phl-includes li { position: relative; padding-left: 24px; }
.phl-hero__checks li::before, .phl-includes li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--phl-ok-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2332c5d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Mockups */
.phl-hero__visual { position: relative; min-height: 500px; }
.phl-mock { position: absolute; background: #fff; border: 1px solid var(--phl-line); box-shadow: var(--phl-shadow); }
.phl-mock--dash { top: 0; left: 0; right: 178px; border-radius: 14px; overflow: hidden; }

/* Réplica del panel de phconta */
.phl-app { font-family: "Open Sans", var(--phl-font); background: #eef1f5; }
.phl-app__top { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: var(--phl-navy); }
.phl-app__logo { font: 800 15px var(--phl-font); color: #e3e7ee; letter-spacing: -.01em; }
.phl-app__co { font-size: 13px; font-weight: 300; color: #8796ad; }
.phl-app__icons { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.phl-app__icons i { width: 12px; height: 12px; border: 1.5px solid #a9b4c6; border-radius: 3px; }
.phl-app__icons i.av { width: 18px; height: 18px; border-radius: 50%; border: 0; background: #d5dbe5; }
.phl-app__body { padding: 10px; display: grid; gap: 8px; }
.phl-app__card { background: #fff; border-radius: 4px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(38, 52, 75, .05); }
.phl-app__card--title { text-align: center; font-size: 11px; font-weight: 700; color: var(--phl-secondary); padding: 7px; letter-spacing: .04em; }
.phl-app__h { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #eef1f5; font-size: 10px; font-weight: 700; color: var(--phl-secondary); letter-spacing: .02em; }
.phl-app__h .ic-bars { width: 10px; height: 9px; background: linear-gradient(90deg, var(--phl-secondary) 0 2px, transparent 2px 4px, var(--phl-secondary) 4px 6px, transparent 6px 8px, var(--phl-secondary) 8px 10px); clip-path: polygon(0 40%, 20% 40%, 20% 0, 40% 0, 40% 60%, 60% 60%, 60% 20%, 80% 20%, 80% 100%, 0 100%); }
.phl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phl-tile { position: relative; overflow: hidden; padding: 10px 10px 9px; border-radius: 3px; color: #fff; text-align: right; }
.phl-tile b { display: block; font-size: 17px; font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
.phl-tile span { display: block; font-size: 9.5px; font-weight: 400; opacity: .95; }
.phl-tile svg { position: absolute; left: -4px; bottom: -8px; width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 2.4; opacity: .18; }
.phl-tile--green { background: #32c5d2; }
.phl-tile--blue { background: #3598dc; }
.phl-tile--orange { background: #e87e04; }
.phl-tile--red { background: #e7505a; }
.phl-app__svg { display: block; width: 100%; height: 104px; overflow: visible; }
.phl-app__svg .g line { stroke: #e6e9ee; stroke-width: .8; }
.phl-app__svg .a { fill: #3fd09a; opacity: .85; }
.phl-app__svg .l { fill: none; stroke: #2bb985; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.phl-app__svg .d circle { fill: #2bb985; }
.phl-app__svg .b rect { fill: #d9262d; }
.phl-app__svg .ax { stroke: #c9ced6; stroke-width: .8; }
.phl-app__svg .m text { font-size: 6.5px; fill: #7a8699; text-anchor: middle; }
.phl-app__legend { display: flex; justify-content: center; gap: 14px; margin-top: 6px; font-size: 9px; color: #555; }
.phl-app__legend span::before { content: ""; display: inline-block; width: 9px; height: 7px; margin-right: 4px; vertical-align: -1px; }
.phl-app__legend .t::before { background: #3fd09a; }
.phl-app__legend .s::before { background: #d9262d; }

.phl-rows em, .phl-mini em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.phl em.ok { background: var(--phl-ok-50); color: var(--phl-ok); }
.phl em.due { background: var(--phl-warn-50); color: var(--phl-warn); }
.phl em.draft { background: var(--phl-primary-50); color: var(--phl-primary); }

.phl-mock--phone {
  right: -10px; bottom: -40px; width: 200px; padding: 9px; border-radius: 32px;
  background: var(--phl-ink); border: 0; box-shadow: 0 30px 60px -20px rgba(38, 52, 75, .55);
}
.phl-phone__notch { width: 66px; height: 16px; border-radius: 0 0 11px 11px; background: var(--phl-ink); margin: -9px auto 0; position: relative; z-index: 1; }
.phl-phone__screen { background: #fff; border-radius: 24px; padding: 18px 13px 14px; margin-top: -7px; }

/* Réplica de la factura (vista móvil) */
.phl-inv { font-family: "Open Sans", var(--phl-font); font-size: 9.5px; color: #333; line-height: 1.45; }
.phl-inv__co { font-size: 13px; font-weight: 700; color: #2f353b; letter-spacing: .01em; }
.phl-inv__num { text-align: right; font-size: 13px; font-weight: 700; color: #2f353b; margin-top: 2px; }
.phl-inv__num em { font-style: normal; color: #e7505a; }
.phl-inv__sec { margin-top: 8px; padding-bottom: 3px; border-bottom: 1px solid #d9dde3; font-size: 10px; font-weight: 300; color: #555; letter-spacing: .02em; }
.phl-inv__client { margin-top: 4px; color: #337ab7; }
.phl-inv__muted { color: #444; }
.phl-inv__row { display: grid; grid-template-columns: 62px 1fr; margin-top: 2px; }
.phl-inv__table { margin-top: 8px; border: 1px solid #e7ecf1; }
.phl-inv__th { display: flex; justify-content: space-between; padding: 5px 7px; background: #e1e5ec; font-weight: 700; color: #333; }
.phl-inv__tr { display: flex; justify-content: space-between; gap: 6px; padding: 5px 7px; border-top: 1px solid #e7ecf1; background: #fbfcfd; }
.phl-inv__tr a { display: block; color: #337ab7; }
.phl-inv__tr small { display: block; color: #555; font-size: 8.5px; }
.phl-inv__total { display: flex; justify-content: space-between; margin-top: 8px; padding: 6px 7px; background: #e1e5ec; font-weight: 700; font-size: 11px; color: #2f353b; }

.phl-toast {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: #fff; border: 1px solid var(--phl-line); border-radius: 14px; box-shadow: var(--phl-shadow);
  font-size: 12px; animation: phl-float 6s ease-in-out infinite;
}
.phl-toast b { display: block; color: var(--phl-ink); font-size: 12.5px; }
.phl-toast span { color: var(--phl-muted); }
.phl-toast i { width: 32px; height: 32px; border-radius: 10px; flex: none; background-position: center; background-repeat: no-repeat; background-size: 18px; }
.phl-toast i.ok { background-color: var(--phl-ok-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2l3 3 6-6' fill='none' stroke='%2332c5d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.phl-toast i.mail { background-color: var(--phl-primary-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v12H4zM4 7l8 6 8-6' fill='none' stroke='%233598dc' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.phl-toast--a { right: 6px; top: 24px; }
.phl-toast--b { left: -28px; bottom: -36px; animation-delay: -3s; }
.phl-toast--pay { display: block; min-width: 200px; padding: 10px 14px; }
.phl-toast--pay small { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 700; color: #9aa5b5; letter-spacing: .03em; }
.phl-pay { margin-top: 7px; height: 8px; border-radius: 99px; background: #e1e5ec; overflow: hidden; }
.phl-pay i { display: block; height: 100%; background: #337ab7; border-radius: 99px; }
@keyframes phl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Franja ---------- */
.phl-strip { border-top: 1px solid var(--phl-line); border-bottom: 1px solid var(--phl-line); background: #fff; }
.phl-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.phl-strip__grid div { padding: 28px 24px; border-left: 1px solid var(--phl-line); }
.phl-strip__grid div:first-child { border-left: 0; padding-left: 0; }
.phl-strip b { display: block; color: var(--phl-ink); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.phl-strip span { font-size: 14px; color: var(--phl-muted); }

/* ---------- Secciones ---------- */
.phl-section { padding: 104px 0; }
.phl-section--tint { background: var(--phl-tint); }
.phl-section--dark { background: var(--phl-navy-d); color: #c4cbe0; }
.phl-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.phl-head--left { text-align: left; margin: 0; }
.phl-kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--phl-primary-d); }
.phl-head h2 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.phl-head p { margin-top: 16px; font-size: 18px; color: var(--phl-muted); }
.phl-head p a { color: var(--phl-primary); font-weight: 700; }
.phl-head--light h2 { color: #fff; }
.phl-head--light p { color: #a6afca; }
.phl-head--light .phl-kicker { color: var(--phl-green); }

/* ---------- Tarjetas de funciones ---------- */
.phl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.phl-cards > * { min-width: 0; }
.phl-card {
  padding: 28px; border-radius: var(--phl-radius); background: #fff; border: 1px solid var(--phl-line);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.phl-card:hover { box-shadow: var(--phl-shadow); border-color: transparent; transform: translateY(-3px); }
.phl-card--accent { border-color: #bfdcf2; background: linear-gradient(160deg, var(--phl-primary-50), #fff 70%); }
.phl-card--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: linear-gradient(135deg, #fff 40%, var(--phl-primary-50)); }
.phl-card h3 { font-size: 19px; font-weight: 800; margin-top: 18px; }
.phl-card p { margin-top: 8px; font-size: 15px; color: var(--phl-muted); }
.phl-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--phl-primary-50); }
.phl-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--phl-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.phl-mini { background: #fff; border: 1px solid var(--phl-line); border-radius: 14px; padding: 16px; box-shadow: 0 10px 24px -16px rgba(38, 52, 75, .3); font-size: 13px; }
.phl-mini__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.phl-mini__head b { color: var(--phl-ink); }
.phl-mini__line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--phl-line); }
.phl-mini__arrow { margin-top: 12px; padding: 9px; border-radius: 10px; background: var(--phl-primary); color: #fff; text-align: center; font-weight: 700; }
.phl-mini--mail { display: grid; gap: 10px; }
.phl-mini__mail { display: flex; align-items: center; gap: 10px; }
.phl-mini__mail + .phl-mini__mail { padding-top: 10px; border-top: 1px solid var(--phl-line); }
.phl-mini__mail i { width: 34px; height: 34px; border-radius: 50%; background: var(--phl-primary-50); flex: none; }
.phl-mini__mail div { flex: 1; min-width: 0; }
.phl-mini__mail b { display: block; color: var(--phl-ink); }
.phl-mini__mail span { display: block; color: var(--phl-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phl-mini__mail em { background: var(--phl-ok-50); color: var(--phl-ok); }
.phl-mini--brand { display: flex; gap: 14px; align-items: stretch; }
.phl-mini__doc { flex: 1; border: 1px solid var(--phl-line); border-radius: 10px; overflow: hidden; }
.phl-mini__doc-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--brand, var(--phl-primary)); color: #fff; font-weight: 800; font-size: 12px; transition: background .3s; }
.phl-mini__doc-top i { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .35); }
.phl-mini__doc-body { padding: 10px 12px; display: grid; gap: 6px; }
.phl-mini__doc-body span { height: 6px; border-radius: 3px; background: var(--phl-line); }
.phl-mini__doc-body span:nth-child(2) { width: 70%; } .phl-mini__doc-body span:nth-child(3) { width: 45%; }
.phl-mini__side { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.phl-mini__swatches { display: grid; grid-template-columns: repeat(2, 22px); gap: 8px; }
.phl-mini__swatches button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--phl-line); cursor: pointer; padding: 0; }
.phl-mini__swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--phl-ink); }
.phl-mini__pdf { font-size: 11px; font-weight: 800; color: var(--phl-warn); background: var(--phl-warn-50); border-radius: 6px; padding: 4px 6px; text-align: center; }

/* ---------- Pasos ---------- */
.phl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.phl-steps li { position: relative; padding: 32px; border-radius: var(--phl-radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); }
.phl-steps__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--phl-primary); color: #fff; font-weight: 800; font-size: 18px; }
.phl-steps h3 { color: #fff; font-size: 20px; margin-top: 20px; }
.phl-steps p { margin-top: 8px; font-size: 15px; }

/* ---------- Planes ---------- */
.phl-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.phl-plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--phl-radius); background: #fff; border: 1px solid var(--phl-line); }
.phl-plan h3 { font-size: 17px; font-weight: 700; color: var(--phl-muted); }
.phl-plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.phl-plan__price b { font-size: 36px; font-weight: 800; color: var(--phl-ink); letter-spacing: -.03em; }
.phl-plan__price span { color: var(--phl-muted); font-weight: 600; }
.phl-plan__note { margin: 6px 0 24px !important; font-size: 13.5px; color: var(--phl-muted); flex: 1; }
.phl-plan__note s { color: #a3abc2; }
.phl-plan--best { border: 2px solid var(--phl-primary); box-shadow: 0 24px 48px -24px rgba(53, 152, 220, .5); }
.phl-plan--best h3 { color: var(--phl-primary); }
.phl-plan__badge { position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px; background: var(--phl-primary); color: #fff; font-size: 12px; font-weight: 800; }
.phl-includes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; list-style: none; margin: 40px 0 0; padding: 0; font-weight: 600; color: var(--phl-ink); font-size: 15px; }

/* ---------- FAQ ---------- */
.phl-faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.phl-faq__list details { border-bottom: 1px solid var(--phl-line); }
.phl-faq__list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 700; font-size: 17px; color: var(--phl-ink);
}
.phl-faq__list summary::-webkit-details-marker { display: none; }
.phl-faq__list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--phl-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%2326344b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .2s;
}
.phl-faq__list details[open] summary::after { transform: rotate(45deg); }
.phl-faq__list details p { padding: 0 40px 22px 0; color: var(--phl-muted); }

/* ---------- CTA ---------- */
.phl-cta { padding: 0 0 104px; }
.phl-cta__box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px; border-radius: 28px; color: #e6f2fb;
  background: radial-gradient(500px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(120deg, var(--phl-primary-d), var(--phl-primary));
}
.phl-cta__box h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.phl-cta__box p { margin-top: 10px; font-size: 18px; }
.phl-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.phl-footer { background: var(--phl-navy); padding: 64px 0 0; font-size: 15px; color: #9ca8bf; }
.phl-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.phl-footer__brand img { height: 32px; width: auto; }
.phl-footer__brand p { margin-top: 14px; max-width: 28em; color: #9ca8bf; }
.phl-footer h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.phl-footer__grid a { display: block; padding: 4px 0; text-decoration: none; color: #b9c3d6 !important; }
.phl-footer__grid a:hover { color: #fff !important; }
.phl-footer__legal { margin-top: 48px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8693ab; }

/* ---------- Modal de login ---------- */
.phl-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.phl-modal[hidden] { display: none; }
.phl-modal__backdrop { position: absolute; inset: 0; background: rgba(38, 52, 75, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.phl-modal__panel {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto;
  padding: 36px 32px 28px; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -20px rgba(38, 52, 75, .5);
  animation: phl-pop .22s ease-out;
}
@keyframes phl-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.phl-modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--phl-tint); font-size: 22px; line-height: 1; cursor: pointer; color: var(--phl-ink); }
.phl-modal h2 { font-size: 24px; font-weight: 800; }
.phl-modal__panel > p { margin-top: 6px; color: var(--phl-muted); }
.phl-modal__alt { margin-top: 18px !important; text-align: center; font-size: 14px; }
.phl-modal__alt a { color: var(--phl-primary); font-weight: 700; }

/* Formulario user_login_block de Drupal */
.phl-login-form { margin-top: 22px; }
.phl-login-form .form-item { margin: 0 0 16px; }
.phl-login-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--phl-ink); }
.phl-login-form .form-required { color: var(--phl-warn); }
.phl-login-form input.form-text {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--phl-line); border-radius: 12px;
  font: 500 15px var(--phl-font); color: var(--phl-ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.phl-login-form input.form-text:focus { outline: 0; border-color: var(--phl-primary); box-shadow: 0 0 0 4px rgba(53, 152, 220, .14); }
.phl-login-form .item-list ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.phl-login-form .item-list li { margin: 0; padding: 0; }
.phl-login-form .item-list a { color: var(--phl-primary); font-weight: 600; text-decoration: none; }
.phl-login-form .item-list li:first-child { display: none; } /* "Crear cuenta" ya aparece abajo */
.phl-login-form .form-actions { margin: 0; }
.phl-login-form input.form-submit {
  width: 100%; height: 50px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--phl-primary); color: #fff; font: 700 16px var(--phl-font);
  box-shadow: 0 8px 20px -8px rgba(53, 152, 220, .6); transition: background .2s;
}
.phl-login-form input.form-submit:hover { background: var(--phl-primary-d); }
.phl-login-form .description { font-size: 12px; color: var(--phl-muted); margin-top: 4px; }

/* ---------- Animación de entrada ---------- */
.phl.js-ready .phl-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.phl.js-ready .phl-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phl *, .phl *::before, .phl *::after { animation: none !important; transition: none !important; }
  .phl.js-ready .phl-reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .phl-nav { gap: 20px; }
  .phl-plans { grid-template-columns: repeat(2, 1fr); }
  .phl-toast--a { left: 0; }
}

@media (max-width: 960px) {
  .phl-burger { display: block; }
  .phl-header__cta { display: none; }
  .phl-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; margin: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px;
    background: var(--phl-navy); border-top: 1px solid rgba(255, 255, 255, .08); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .phl-menu-open .phl-nav { opacity: 1; visibility: visible; transform: none; }
  .phl-nav > a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #e3e8f1 !important; }
  .phl-nav__mobile-cta .phl-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .35); }
  .phl-nav__mobile-cta { display: grid; gap: 12px; margin-top: 24px; }

  .phl-hero { padding: 48px 0 72px; }
  .phl-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .phl-hero__visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .phl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phl-card--wide { grid-column: span 2; }
  .phl-steps { grid-template-columns: 1fr; }
  .phl-faq { grid-template-columns: 1fr; gap: 24px; }
  .phl-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .phl-strip__grid div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .phl-strip__grid div:nth-child(n+3) { border-top: 1px solid var(--phl-line); }
  .phl-footer__grid { grid-template-columns: 1fr 1fr; }
  .phl-footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .phl-wrap { padding: 0 16px; }
  .phl-section { padding: 72px 0; }
  .phl-head { margin-bottom: 40px; }
  .phl-lead { font-size: 17px; }
  .phl-hero__actions .phl-btn { flex: 1 1 100%; }
  .phl-hero__visual { min-height: 600px; }
  .phl-mock--dash { right: 0; }
  .phl-toast--a { display: none; }
  .phl-tile b { font-size: 14px; }
  .phl-tile span { font-size: 8.5px; }
  .phl-mock--phone { width: 168px; right: -6px; bottom: -10px; }
  .phl-inv { font-size: 8.5px; }
  .phl-toast--b { display: none; }

  .phl-cards, .phl-plans { grid-template-columns: minmax(0, 1fr); }
  .phl-card--wide { grid-column: auto; grid-template-columns: 1fr; }
  .phl-cta__box { padding: 36px 24px; border-radius: 22px; }
  .phl-cta__actions, .phl-cta__actions .phl-btn { width: 100%; }
  .phl-footer__grid { grid-template-columns: 1fr; }
  .phl-footer__brand { grid-column: auto; }
  .phl-strip__grid { grid-template-columns: 1fr; }
  .phl-strip__grid div { border-left: 0 !important; padding: 18px 0 !important; }
  .phl-strip__grid div + div { border-top: 1px solid var(--phl-line); }
}

/* =========================================================
   Páginas internas sin sesión (blog, contacto, registro...)
   Aquí convive con el CSS de Metronic, por eso algunos !important.
   ========================================================= */
body.phl-inner-body { margin: 0; padding: 0 !important; background: var(--phl-tint) !important; }
.phl { font-family: var(--phl-font); }
.phl-header a, .phl-footer a, .phl-modal a { text-decoration: none !important; }
.phl-header ul, .phl-footer ul { margin: 0; }
.phl-nav > a.is-active { color: #fff !important; box-shadow: inset 0 -2px 0 var(--phl-primary); padding-bottom: 4px; }

.phl-inner { display: block; padding: 48px 0 88px; min-height: 60vh; }
.phl-inner__wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.phl-inner__title {
  margin: 0 0 24px !important; font-family: var(--phl-font) !important; font-size: clamp(28px, 3.4vw, 40px) !important;
  font-weight: 800 !important; letter-spacing: -.02em; line-height: 1.15 !important; color: var(--phl-ink) !important;
}
.phl-inner__highlighted { margin-bottom: 24px; }
.phl-inner__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.phl-inner__grid.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.phl-inner__card {
  min-width: 0; padding: 40px; border-radius: var(--phl-radius); background: #fff;
  border: 1px solid #e1e6ee; box-shadow: 0 1px 2px rgba(38, 52, 75, .04);
}
.phl-inner__sidebar { min-width: 0; padding: 28px; border-radius: var(--phl-radius); background: #fff; border: 1px solid #e1e6ee; }
.phl-inner__card > *:last-child { margin-bottom: 0; }

/* Mensajes de Drupal */
.phl-inner__messages { margin-bottom: 24px; }
.phl-inner__messages .messages { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--phl-line); background: var(--phl-tint); }
.phl-inner__messages .messages.error { background: var(--phl-warn-50); border-color: #ffc9a8; color: #8a2c06; }
.phl-inner__messages .messages.status { background: var(--phl-ok-50); border-color: #a6e5eb; color: #146d75; }
.phl-inner__messages .messages ul { margin: 0; padding-left: 18px; }

/* Pestañas de Drupal (Iniciar sesión / Crear cuenta / Contraseña) */
.phl-inner__tabs { margin-bottom: 28px; }
.phl-inner__tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 4px; list-style: none; border: 0; background: var(--phl-tint); border-radius: 999px; width: fit-content; max-width: 100%; }
.phl-inner__tabs ul.tabs li { margin: 0; padding: 0; float: none; border: 0; }
.phl-inner__tabs ul.tabs li a {
  display: block; padding: 8px 18px; border: 0 !important; border-radius: 999px; background: transparent;
  color: var(--phl-secondary) !important; font: 700 14px var(--phl-font); text-decoration: none !important;
}
.phl-inner__tabs ul.tabs li a:hover { color: var(--phl-ink) !important; background: rgba(255, 255, 255, .6); }
.phl-inner__tabs ul.tabs li.active a, .phl-inner__tabs ul.tabs li a.active { background: #fff; color: var(--phl-ink) !important; box-shadow: 0 1px 3px rgba(38, 52, 75, .12); }
.phl-inner__tabs ul.tabs.secondary { display: none; }

/* Formularios en páginas públicas (registro, login, contacto) */
.phl-inner__card form .form-item { margin: 0 0 18px; }
.phl-inner__card form label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--phl-ink); }
.phl-inner__card form input.form-text,
.phl-inner__card form input[type="email"],
.phl-inner__card form input[type="password"],
.phl-inner__card form select,
.phl-inner__card form textarea {
  width: 100%; max-width: 560px; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--phl-line); border-radius: 12px;
  color: var(--phl-ink); font-size: 15px; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.phl-inner__card form textarea { max-width: 100%; }
.phl-inner__card form input:focus, .phl-inner__card form select:focus, .phl-inner__card form textarea:focus {
  outline: 0; border-color: var(--phl-primary); box-shadow: 0 0 0 4px rgba(53, 152, 220, .15);
}
.phl-inner__card form .description { margin-top: 6px; font-size: 13px; color: var(--phl-muted); }
.phl-inner__card form input.form-submit {
  min-height: 34px; padding: 0 28px; border: 0; cursor: pointer;
  background: var(--phl-primary); color: #fff; font: 700 15px var(--phl-font);
  box-shadow: 0 8px 20px -8px rgba(53, 152, 220, .6); transition: background .2s;
}
.phl-inner__card form input.form-submit:hover { background: var(--phl-primary-d); }

@media (max-width: 960px) {
  .phl-inner__grid.has-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .phl-inner { padding: 32px 0 64px; }
  .phl-inner__wrap { padding: 0 16px; }
  .phl-inner__card { padding: 24px 20px; }
}

/* ---------- Botón flotante WhatsApp ---------- */
.phl-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
  border-radius: 999px; background: #25d366; color: #fff !important; text-decoration: none !important;
  font: 700 15px var(--phl-font); box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .65), 0 2px 6px rgba(38, 52, 75, .18);
  transition: transform .2s, box-shadow .2s;
}
.phl-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(37, 211, 102, .75), 0 2px 6px rgba(38, 52, 75, .18); }
.phl-wa svg { width: 26px; height: 26px; flex: none; }
.phl-wa svg path { fill: #fff; }
.phl-wa svg circle { fill: #25d366; }
.phl-wa span { white-space: nowrap; }
.phl-menu-open .phl-wa, .phl-modal-open .phl-wa { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .phl-wa { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .phl-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.phl-inner .element-invisible { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); overflow: hidden; height: 1px; width: 1px; }
@media (max-width: 640px) { .phl-inner__tabs ul.tabs { border-radius: 18px; } }
