/* ============================================================
   FotoDirectorio — main.css
   Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */
:root {
  --c-ink:        #0d1117;
  --c-ink-soft:   #374151;
  --c-muted:      #6b7280;
  --c-border:     #e5e7eb;
  --c-bg:         #f9fafb;
  --c-white:      #ffffff;
  --c-accent:     #c9a84c;
  --c-accent-soft:#f7f0df;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.13);
  --trans:        .18s ease;
}
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; color: var(--c-ink-soft); background: var(--c-bg); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .font-display { font-family: 'Cormorant Garamond', serif; color: var(--c-ink); font-weight: 700; line-height: 1.2; }
a { color: var(--c-accent); }
a:hover { color: var(--c-ink); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Navbar ── */
.site-nav { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 1000; padding: 0; }
.site-nav .container { height: 62px; }
.site-nav__brand { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: var(--c-ink) !important; text-decoration: none; display: flex; align-items: center; gap: 8px; margin-right: 2rem; }
.site-nav__brand i { color: var(--c-accent); }
.site-nav .navbar-nav .nav-link { font-size: .85rem; font-weight: 500; color: var(--c-ink-soft); padding: .4rem .85rem; }
.site-nav .navbar-nav .nav-link:hover { color: var(--c-ink); }
.site-nav__avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: .7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; }

/* ── Botones ── */
.btn-foto-primary { background: var(--c-ink); color: #fff !important; border: none; border-radius: 50px; font-size: .83rem; font-weight: 600; padding: .5rem 1.4rem; transition: all var(--trans); text-decoration: none; display: inline-block; cursor: pointer; }
.btn-foto-primary:hover { background: #333; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); text-decoration: none; }
.btn-foto-outline { background: transparent; color: var(--c-ink) !important; border: 1.5px solid var(--c-ink); border-radius: 50px; font-size: .83rem; font-weight: 600; padding: .45rem 1.3rem; transition: all var(--trans); text-decoration: none; display: inline-block; }
.btn-foto-outline:hover { background: var(--c-ink); color: #fff !important; }
.btn-foto-accent { background: var(--c-accent); color: #fff !important; border: none; border-radius: 50px; font-size: .83rem; font-weight: 600; padding: .5rem 1.4rem; transition: all var(--trans); text-decoration: none; display: inline-block; }
.btn-foto-accent:hover { background: #b5923e; transform: translateY(-1px); }

/* ── Hero ── */
.hero-portada { background: var(--c-ink); padding: 80px 0 70px; position: relative; overflow: hidden; }
.hero-portada::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,.12) 0%, transparent 70%); pointer-events: none; }
.hero-portada__tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.3); color: #C9A84C; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 50px; margin-bottom: 1.5rem; }
.hero-portada__title { font-size: clamp(2rem, 5vw, 3.6rem); color: #fff; margin-bottom: 1rem; }
.hero-portada__title em { font-style: normal; color: var(--c-accent); }
.hero-portada__sub { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 500px; margin: 0 auto 2.5rem; }
.hero-search { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 50px; display: flex; align-items: center; padding: 6px 6px 6px 20px; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.hero-search__input { flex: 1; border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: .95rem; color: var(--c-ink); background: transparent; min-width: 0; }
.hero-search__input::placeholder { color: #aaa; }
.hero-search__sep { width: 1px; height: 24px; background: var(--c-border); margin: 0 12px; flex-shrink: 0; }
.hero-search__select { border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: .88rem; color: var(--c-ink-soft); background: transparent; cursor: pointer; }
.hero-search__btn { background: var(--c-ink); color: #fff; border: none; border-radius: 50px; font-size: .85rem; font-weight: 600; padding: .55rem 1.4rem; cursor: pointer; transition: background var(--trans); white-space: nowrap; }
.hero-search__btn:hover { background: #333; }
.hero-stats { margin-top: 2rem; display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat__num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat__label { display: block; font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }

/* ── Secciones ── */
.section { padding: 60px 0; }
.section-dark { background: var(--c-ink); padding: 60px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.section-sub { color: var(--c-muted); font-size: .95rem; margin-bottom: 0; }

/* ── Card fotógrafo ── */
.foto-card { background: var(--c-white); border-radius: var(--radius); border: 1px solid var(--c-border); overflow: hidden; transition: box-shadow var(--trans), transform var(--trans); display: block; height: 100%; text-decoration: none; color: inherit; }
.foto-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; color: inherit; }
.foto-card__cover { position: relative; height: 155px; overflow: hidden; background: #f0ece4; }
.foto-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.foto-card:hover .foto-card__cover img { transform: scale(1.04); }
.foto-card__cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #ccc; background: linear-gradient(135deg, #f0ece4 0%, #e8e0d4 100%); }
.foto-card__badge-premium { position: absolute; top: 10px; right: 10px; background: var(--c-accent); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 50px; }
.foto-card__body { padding: 14px; }
.foto-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.foto-card__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid var(--c-border); background: var(--c-accent-soft); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 700; color: var(--c-accent); }
.foto-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.foto-card__nombre { font-weight: 600; font-size: .88rem; color: var(--c-ink); line-height: 1.3; }
.foto-card__verificado { color: #2563eb; font-size: .68rem; margin-left: 3px; }
.foto-card__ciudad { font-size: .75rem; color: var(--c-muted); margin-top: 1px; }
.foto-card__rating { display: flex; align-items: center; gap: 4px; margin-bottom: 7px; font-size: .78rem; }
.foto-card__stars { color: #FDCC0D; font-size: .68rem; }
.foto-card__rating-val { font-weight: 700; color: var(--c-ink); }
.foto-card__rating-n { color: var(--c-muted); }
.foto-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.foto-tag { background: var(--c-bg); border: 1px solid var(--c-border); color: var(--c-ink-soft); font-size: .7rem; font-weight: 500; padding: 2px 8px; border-radius: 50px; }
.foto-tag--more { color: var(--c-muted); }

/* ── Ciudad pill ── */
.ciudad-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; color: var(--c-ink-soft); font-size: .8rem; font-weight: 500; transition: all var(--trans); text-align: center; }
.ciudad-pill:hover { border-color: var(--c-accent); color: var(--c-ink); box-shadow: var(--shadow-sm); transform: translateY(-2px); text-decoration: none; }
.ciudad-pill i { font-size: 1rem; color: var(--c-accent); margin-bottom: 5px; }

/* ── Especialidad card ── */
.esp-card { display: flex; align-items: center; gap: 11px; padding: 14px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; color: var(--c-ink-soft); font-size: .85rem; font-weight: 500; transition: all var(--trans); }
.esp-card:hover { border-color: var(--c-accent); color: var(--c-ink); box-shadow: var(--shadow-sm); text-decoration: none; }
.esp-card__icon { width: 34px; height: 34px; border-radius: 9px; background: var(--c-accent-soft); display: flex; align-items: center; justify-content: center; font-size: .88rem; color: var(--c-accent); flex-shrink: 0; }

/* ── CTA oscura ── */
.cta-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 2rem 1.8rem; text-align: center; transition: background var(--trans), transform var(--trans); }
.cta-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.cta-card__icon { width: 52px; height: 52px; border-radius: 13px; background: rgba(201,168,76,.2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--c-accent); margin: 0 auto 1rem; }
.cta-card__title { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.cta-card__text { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.65; margin-bottom: 1.4rem; }

/* ── Ficha fotógrafo ── */
.ficha-cover { width: 100%; height: 300px; object-fit: cover; }
.ficha-cover-placeholder { width: 100%; height: 300px; background: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 100%); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.15); font-size: 4rem; }
.ficha-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); margin-top: -46px; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; background: var(--c-accent-soft); font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--c-accent); overflow: hidden; }
.ficha-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.form-contacto { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 74px; }

/* ── Auth ── */
.auth-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow); }

/* ── Footer ── */
.site-footer { background: var(--c-ink); padding: 56px 0 0;}
.site-footer__brand { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; color: #fff !important; text-decoration: none; }
.site-footer__desc { font-size: .83rem; color: rgba(255,255,255,.45); margin-top: .5rem; }
.site-footer__heading { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: .75rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links li { margin-bottom: 5px; }
.site-footer__links a { color: rgba(255,255,255,.5); font-size: .83rem; text-decoration: none; transition: color var(--trans); }
.site-footer__links a:hover { color: #fff; }
.site-footer__social { display: flex; gap: 10px; margin-top: .75rem; }
.site-footer__social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); font-size: .82rem; transition: all var(--trans); text-decoration: none; }
.site-footer__social a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.28); }
.site-footer__bottom a { color: rgba(255,255,255,.35); text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }

