*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    picture { display: contents; }
    html { scroll-behavior: smooth; }

    :root {
      --teal:   #67B5C7;
      --teal-d: #4A8FA0;
      --teal-l: #C4E8F0;
      --teal-p: #EBF7FA;
      --brown:  #553427;
      --brown-d:#3B2219;
      --white:  #FFFFFF;
      --off:    #F4FAFB;
      --mid:    #E8F4F7;
      --text:   #1C3038;
      --muted:  #5F7A82;
      --line:   rgba(103,181,199,0.18);
    }

    body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; line-height: 1.6; }
    h1,h2,h3 { font-family: 'DM Serif Display', serif; line-height: 1.1; }
    h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
    h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
    h3 { font-size: clamp(1rem, 2vw, 1.15rem); }
    p  { color: var(--muted); font-size: 1rem; line-height: 1.75; }
    a  { text-decoration: none; color: inherit; }
    ul { list-style: none; }

    .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
    .tag { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; background: var(--teal-l); color: var(--teal-d); padding: 0.35rem 0.9rem; border-radius: 50px; margin-bottom: 1.25rem; }
    .tag-white { background: rgba(255,255,255,0.2); color: #fff; }

    .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 2rem; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; transition: all 0.25s ease; }
    .btn-teal { background: var(--teal); color: #fff; }
    .btn-teal:hover { background: var(--teal-d); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(103,181,199,0.4); }
    .btn-white { background: #fff; color: var(--teal-d); }
    .btn-white:hover { background: var(--teal-p); transform: translateY(-1px); }
    .btn-ghost-w { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
    .btn-ghost-w:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
    .btn-sm { padding: 0.65rem 1.5rem; font-size: 0.875rem; }

    /* ── NAVBAR ── */
    #nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: transparent; transition: background 0.4s ease, box-shadow 0.3s ease; }
    #nav.solid { background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); box-shadow: 0 2px 30px rgba(103,181,199,0.12); }
    #nav .nav-menu a { color: rgba(255,255,255,0.85); }
    #nav .nav-phone { color: rgba(255,255,255,0.7); }
    #nav.solid .nav-menu a { color: var(--muted); }
    #nav.solid .nav-phone { color: var(--muted); }
    #nav.solid .burger span { background: var(--teal-d); }
    .burger span { background: var(--teal); }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
    .nav-logo { display: flex; align-items: center; }
    .nav-logo-img { height: 52px; width: auto; display: block; }
    .nav-menu { display: flex; gap: 2rem; }
    .nav-menu a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
    .nav-menu a:hover, .nav-menu a.active { color: var(--teal-d); }
    .nav-actions { display: flex; align-items: center; gap: 1rem; }
    .nav-phone { font-size: 0.825rem; color: var(--muted); }
    .burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
    .burger span { display: block; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }

    /* MOBILE MENU */
    #mob { position: fixed; inset: 0; background: var(--brown-d); z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; transform: translateX(100%); transition: transform 0.35s ease; }
    #mob.open { transform: translateX(0); }
    #mob a { color: #fff; font-size: 1.4rem; font-family: 'DM Serif Display', serif; }
    #mob .btn { font-family: 'DM Sans', sans-serif; font-size: 1rem; }
    .mob-x { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

    /* ── PAGE HERO ── */
    .page-hero {
      min-height: 55vh;
      background: linear-gradient(135deg, var(--brown-d) 0%, #2a1510 60%, var(--brown) 100%);
      display: flex; align-items: center;
      padding-top: 68px;
      position: relative; overflow: hidden;
    }
    .page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 50%, rgba(103,181,199,0.12) 0%, transparent 60%); }
    .page-hero-inner { position: relative; z-index: 1; text-align: center; padding: 5rem 0; }
    .page-hero h1 { color: #fff; margin-bottom: 1rem; }
    .page-hero p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 0 auto; font-size: 1.1rem; }

    /* ── FILTER TABS ── */
    .filter-section { padding: 3rem 0 2rem; background: var(--off); border-bottom: 1px solid var(--line); }
    .filter-tabs { display: flex; gap: 0.65rem; flex-wrap: wrap; justify-content: center; }
    .filter-tab {
      padding: 0.5rem 1.25rem;
      border-radius: 50px;
      border: 1.5px solid var(--line);
      background: var(--white);
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'DM Sans', sans-serif;
      color: var(--muted);
    }
    .filter-tab.active, .filter-tab:hover {
      background: var(--teal);
      color: #fff;
      border-color: var(--teal);
      font-weight: 600;
    }

    /* ── CASES GRID ── */
    .cases-section { padding: 3rem 0 6rem; background: var(--off); }
    .cases-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

    .case-card {
      background: var(--white);
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--line);
      transition: all 0.3s ease;
    }
    .case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(103,181,199,0.15); }

    .case-comparison {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
      background: var(--line);
    }
    .case-side {
      position: relative;
      aspect-ratio: 4/5;
      overflow: hidden;
    }
    .case-before-bg { background: linear-gradient(145deg, #c8c8c8 0%, #a8a8a8 100%); }
    .case-after-bg  { background: linear-gradient(145deg, var(--teal-p) 0%, var(--mid) 60%, var(--teal-l) 100%); }

    .case-side-label {
      position: absolute;
      top: 0.5rem; left: 0.5rem;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      background: rgba(0,0,0,0.6);
      color: #fff;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
    }
    .case-side img { width: 100%; height: 100%; object-fit: cover; }
    .case-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; opacity: 0.35; }

    .case-body { padding: 1.25rem; }
    .case-category {
      display: inline-block;
      background: var(--teal-p);
      color: var(--teal-d);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 0.2rem 0.6rem;
      border-radius: 6px;
      margin-bottom: 0.5rem;
    }
    .case-body h3 { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
    .case-body p { font-size: 0.82rem; }
    .case-stats { display: flex; gap: 1rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
    .case-stat { text-align: center; }
    .case-stat .num { font-family: 'DM Serif Display', serif; font-size: 1.25rem; color: var(--teal-d); line-height: 1; }
    .case-stat .lbl { font-size: 0.65rem; color: var(--muted); margin-top: 0.15rem; }

    /* CTA BAR */
    .cta-bar { background: var(--teal); padding: 6rem 0; text-align: center; position: relative; overflow: hidden; }
    .cta-bar::before { content: ''; position: absolute; top: -50%; left: -10%; width: 40%; height: 200%; background: rgba(255,255,255,0.05); border-radius: 50%; }
    .cta-bar h2 { color: #fff; margin-bottom: 1rem; }
    .cta-bar p { color: rgba(255,255,255,0.82); margin-bottom: 2.5rem; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }
    .cta-bar-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

    /* ── FOOTER ── */
    footer { background: var(--brown-d); padding: 5rem 0 2.5rem; }
    .ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
    .ft-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
    .ft-logo-img { height: 52px; width: auto; }
    .ft-desc { color: rgba(255,255,255,0.35); font-size: 0.85rem; line-height: 1.75; max-width: 260px; margin-bottom: 1.5rem; }
    .ft-socials { display: flex; gap: 0.65rem; }
    .ft-soc { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); transition: all 0.2s; }
    .ft-soc svg { width: 18px; height: 18px; fill: currentColor; }
    .ft-soc:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
    .ft-col h5 { color: rgba(255,255,255,0.5); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.25rem; }
    .ft-links li { margin-bottom: 0.75rem; }
    .ft-links a { color: rgba(255,255,255,0.38); font-size: 0.85rem; transition: color 0.2s; }
    .ft-links a:hover { color: var(--teal-l); }
    .ft-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
    .ft-bottom p { color: rgba(255,255,255,0.22); font-size: 0.8rem; }
    .ft-bottom a { color: var(--teal); }

    /* WA FLOAT */
    .wa { position: fixed; bottom: 2rem; right: 2rem; z-index: 300; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: linear-gradient(135deg,#25D366,#128C7E); border-radius: 50%; box-shadow: 0 4px 20px rgba(37,211,102,0.5); transition: transform 0.3s ease, box-shadow 0.3s ease; animation: waPulse 2.8s ease-in-out infinite; }
    .wa:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.65); }
    .wa svg { width: 32px; height: 32px; fill: #fff; }
    @keyframes waPulse { 0%,100%{box-shadow:0 4px 20px rgba(37,211,102,0.5),0 0 0 0 rgba(37,211,102,0.25)}60%{box-shadow:0 4px 20px rgba(37,211,102,0.5),0 0 0 14px rgba(37,211,102,0)} }

    /* SCROLL REVEAL */
    .fu { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .fu.on { opacity: 1; transform: translateY(0); }
    .d1{transition-delay:.1s} .d2{transition-delay:.2s}

    /* WATERMARK CROP */
    img[src*="diseno-sonrisa"], img[src*="coronas"], img[src*="relleno-labios"] {
      clip-path: inset(0 0 8% 0);
    }

    /* RESPONSIVE */
    @media(max-width:768px){
      .nav-menu,.nav-phone { display: none; }
      .burger { display: flex; }
      .nav-actions { margin-left: auto; margin-right: 0.75rem; }
      .nav-logo-img { height: 52px; }
      .cases-masonry { grid-template-columns: 1fr; }
      .ft-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
      .wa { width: 54px; height: 54px; }
    }
    @media(min-width:769px) and (max-width:1024px){ .cases-masonry { grid-template-columns: repeat(2, 1fr); } }
    @media(max-width:480px){
      .ft-grid { grid-template-columns: 1fr; }
      .ft-bottom { flex-direction: column; text-align: center; }
      .cta-bar-btns { flex-direction: column; align-items: center; }
    }
