
:root{
  --brand:#0b5ed7;
  --brand-600:#0a53be;
  --accent:#22c55e;
  --ink:#0f172a;
  --muted:#64748b;
  --bg:#ffffff;
  --card:#f8fafc;
  --radius:16px;
  --shadow:0 20px 40px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  color:var(--ink); background:var(--bg);
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:24px}
.header{
  position:sticky; top:0; background:rgba(255,255,255,.92); backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid #e5e7eb; z-index:10;
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;color:var(--ink)}
.brand-badge{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,var(--brand),#3b82f6);box-shadow:var(--shadow)}
.nav a.btn{border:1px solid #e5e7eb;padding:10px 14px;border-radius:999px;box-shadow:0 6px 18px rgba(0,0,0,.06);font-weight:600}
.hero{
  background:linear-gradient(180deg,var(--card),#fff);
  padding:64px 24px 32px; border-bottom:1px solid #e5e7eb;
}
.hero h1{font-size:36px;line-height:1.1;margin:0 0 10px}
.hero p{color:var(--muted);font-size:18px;max-width:800px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:var(--card);border:1px solid #e5e7eb;border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.card h3{margin:0 0 6px}
.price{font-weight:800;font-size:22px;color:var(--brand)}
.badge{display:inline-block;background:var(--brand-600);color:#fff;font-weight:700;padding:4px 10px;border-radius:999px;font-size:12px}
.section{padding:36px 24px}
.section h2{font-size:28px;margin:0 0 12px}
ul.clean{list-style:none;padding-left:0;margin:0}
ul.clean li{padding-left:22px;position:relative;margin:8px 0}
ul.clean li:before{content:"✔";position:absolute;left:0;top:0;color:var(--accent);}
.footer{border-top:1px solid #e5e7eb;padding:24px;color:var(--muted);font-size:14px}
.btn-primary{display:inline-flex;align-items:center;gap:8px;background:var(--brand);color:#fff;border:0;border-radius:12px;padding:12px 16px;font-weight:700;box-shadow:0 8px 24px rgba(11,94,215,.25)}
.btn-primary:hover{background:var(--brand-600)}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}
/* Floating contact widget */
#contacto-widget{position:fixed;right:16px;bottom:16px;z-index:99999;display:flex;flex-direction:column;gap:10px}
#contacto-widget .fab{display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:12px 14px;font-weight:700;box-shadow:var(--shadow)}
#contacto-widget .fab.whatsapp:before{content:"🟢"}
#contacto-widget .fab.email:before{content:"✉️"}
/* Quick panel */
#wa-panel{position:fixed;right:16px;bottom:74px;width:320px;max-width:92vw;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:var(--shadow);padding:12px;display:none}
#wa-panel h4{margin:6px 0 8px;font-size:16px}
#wa-panel .opt{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #e5e7eb;border-radius:10px;margin:6px 0;cursor:pointer}
#wa-panel .opt:hover{background:#f9fafb}
#wa-panel .note{font-size:12px;color:var(--muted);margin-top:6px}
/* About: photo */
.about{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:start}
.about img{width:220px;height:220px;object-fit:cover;border-radius:18px;border:1px solid #e5e7eb;box-shadow:var(--shadow);background:#fff}
@media (max-width:900px){ .grid{grid-template-columns:1fr 1fr} }
@media (max-width:640px){ .grid{grid-template-columns:1fr} .hero h1{font-size:28px} .about{grid-template-columns:1fr} .about img{width:100%;height:auto} }

/* Cookie banner */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:2147483647;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.12);padding:14px;display:none;align-items:flex-start;gap:12px}
.cookie-banner p{margin:0;color:var(--ink)}
.cookie-banner .actions{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}
.cookie-banner .btn-small{padding:8px 12px;border-radius:10px;border:1px solid #e5e7eb;background:#fff;font-weight:700}
.cookie-banner .btn-accept{background:var(--brand);color:#fff;border:0}
.cookie-banner a{font-weight:700}
.footer-links{display:flex;gap:14px;flex-wrap:wrap}
.footer .mini{font-size:12px;color:var(--muted)}

/* Brand logo in header */
.brand-logo{width:28px;height:28px;border-radius:8px;display:inline-block;margin-right:8px}
.brand span{display:inline-block}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px}
.menu{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.phone-big{font-weight:900;color:#111111;text-decoration:none;border:1px solid #e5e7eb;padding:10px 14px;border-radius:999px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.phone-big:hover{text-decoration:none}
.phone-mobile{display:none}
@media (max-width:640px){
  .phone-big{display:none}
  .phone-mobile{display:block;margin:0 24px 12px}
  .phone-mobile a{display:block;text-align:center;font-weight:900;color:#111111;text-decoration:none;border:1px solid #e5e7eb;padding:12px 14px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
}

/* --- Fix mobile phone visibility & color --- */

}
/* Force tel links to black (iOS auto-link fix) */
a[href^="tel:"]{ color:#111111 !important; text-decoration:none !important }

/* Badges in hero */
.badges{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.badge.blue{background:var(--brand);}
.badge.blue{background:var(--brand-600);}

/* WhatsApp green button */
.whatsapp-btn{display:inline-flex;align-items:center;gap:8px;background:#25D366;color:#fff;border:0;border-radius:12px;padding:12px 16px;font-weight:800;box-shadow:0 8px 24px rgba(37,211,102,.35);text-decoration:none}
.whatsapp-btn:hover{text-decoration:none;filter:brightness(.98)}

/* Desktop: phone + WhatsApp aligned */
.header-cta{display:flex;align-items:center;gap:10px}

/* Mobile: WhatsApp under phone */
.wa-mobile{display:none}
@media (max-width:640px){
  .wa-mobile{display:block;margin:0 24px 18px}
  .wa-mobile a{display:block;text-align:center}
}

/* --- Header CTA responsive (una sola vez) --- */
@media (max-width: 640px){
  .header-cta{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:480px;margin:8px 0}
  .header-cta .phone-big, .header-cta .whatsapp-btn{display:block;width:100%;text-align:center}
}

/* FAQ headings */
#faqs h3{margin-top:14px}

/* --- Mobile CTA: WhatsApp + Phone (button style) --- */
@keyframes soft-pulse {
  0% { box-shadow: 0 0 0 0 rgba(17,17,17,.15); }
  70% { box-shadow: 0 0 0 12px rgba(17,17,17,0); }
  100% { box-shadow: 0 0 0 0 rgba(17,17,17,0); }
}
@media (max-width: 640px){
  .header-cta{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:480px;margin:8px 0}
  .header-cta .whatsapp-btn{order:1;display:block;width:100%;text-align:center}
  .header-cta .phone-big{
    order:2;
    display:block;width:100%;text-align:center;
    background:#ffffff;border:1px solid #e5e7eb;border-radius:12px;
    padding:12px 16px;font-weight:900;color:#111111;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    animation: soft-pulse 5s ease-in-out infinite;
    text-decoration:none;
  }
}

/* --- Mobile CTA FIX: show phone button under WhatsApp --- */
@media (max-width: 640px){
  .header-cta{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:480px;margin:8px 0}
  .header-cta .whatsapp-btn{order:1;display:block;width:100%;text-align:center}
  .header-cta .phone-big{
    order:2 !important;
    display:block !important;width:100%;text-align:center !important;
    background:#ffffff;border:1px solid #e5e7eb;border-radius:12px;
    padding:12px 16px;font-weight:900;color:#111111 !important;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    animation: soft-pulse 5s ease-in-out infinite;
    text-decoration:none !important;
  }
}
/* Keep tel links black on iOS */
a[href^="tel:"]{ color:#111111 !important; text-decoration:none !important }

/* --- Header compacto en móvil --- */
@media (max-width: 640px){
  .header{background:#f9fafb}
  .nav{padding:10px 16px !important}
  .brand{font-size:18px}
  .brand-logo{width:24px;height:24px;border-radius:7px;margin-right:8px}
  .header-cta{gap:8px !important; margin:6px 0 !important; max-width:420px}
  .whatsapp-btn{padding:10px 14px !important; border-radius:10px}
  .phone-big{padding:10px 14px !important; border-radius:10px}
  .badge{padding:3px 10px !important; border-radius:999px}
  .hero{padding-top:28px !important; padding-bottom:24px !important}
}

/* --- Header ULTRA compacto en móvil + sticky mejorado --- */
@media (max-width: 640px){
  .header{position:sticky; top:0; z-index:9999; background:rgba(249,250,251,.96); backdrop-filter:saturate(160%) blur(6px)}
  .nav{padding:8px 12px !important}
  .brand{font-size:17px}
  .brand-logo{width:22px;height:22px;border-radius:6px;margin-right:8px}
  .header-cta{gap:6px !important; margin:4px 0 !important; max-width:400px}
  .whatsapp-btn, .phone-big{padding:9px 12px !important; border-radius:10px; font-weight:800}
  .whatsapp-btn{font-size:15px}
  .phone-big{font-size:15px}
  .hero{padding-top:24px !important; padding-bottom:18px !important}
}

/* --- Sticky header: shrink on scroll --- */
.header.sticky{position:sticky; top:0; z-index:10000; background:rgba(249,250,251,.96); backdrop-filter:saturate(160%) blur(6px)}
.header.shrink .nav{padding-top:6px; padding-bottom:6px}
.header.shrink .brand{font-size:16px}
.header.shrink .brand-logo{width:20px;height:20px;border-radius:6px}
@media (max-width: 640px){
  .header.shrink .whatsapp-btn, .header.shrink .phone-big{padding:8px 10px}
  .header.shrink .header-cta{gap:6px; margin:2px 0}
}


/* --- Accessibility fixes (added) --- */
/* Improve contrast for WhatsApp floating button to meet WCAG 2.1 AA */
#contacto-widget .fab.whatsapp{
  background-color:#075E54; /* dark WhatsApp green */
  color:#ffffff;
}
#contacto-widget .fab.whatsapp:focus{
  outline:3px solid #111; outline-offset:2px;
}
