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

   :root {
     --green-deep: #0d3b2e;
     --green-mid: #1a6b4a;
     --green-light: #2ea87a;
     --green-pale: #d4f0e4;
     --cream: #f8f5ef;
     --white: #ffffff;
     --text-dark: #0d2018;
     --text-muted: #5a7a6a;
     --accent: #f0a500;
   }

   html {
     scroll-behavior: smooth;
   }

   body {
     font-family: 'DM Sans', sans-serif;
     background: var(--cream);
     color: var(--text-dark);
     overflow-x: hidden;
   }

   /* decorative blobs */
   body::before {
     content: '';
     position: fixed;
     top: -180px;
     right: -180px;
     width: 520px;
     height: 520px;
     border-radius: 50%;
     background: radial-gradient(circle, rgba(46, 168, 122, .18) 0%, transparent 70%);
     pointer-events: none;
     z-index: 0;
   }

   body::after {
     content: '';
     position: fixed;
     bottom: -200px;
     left: -150px;
     width: 480px;
     height: 480px;
     border-radius: 50%;
     background: radial-gradient(circle, rgba(13, 59, 46, .12) 0%, transparent 70%);
     pointer-events: none;
     z-index: 0;
   }

   /* ── HEADER ── */
   header {
     position: sticky;
     top: 0;
     z-index: 100;
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 48px;
     height: 72px;
     background: rgba(248, 245, 239, .85);
     backdrop-filter: blur(14px);
     border-bottom: 1px solid rgba(46, 168, 122, .15);
   }

   .logo {
     display: flex;
     align-items: center;
     gap: 10px;
   }

   .logo-icon {
     width: 36px;
     height: 36px;
     background: var(--green-mid);
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
   }

   .logo-icon svg {
     width: 20px;
     height: 20px;
     fill: white;
   }

   .logo h2 {
     font-family: 'DM Serif Display', serif;
     font-size: 1.55rem;
     color: var(--green-deep);
     letter-spacing: -.5px;
   }

   nav {
     display: flex;
     gap: 6px;
   }

   nav a {
     font-size: .875rem;
     font-weight: 500;
     color: var(--text-muted);
     text-decoration: none;
     padding: 12px 18px;
     border-radius: 50px;
     transition: background .2s, color .2s;
   }

   nav a:hover {
     background: var(--green-pale);
     color: var(--green-mid);
   }

   nav a.active {
     background: var(--green-deep);
     color: var(--white);
   }

   .nav-cta {
     background: var(--green-mid) !important;
     color: white !important;
     font-weight: 600 !important;
   }

   .nav-cta:hover {
     background: var(--green-deep) !important;
   }

   /* ── HERO ── */
   .hero {
     position: relative;
     z-index: 1;
     display: grid;
     grid-template-columns: 1fr 1fr;
     align-items: center;
     min-height: calc(100vh - 72px);
     max-width: 1200px;
     margin: 0 auto;
     padding: 60px 60px;
     gap: 60px;
   }

   .logoo {
     width: 70px;
     height: 70px;
   }

   /* LEFT */
   .texto {
     display: flex;
     flex-direction: column;
     gap: 28px;
   }

   .tag-pill {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     background: var(--green-pale);
     color: var(--green-mid);
     font-size: .73rem;
     font-weight: 600;
     letter-spacing: .1em;
     text-transform: uppercase;
     padding: 7px 16px;
     border-radius: 50px;
     width: fit-content;
   }

   .tag-pill .dot {
     width: 7px;
     height: 7px;
     border-radius: 50%;
     background: var(--green-light);
   }

   .texto h1 {
     font-family: 'DM Serif Display', serif;
     font-size: clamp(2.4rem, 4.5vw, 3.8rem);
     line-height: 1.05;
     color: var(--green-deep);
     letter-spacing: -.02em;
   }

   .texto h1 em {
     font-style: italic;
     color: var(--green-mid);
   }

   .texto p {
     font-size: 1.05rem;
     font-weight: 300;
     color: var(--text-muted);
     line-height: 1.8;
     max-width: 440px;
   }

   .hero-actions {
     display: flex;
     align-items: center;
     gap: 16px;
     flex-wrap: wrap;
   }

   .btn-primary {
     display: inline-flex;
     align-items: center;
     gap: 10px;
     background: var(--green-deep);
     color: white;
     font-family: 'DM Sans', sans-serif;
     font-size: .95rem;
     font-weight: 600;
     padding: 15px 30px;
     border-radius: 50px;
     text-decoration: none;
     transition: background .2s, transform .15s;
     box-shadow: 0 8px 24px rgba(13, 59, 46, .2);
   }

   .btn-primary:hover {
     background: var(--green-mid);
     transform: translateY(-2px);
   }

   .btn-primary svg {
     width: 16px;
     height: 16px;
     fill: white;
   }

   .btn-ghost {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     color: var(--green-mid);
     font-size: .9rem;
     font-weight: 500;
     text-decoration: none;
     padding: 14px 24px;
     border-radius: 50px;
     border: 1.5px solid rgba(46, 168, 122, .35);
     transition: background .2s, border-color .2s;
   }

   .btn-ghost:hover {
     background: var(--green-pale);
     border-color: var(--green-mid);
   }

   /* Trust badges */
   .trust-row {
     display: flex;
     align-items: center;
     gap: 20px;
     flex-wrap: wrap;
     padding-top: 8px;
   }

   .trust-item {
     display: flex;
     align-items: center;
     gap: 7px;
     font-size: .78rem;
     color: var(--text-muted);
   }

   .trust-item svg {
     width: 15px;
     height: 15px;
     flex-shrink: 0;
   }

   .trust-divider {
     width: 1px;
     height: 18px;
     background: rgba(46, 168, 122, .2);
   }

   /* RIGHT: image card */
   .imagen {
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
   }

   /* Decorative background circle */
   .imagen::before {
     content: '';
     position: absolute;
     width: 90%;
     height: 90%;
     border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
     background: var(--green-pale);
     animation: morphBlob 8s ease-in-out infinite;
     z-index: 0;
   }

   @keyframes morphBlob {

     0%,
     100% {
       border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
     }

     33% {
       border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%;
     }

     66% {
       border-radius: 50% 50% 60% 40% / 55% 45% 45% 55%;
     }
   }

   .imagen img {
     position: relative;
     z-index: 1;
     width: 100%;
     max-width: 460px;
     filter: drop-shadow(0 20px 40px rgba(13, 59, 46, .15));
     animation: floatImg 5s ease-in-out infinite;
   }

   @keyframes floatImg {

     0%,
     100% {
       transform: translateY(0);
     }

     50% {
       transform: translateY(-12px);
     }
   }

   /* floating stat cards */
   .stat-float {
     position: absolute;
     z-index: 2;
     background: white;
     border-radius: 16px;
     padding: 14px 18px;
     display: flex;
     align-items: center;
     gap: 12px;
     box-shadow: 0 12px 32px rgba(13, 59, 46, .12);
     border: 1px solid rgba(46, 168, 122, .15);
     animation: floatCard 6s ease-in-out infinite;
   }

   .stat-float:nth-child(2) {
     top: 12%;
     left: -20px;
     animation-delay: 0s;
   }

   .stat-float:nth-child(3) {
     bottom: 16%;
     right: -10px;
     animation-delay: 1.5s;
   }

   @keyframes floatCard {

     0%,
     100% {
       transform: translateY(0);
     }

     50% {
       transform: translateY(-8px);
     }
   }

   .stat-icon {
     width: 38px;
     height: 38px;
     border-radius: 10px;
     background: var(--green-pale);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
   }

   .stat-icon svg {
     width: 18px;
     height: 18px;
   }

   .stat-val {
     font-family: 'DM Serif Display', serif;
     font-size: 1.2rem;
     color: var(--green-deep);
     line-height: 1;
   }

   .stat-lbl {
     font-size: .7rem;
     color: var(--text-muted);
     margin-top: 2px;
   }

   /* ── FEATURES STRIP ── */
   .features {
     position: relative;
     z-index: 1;
     background: var(--green-deep);
     padding: 48px 60px;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 0;
   }

   .feat-item {
     display: flex;
     align-items: flex-start;
     gap: 18px;
     padding: 0 40px;
     border-right: 1px solid rgba(255, 255, 255, .08);
   }

   .feat-item:first-child {
     padding-left: 0;
   }

   .feat-item:last-child {
     border-right: none;
   }

   .feat-icon {
     width: 48px;
     height: 48px;
     flex-shrink: 0;
     border-radius: 14px;
     background: rgba(46, 168, 122, .2);
     display: flex;
     align-items: center;
     justify-content: center;
   }

   .feat-icon svg {
     width: 22px;
     height: 22px;
     fill: var(--green-light);
   }

   .feat-body h4 {
     font-family: 'DM Serif Display', serif;
     font-size: 1.05rem;
     color: white;
     margin-bottom: 6px;
   }

   .feat-body p {
     font-size: .82rem;
     color: rgba(255, 255, 255, .5);
     line-height: 1.6;
   }

   /* ── HOW IT WORKS ── */
   .how {
     position: relative;
     z-index: 1;
     max-width: 1200px;
     margin: 0 auto;
     padding: 100px 60px;
     text-align: center;
   }

   .section-label {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     background: var(--green-pale);
     color: var(--green-mid);
     font-size: .72rem;
     font-weight: 600;
     letter-spacing: .12em;
     text-transform: uppercase;
     padding: 7px 16px;
     border-radius: 50px;
     margin-bottom: 20px;
   }

   .how h2 {
     font-family: 'DM Serif Display', serif;
     font-size: clamp(1.8rem, 3vw, 2.8rem);
     color: var(--green-deep);
     margin-bottom: 60px;
   }

   .steps-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 28px;
   }

   .step-card {
     background: white;
     border-radius: 24px;
     padding: 36px 28px;
     border: 1px solid rgba(46, 168, 122, .1);
     box-shadow: 0 4px 20px rgba(13, 59, 46, .05);
     text-align: left;
     transition: transform .25s, box-shadow .25s;
     position: relative;
     overflow: hidden;
   }

   .step-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 16px 40px rgba(13, 59, 46, .1);
   }

   .step-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, var(--green-light), var(--green-mid));
   }

   .step-number {
     font-family: 'DM Serif Display', serif;
     font-size: 3rem;
     color: var(--green-pale);
     line-height: 1;
     margin-bottom: 16px;
   }

   .step-card h4 {
     font-size: 1rem;
     font-weight: 600;
     color: var(--green-deep);
     margin-bottom: 10px;
   }

   .step-card p {
     font-size: .85rem;
     color: var(--text-muted);
     line-height: 1.7;
   }

   /* ── FOOTER ── */
   footer {
     position: relative;
     z-index: 1;
     background: var(--green-deep);
     padding: 40px 60px;
     display: flex;
     align-items: center;
     justify-content: space-between;
   }

   .footer-logo {
     font-family: 'DM Serif Display', serif;
     font-size: 1.3rem;
     color: white;
     letter-spacing: -.5px;
   }

   footer p {
     font-size: .8rem;
     color: rgba(255, 255, 255, .35);
   }


   .profile-wrap {
     position: relative;
   }

   .profile-btn {
     display: flex;
     align-items: center;
     gap: 9px;
     background: var(--green-pale);
     border: 1.5px solid rgba(46, 168, 122, .25);
     border-radius: 50px;
     padding: 6px 14px 6px 8px;
     cursor: pointer;
     transition: background .2s, border-color .2s;
     font-family: 'DM Sans', sans-serif;
   }

   .profile-btn:hover {
     background: #c3e8d6;
     border-color: var(--green-light);
   }

   .profile-avatar {
     width: 30px;
     height: 30px;
     border-radius: 50%;
     background: var(--green-mid);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
   }

   .profile-avatar svg {
     width: 16px;
     height: 16px;
     fill: white;
   }

   .profile-name {
     font-size: .82rem;
     font-weight: 600;
     color: var(--green-deep);
     max-width: 100px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
   }

   .profile-chevron {
     width: 14px;
     height: 14px;
     fill: var(--green-mid);
     transition: transform .22s;
     flex-shrink: 0;
   }

   .profile-wrap.open .profile-chevron {
     transform: rotate(180deg);
   }

   /* ── DROPDOWN PANEL ── */
   .profile-dropdown {
     position: absolute;
     top: calc(100% + 10px);
     right: 0;
     width: 260px;
     background: var(--white);
     border: 1px solid rgba(46, 168, 122, .15);
     border-radius: 18px;
     box-shadow: 0 16px 48px rgba(13, 59, 46, .12), 0 4px 12px rgba(13, 59, 46, .06);
     padding: 6px;
     opacity: 0;
     pointer-events: none;
     transform: translateY(8px) scale(.97);
     transform-origin: top right;
     transition: opacity .2s, transform .2s;
     z-index: 200;
   }

   .profile-wrap.open .profile-dropdown {
     opacity: 1;
     pointer-events: all;
     transform: translateY(0) scale(1);
   }

   /* user info card inside dropdown */
   .dd-user {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 14px 12px 12px;
     border-bottom: 1px solid rgba(46, 168, 122, .1);
     margin-bottom: 4px;
   }

   .dd-avatar-lg {
     width: 42px;
     height: 42px;
     border-radius: 12px;
     background: var(--green-pale);
     border: 1.5px solid rgba(46, 168, 122, .2);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
   }

   .dd-avatar-lg svg {
     width: 22px;
     height: 22px;
     fill: var(--green-mid);
   }

   .dd-user-info .dd-nombre {
     font-size: .9rem;
     font-weight: 600;
     color: var(--green-deep);
     line-height: 1.2;
   }

   .dd-user-info .dd-doc {
     font-size: .74rem;
     color: var(--text-muted);
     margin-top: 2px;
   }

   /* menu items */
   .dd-item {
     display: flex;
     align-items: center;
     gap: 11px;
     padding: 10px 12px;
     border-radius: 11px;
     text-decoration: none;
     font-size: .86rem;
     font-weight: 500;
     color: var(--text-dark);
     transition: background .18s, color .18s;
     cursor: pointer;
     border: none;
     background: none;
     width: 100%;
     font-family: 'DM Sans', sans-serif;
     text-align: left;
   }

   .dd-item:hover {
     background: var(--green-pale);
     color: var(--green-mid);
   }

   .dd-item svg {
     width: 17px;
     height: 17px;
     fill: var(--text-muted);
     flex-shrink: 0;
     transition: fill .18s;
   }

   .dd-item:hover svg {
     fill: var(--green-mid);
   }

   .dd-separator {
     height: 1px;
     background: rgba(46, 168, 122, .1);
     margin: 4px 0;
   }

   .dd-item.danger {
     color: #c0392b;
   }

   .dd-item.danger svg {
     fill: #c0392b;
   }

   .dd-item.danger:hover {
     background: #fdf0ef;
     color: #a93226;
   }

   .dd-item.danger:hover svg {
     fill: #a93226;
   }

   /* ─────────────────────────────── */
   /* RESPONSIVE — TABLET (≤ 1024px) */
   /* ─────────────────────────────── */
   @media (max-width: 1024px) {

     header {
       padding: 0 32px;
     }

     .hero {
       grid-template-columns: 1fr;
       padding: 56px 32px;
       text-align: center;
       gap: 48px;
       min-height: auto;
     }

     .texto {
       align-items: center;
     }

     .texto p {
       max-width: 100%;
     }

     .hero-actions {
       justify-content: center;
     }

     .trust-row {
       justify-content: center;
     }

     .imagen {
       display: none;
     }

     .features {
       grid-template-columns: 1fr;
       gap: 0;
       padding: 48px 32px;
     }

     .feat-item {
       border-right: none;
       border-bottom: 1px solid rgba(255, 255, 255, .08);
       padding: 0 0 32px;
       text-align: left;
     }

     .feat-item:last-child {
       border-bottom: none;
       padding-bottom: 0;
     }

     .steps-grid {
       grid-template-columns: 1fr;
     }

     .how {
       padding: 72px 32px;
     }

     footer {
       padding: 32px 32px;
     }
   }



   /* ─────────────────────────────── */
   /* RESPONSIVE — MÓVIL (≤ 600px)    */
   /* ─────────────────────────────── */
   @media (max-width: 600px) {

     /* HEADER */
     header {
       flex-direction: column;
       height: auto;
       padding: 12px 16px;
       gap: 10px;
     }

     .logo {
       justify-content: center;
     }

     .logo img {
       width: 40px;
       height: 40px;
     }

     nav {
       width: 100%;
       justify-content: center;
       flex-wrap: wrap;
       gap: 6px;
     }

     nav a {
       padding: 6px 12px;
       font-size: 0.75rem;
     }

     /* PERFIL */
     .profile-btn {
       padding: 5px 10px;
     }

     .profile-name {
       display: none;
     }

     .profile-dropdown {
       right: 50%;
       transform: translateX(50%) translateY(8px) scale(.97);
       width: 90vw;
       max-width: 320px;
     }

     .profile-wrap.open .profile-dropdown {
       transform: translateX(50%) translateY(0) scale(1);
     }

     /* HERO */
     .hero {
       padding: 36px 16px;
       gap: 28px;
     }

     .texto h1 {
       font-size: 2rem;
     }

     .texto p {
       font-size: 0.9rem;
     }

     .btn-primary,
     .btn-ghost {
       width: 100%;
       justify-content: center;
     }

     .hero-actions {
       flex-direction: column;
       width: 100%;
     }

     .trust-row {
       flex-direction: column;
       gap: 10px;
     }

     .trust-divider {
       display: none;
     }

     /* FEATURES */
     .features {
       padding: 32px 16px;
       gap: 24px;
     }

     .feat-item {
       flex-direction: column;
       align-items: center;
       text-align: center;
     }

     /* HOW */
     .how {
       padding: 48px 16px;
     }

     .step-card {
       padding: 24px 18px;
     }

     /* FOOTER */
     footer {
       flex-direction: column;
       text-align: center;
       gap: 10px;
       padding: 24px 16px;
     }
   }

   /* ──────────────────────────────────── */
   /* RESPONSIVE — MÓVIL PEQUEÑO (≤ 480px) */
   /* ──────────────────────────────────── */
   @media (max-width: 480px) {
     .hero {
       padding: 28px 12px;
       gap: 24px;
     }

     .texto h1 {
       font-size: 1.75rem;
     }

     .tag-pill {
       font-size: .67rem;
     }

     .btn-primary {
       padding: 13px 22px;
       font-size: .88rem;
     }

     .btn-ghost {
       padding: 12px 18px;
       font-size: .85rem;
     }

     .features {
       padding: 28px 12px;
     }

     .feat-body h4 {
       font-size: .95rem;
     }

     .how {
       padding: 40px 12px;
     }

     .how h2 {
       margin-bottom: 40px;
     }

     .step-card {
       padding: 20px 16px;
     }

     .step-number {
       font-size: 2.4rem;
     }

     footer {
       padding: 20px 12px;
     }

     .footer-logo {
       font-size: 1.1rem;
     }

     footer p {
       font-size: .74rem;
     }
   }

   /* ── Botones de autenticación en nav desktop (sin sesión) ── */
   .nav-auth-btns {
     display: flex;
     align-items: center;
     gap: 8px;
   }

   .nav-btn-login {
     display: inline-flex;
     align-items: center;
     padding: 7px 18px;
     border-radius: 50px;
     border: 1.5px solid rgba(46, 168, 122, .4);
     background: transparent;
     color: var(--green-deep, #0d3b2e);
     font-size: .85rem;
     font-weight: 600;
     text-decoration: none;
     transition: background .2s, border-color .2s;
     white-space: nowrap;
   }

   .nav-btn-login:hover {
     background: var(--green-pale, #d4f0e4);
     border-color: rgba(46, 168, 122, .7);
   }

   .nav-btn-register {
     display: inline-flex;
     align-items: center;
     padding: 7px 18px;
     border-radius: 50px;
     background: var(--green-deep, #0d3b2e);
     color: #fff;
     font-size: .85rem;
     font-weight: 600;
     text-decoration: none;
     transition: background .2s, transform .15s;
     white-space: nowrap;
   }

   .nav-btn-register:hover {
     background: var(--green-mid, #1a6b4a);
     color: #fff;
     transform: translateY(-1px);
   }