/* ── Badge estado ── */
.badge-estado { display: inline-block; font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 50px; white-space: nowrap; }

/* ── Páginas legales ── */
.legal-content { max-width: 780px; margin: 0 auto; padding: 48px 16px; }
.legal-content h1 { font-size: 2rem; margin-bottom: .5rem; }
.legal-content h2 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .6rem; }
.legal-content p, .legal-content li { font-size: .93rem; line-height: 1.8; color: var(--c-ink-soft); }
.legal-content ul { padding-left: 1.2rem; }
.legal-content .legal-date { font-size: .82rem; color: var(--c-muted); margin-bottom: 2rem; }

/* ── Alertas ── */
.alert-autodismiss { animation: fadeout .5s 4s forwards; }
@keyframes fadeout { to { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; } }
.text-accent { color: var(--c-accent) !important; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-portada { padding: 56px 0 48px; }
  .hero-search__sep, .hero-search__select { display: none; }
  .section { padding: 40px 0; }
  .site-footer { padding: 40px 0 0; }
}
@media (max-width: 767px) {
  .hero-portada__title { font-size: 2rem; }
  .hero-search { flex-wrap: wrap; border-radius: var(--radius); padding: 12px; gap: 8px; }
  .hero-search__input { width: 100%; }
  .hero-search__btn { width: 100%; text-align: center; border-radius: 7px; }
  .ficha-cover, .ficha-cover-placeholder { height: 200px; }
  .form-contacto { position: static; }
  .auth-card { padding: 1.4rem; }
  .legal-content { padding: 28px 16px; }
}
