/*
Theme Name: Dr. Huber Diaz - Urologo Oncologo
Theme URI: https://drhuberdiaz.com/
Author: Dr. Huber Diaz Fuentes
Author URI: https://drhuberdiaz.com/
Description: Tema personalizado para el sitio del Dr. Huber Diaz Fuentes, Urologo Oncologo en Merida, Yucatan. Replica el diseno del sitio React (Hero, Sobre mi, Servicios, Tecnologia, Testimonios, Galeria, Contacto, Publicaciones, Reconocimientos, Formacion en Brasil, Redes y WhatsApp flotante).
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dr-huber-diaz
*/

/* ===== Design tokens (replican index.css del proyecto React) ===== */
:root{
  --background:#ffffff;
  --foreground:hsl(220,60%,8%);
  --primary:hsl(218,85%,18%);
  --primary-foreground:#ffffff;
  --primary-glow:hsl(215,75%,32%);
  --secondary:hsl(215,30%,96%);
  --muted:hsl(215,25%,96%);
  --muted-foreground:hsl(218,15%,42%);
  --accent:hsl(358,75%,52%);
  --accent-foreground:#ffffff;
  --accent-glow:hsl(358,80%,62%);
  --border:hsl(215,25%,90%);
  --card:#ffffff;
  --radius:0.75rem;

  --grad-hero:linear-gradient(135deg,hsl(220,70%,6%) 0%,hsl(218,85%,14%) 50%,hsl(215,75%,22%) 100%);
  --grad-accent:linear-gradient(135deg,hsl(358,75%,52%),hsl(358,85%,65%));
  --grad-card:linear-gradient(160deg,#fff 0%,hsl(215,30%,98%) 100%);
  --grad-dark:linear-gradient(180deg,hsl(220,60%,8%) 0%,hsl(218,70%,12%) 100%);

  --shadow-elegant:0 20px 50px -20px hsl(218,85%,18%,.25);
  --shadow-glow:0 0 60px hsl(358,75%,52%,.25);
  --shadow-card:0 10px 30px -10px hsl(218,50%,15%,.15);
  --transition:all .4s cubic-bezier(.4,0,.2,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,sans-serif;color:var(--foreground);background:var(--background);line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,.font-display{font-family:'Playfair Display',Georgia,serif;letter-spacing:-.02em;color:var(--primary)}
.container{max-width:1200px;margin:0 auto;padding:0 2rem}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:1rem 1.75rem;border-radius:.75rem;font-weight:600;font-size:1rem;cursor:pointer;border:none;transition:var(--transition);text-align:center}
.btn-accent{background:var(--grad-accent);color:#fff;box-shadow:var(--shadow-glow)}
.btn-accent:hover{transform:translateY(-2px);filter:brightness(1.05)}
.btn-outline{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.4)}
.btn-outline:hover{background:rgba(255,255,255,.1)}
.btn-wa{background:#25D366;color:#fff}
.btn-wa:hover{background:#1ebe5b}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-glow)}
.btn-block{width:100%}

/* ===== Navbar ===== */
.navbar{position:fixed;top:0;left:0;right:0;z-index:50;transition:var(--transition);background:transparent}
.navbar.scrolled{background:rgba(255,255,255,.85);backdrop-filter:blur(14px);box-shadow:var(--shadow-card)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:80px}
.brand{display:flex;align-items:center;gap:.6rem}
.brand img{width:48px;height:48px;border-radius:8px;object-fit:contain}
.brand-text p{line-height:1.1}
.brand-name{font-family:'Playfair Display',serif;font-size:1.1rem;font-weight:600;color:#fff}
.brand-tag{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.navbar.scrolled .brand-name{color:var(--primary)}
.navbar.scrolled .brand-tag{color:var(--muted-foreground)}
.nav-links{list-style:none;display:flex;gap:2rem}
.nav-links a{color:rgba(255,255,255,.9);font-size:.9rem;font-weight:500;transition:var(--transition)}
.nav-links a:hover{color:var(--accent)}
.navbar.scrolled .nav-links a{color:var(--foreground)}
.nav-cta{display:none}
@media(min-width:1024px){.nav-cta{display:inline-flex}}
.menu-btn{background:none;border:none;color:#fff;cursor:pointer;display:none}
.navbar.scrolled .menu-btn{color:var(--primary)}
@media(max-width:1023px){.nav-links{display:none}.menu-btn{display:block}}
.mobile-menu{display:none;background:#fff;border-top:1px solid var(--border)}
.mobile-menu.open{display:block}
.mobile-menu ul{list-style:none;padding:1.5rem 2rem}
.mobile-menu li{padding:.7rem 0}

/* ===== Hero ===== */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;overflow:hidden;background:var(--grad-hero);padding-top:6rem}
.hero-bg{position:absolute;inset:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.4}
.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,hsl(220,70%,6%),hsl(220,70%,6%,.7),transparent)}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1fr;gap:3rem;align-items:center;padding:5rem 0;color:#fff}
@media(min-width:1024px){.hero-grid{grid-template-columns:1fr 1fr}}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:999px;background:rgba(255,255,255,.1);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.2);margin-bottom:1.5rem;font-size:.85rem}
.hero-badge span.dot{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
.hero h1{font-size:clamp(2.5rem,6vw,4.5rem);font-weight:700;line-height:1.05;color:#fff;margin-bottom:1.5rem}
.text-grad-accent{background:var(--grad-accent);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p.lead{font-size:1.3rem;color:rgba(255,255,255,.85);margin-bottom:1rem;font-weight:300}
.hero p.sub{color:rgba(255,255,255,.7);max-width:35rem;margin-bottom:2.5rem}
.hero-ctas{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:3rem}
.hero-trust{display:flex;flex-wrap:wrap;gap:1.5rem;font-size:.9rem;color:rgba(255,255,255,.8)}
.hero-trust i{color:var(--accent);margin-right:.4rem}
.hero-wa{margin-top:2rem;display:inline-flex;align-items:center;gap:1rem;padding:1rem 1.5rem;border-radius:1rem;background:rgba(255,255,255,.1);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.2);transition:var(--transition)}
.hero-wa:hover{background:rgba(255,255,255,.15)}
.hero-wa .ic{width:48px;height:48px;border-radius:12px;background:var(--grad-accent);display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:var(--shadow-glow)}
.hero-wa small{display:block;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.hero-wa strong{font-family:'Playfair Display',serif;font-size:2rem;color:#fff;font-weight:700}
.hero-portrait{display:none;position:relative}
@media(min-width:1024px){.hero-portrait{display:block}}
.hero-portrait .glow{position:absolute;inset:-2rem;background:var(--grad-accent);opacity:.2;filter:blur(60px);border-radius:50%}
.hero-portrait .frame{position:relative;aspect-ratio:1/1;border-radius:1.5rem;overflow:hidden;box-shadow:var(--shadow-glow);border:1px solid rgba(255,255,255,.1);background:#000}
.hero-portrait .frame img{width:100%;height:100%;object-fit:contain}

/* ===== Section base ===== */
section{padding:6rem 0}
.section-head{text-align:center;max-width:42rem;margin:0 auto 4rem}
.eyebrow{color:var(--accent);font-weight:600;letter-spacing:.2em;font-size:.8rem;text-transform:uppercase;margin-bottom:.75rem}
h2.section-title{font-size:clamp(2rem,4vw,3rem);font-weight:700;color:var(--primary);margin-bottom:1rem;line-height:1.15}
.section-head p{color:var(--muted-foreground);font-size:1.1rem}

/* ===== About ===== */
.about{background:var(--background)}
.about-grid{display:grid;grid-template-columns:1fr;gap:4rem;align-items:center}
@media(min-width:1024px){.about-grid{grid-template-columns:1fr 1fr}}
.about-photo{position:relative}
.about-photo .glow{position:absolute;inset:-1rem;background:var(--grad-accent);opacity:.2;filter:blur(60px);border-radius:50%}
.about-photo .frame{position:relative;aspect-ratio:4/5;border-radius:1.5rem;overflow:hidden;box-shadow:var(--shadow-elegant)}
.about-photo .frame img{width:100%;height:100%;object-fit:cover}
.about-badge{position:absolute;bottom:-1.5rem;right:-1.5rem;background:#fff;border:1px solid var(--border);box-shadow:var(--shadow-card);border-radius:1rem;padding:1.25rem;display:none}
@media(min-width:768px){.about-badge{display:block}}
.about-badge p:first-child{font-family:'Playfair Display',serif;font-size:1.8rem;font-weight:700;color:var(--primary)}
.about-badge p:last-child{font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:var(--muted-foreground)}
.about h2{font-size:clamp(2rem,4vw,3rem);margin-bottom:1.5rem;line-height:1.15}
.about .lead-p{color:var(--muted-foreground);font-size:1.1rem;margin-bottom:2rem;line-height:1.7}
.about-points{display:flex;flex-direction:column;gap:1.25rem}
.about-points .row{display:flex;gap:1rem}
.about-points .row .ic{width:48px;height:48px;border-radius:12px;background:var(--grad-accent);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow-glow)}
.about-points h3{font-size:1.1rem;color:var(--primary);margin-bottom:.25rem}
.about-points p{color:var(--muted-foreground);font-size:.95rem}
.about-edu{margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--border)}
.about-edu .grid{display:grid;grid-template-columns:1fr;gap:1rem;margin-top:1rem}
@media(min-width:640px){.about-edu .grid{grid-template-columns:repeat(3,1fr)}}
.edu-card{background:#fff;border:1px solid var(--border);border-radius:.75rem;padding:1rem;box-shadow:var(--shadow-card)}
.edu-card h4{font-size:.9rem;color:var(--primary);margin-bottom:.25rem}
.edu-card p{font-size:.75rem;color:var(--muted-foreground)}

/* ===== Services ===== */
.services{background:hsl(215,30%,96%,.4)}
.services-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:768px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.services-grid{grid-template-columns:repeat(3,1fr)}}
.service-card{position:relative;background:var(--grad-card);border:1px solid var(--border);border-radius:1rem;padding:2rem;box-shadow:var(--shadow-card);transition:var(--transition);overflow:hidden}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-elegant)}
.service-card .ic{width:56px;height:56px;border-radius:1rem;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem;transition:var(--transition)}
.service-card:hover .ic{background:var(--grad-accent);box-shadow:var(--shadow-glow)}
.service-card h3{font-size:1.25rem;margin-bottom:.75rem;color:var(--primary)}
.service-card p{color:var(--muted-foreground)}

/* ===== Technology ===== */
.technology{background:var(--grad-dark);color:#fff;position:relative;overflow:hidden}
.technology::before{content:"";position:absolute;top:0;right:0;width:500px;height:500px;background:var(--grad-accent);opacity:.1;filter:blur(80px);border-radius:50%}
.tech-grid{position:relative;display:grid;grid-template-columns:1fr;gap:4rem;align-items:center}
@media(min-width:1024px){.tech-grid{grid-template-columns:1fr 1fr}}
.technology h2{color:#fff;font-size:clamp(2rem,4vw,3rem);margin-bottom:1.5rem;line-height:1.15}
.technology .lead-p{color:rgba(255,255,255,.7);font-size:1.1rem;margin-bottom:2rem}
.tech-points{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media(min-width:640px){.tech-points{grid-template-columns:repeat(2,1fr)}}
.tech-card{background:rgba(255,255,255,.05);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.1);border-radius:1rem;padding:1.5rem;transition:var(--transition)}
.tech-card:hover{background:rgba(255,255,255,.1)}
.tech-card .ic{color:var(--accent);margin-bottom:1rem;font-size:2rem}
.tech-card h3{color:#fff;font-size:1.1rem;margin-bottom:.5rem}
.tech-card p{color:rgba(255,255,255,.7);font-size:.9rem}

/* ===== Testimonials ===== */
.testimonials{background:var(--background)}
.testi-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:768px){.testi-grid{grid-template-columns:repeat(3,1fr)}}
.testi-card{background:var(--grad-card);border:1px solid var(--border);border-radius:1rem;padding:2rem;box-shadow:var(--shadow-card);position:relative}
.testi-card .stars{color:var(--accent);margin-bottom:1rem;letter-spacing:.1em}
.testi-card blockquote{color:var(--foreground);margin-bottom:1.5rem;line-height:1.7;font-style:italic}
.testi-card .author{font-family:'Playfair Display',serif;color:var(--primary);font-weight:600}
.testi-card .role{color:var(--muted-foreground);font-size:.85rem}

/* ===== Gallery ===== */
.gallery{background:hsl(215,30%,96%,.4)}
.gallery-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:640px){.gallery-grid{grid-template-columns:repeat(2,1fr)}}
.gallery-item{border-radius:1rem;overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-card);transition:var(--transition)}
.gallery-item:hover{box-shadow:var(--shadow-elegant)}
.gallery-item img{width:100%;height:480px;object-fit:cover;transition:var(--transition)}
.gallery-item:hover img{transform:scale(1.05)}

/* ===== Contact ===== */
.contact{background:var(--grad-hero);color:#fff;position:relative;overflow:hidden}
.contact-grid{display:grid;grid-template-columns:1fr;gap:3rem;align-items:start;position:relative;z-index:1}
@media(min-width:1024px){.contact-grid{grid-template-columns:1fr 1fr}}
.contact h2{color:#fff;font-size:clamp(2rem,4vw,3rem);margin-bottom:1.5rem;line-height:1.15}
.contact .lead-p{color:rgba(255,255,255,.75);font-size:1.1rem;margin-bottom:2.5rem}
.contact-info{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:2.5rem}
.contact-info .row{display:flex;align-items:flex-start;gap:1rem}
.contact-info .ic{width:56px;height:56px;border-radius:1rem;background:rgba(255,255,255,.1);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}
.contact-info small{display:block;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-bottom:.25rem}
.contact-info p{font-weight:500}
.contact-card{background:rgba(255,255,255,.05);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.1);border-radius:1.5rem;padding:2.5rem;box-shadow:var(--shadow-elegant)}
.contact-card h3{color:#fff;font-size:1.5rem;margin-bottom:.5rem}
.contact-card .muted{color:rgba(255,255,255,.7);margin-bottom:2rem}
.contact-card .stack{display:flex;flex-direction:column;gap:1rem}
.qr-block{margin-top:2rem;padding-top:2rem;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;align-items:center;gap:1rem;text-align:center}
@media(min-width:640px){.qr-block{flex-direction:row;text-align:left}}
.qr-block img{width:128px;height:128px;background:#fff;padding:.75rem;border-radius:1rem}

/* ===== Publications ===== */
.publications{background:var(--background)}
.pub-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:768px){.pub-grid{grid-template-columns:repeat(3,1fr)}}
.pub-card{background:var(--card);border:1px solid var(--border);border-radius:1rem;padding:1.5rem;box-shadow:var(--shadow-card);transition:var(--transition);display:flex;flex-direction:column}
.pub-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-elegant)}
.pub-card .ic{width:48px;height:48px;border-radius:12px;background:var(--grad-accent);color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;box-shadow:var(--shadow-glow)}
.pub-card h3{color:var(--primary);font-size:1.1rem;margin-bottom:.75rem;line-height:1.3}
.pub-card .meta{font-size:.85rem;color:var(--muted-foreground);margin-bottom:1.5rem}
.pub-card .meta span{color:var(--accent);font-weight:500}
.pub-card .more{margin-top:auto;color:var(--accent);font-weight:600;font-size:.9rem}

/* ===== Recognitions ===== */
.recognitions{background:hsl(215,30%,96%,.4)}
.recog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;max-width:64rem;margin:0 auto}
@media(min-width:768px){.recog-grid{grid-template-columns:repeat(4,1fr)}}
.recog-item{background:var(--grad-card);border:1px solid var(--border);border-radius:.75rem;padding:.75rem;box-shadow:var(--shadow-card);transition:var(--transition);text-align:center}
.recog-item:hover{transform:translateY(-4px);box-shadow:var(--shadow-elegant)}
.recog-item img{width:100%;height:160px;object-fit:contain;background:#fff;border-radius:6px}
.recog-item p{margin-top:.5rem;font-size:.75rem;color:var(--muted-foreground)}

/* ===== Fellowship ===== */
.fellowship{background:hsl(215,30%,96%,.4)}
.fellowship h2{font-size:clamp(1.6rem,3vw,2.25rem)}
.fellow-grid{display:grid;grid-template-columns:1fr;gap:1.5rem;max-width:80rem;margin:0 auto}
@media(min-width:640px){.fellow-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.fellow-grid{grid-template-columns:repeat(4,1fr)}}
.fellow-item{border-radius:1rem;overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-card);transition:var(--transition)}
.fellow-item:hover{box-shadow:var(--shadow-elegant)}
.fellow-item img{width:100%;height:256px;object-fit:cover}

/* ===== Social ===== */
.social{background:var(--background)}
.social-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem;max-width:56rem;margin:0 auto}
@media(min-width:768px){.social-grid{grid-template-columns:repeat(4,1fr)}}
.social-card{display:flex;flex-direction:column;align-items:center;gap:.75rem;border:1px solid var(--border);background:var(--card);border-radius:1rem;padding:1.5rem;box-shadow:var(--shadow-card);transition:var(--transition);text-align:center}
.social-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-elegant)}
.social-card .ic{width:56px;height:56px;border-radius:1rem;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;transition:var(--transition)}
.social-card:hover .ic{background:var(--grad-accent);box-shadow:var(--shadow-glow)}
.social-card .name{font-family:'Playfair Display',serif;color:var(--primary);font-weight:600}
.social-card .handle{color:var(--muted-foreground);font-size:.75rem}

/* ===== Footer ===== */
.site-footer{background:hsl(220,70%,6%);color:rgba(255,255,255,.7);padding:3.5rem 0;border-top:1px solid rgba(255,255,255,.1)}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2.5rem}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(3,1fr)}}
.footer-grid h4,.footer-brand p.name{color:#fff;font-family:'Playfair Display',serif;margin-bottom:1rem}
.footer-brand{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}
.footer-brand .ic{width:40px;height:40px;border-radius:50%;background:var(--grad-accent);color:#fff;display:flex;align-items:center;justify-content:center}
.footer-grid ul{list-style:none}
.footer-grid li{font-size:.9rem;margin-bottom:.5rem}
.footer-bottom{margin-top:3rem;padding-top:2rem;border-top:1px solid rgba(255,255,255,.1);font-size:.75rem;color:rgba(255,255,255,.5);display:flex;flex-direction:column;gap:1rem;justify-content:space-between}
@media(min-width:768px){.footer-bottom{flex-direction:row}}

/* ===== WhatsApp Fab ===== */
.wa-fab{position:fixed;bottom:1.5rem;right:1.5rem;z-index:50;width:64px;height:64px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-elegant);transition:var(--transition);animation:pulseGlow 2s infinite}
.wa-fab:hover{transform:scale(1.1)}
@keyframes pulseGlow{0%,100%{box-shadow:0 0 0 0 hsl(358,75%,52%,.6)}50%{box-shadow:0 0 0 12px hsl(358,75%,52%,0)}}

/* utilities */
.icon-lg{width:28px;height:28px}
