/* ============================================================
   Santamaría Fotografía & Video — hoja de estilos global
   ============================================================ */

:root {
  --black: #111111;
  --dark: #1a1a1a;
  --gray-900: #2b2b2b;
  --gray-700: #555555;
  --gray-500: #7a7a7a;
  --gray-300: #d9d9d9;
  --gray-100: #f5f4f2;
  --white: #ffffff;
  --gold: #b6912e;
  --gold-dark: #8f7222;
  --gold-light: #f4ead0;
  --radius: 6px;
  --max-width: 1180px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--gray-700); }
.lead { font-size: 1.15rem; color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-300);
}
.top-bar {
  background: var(--black);
  color: var(--gray-300);
  font-size: 0.82rem;
}
.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--gray-300); }
.top-bar a:hover { color: var(--gold); }
.top-bar .top-links { display: flex; gap: 18px; flex-wrap: wrap; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }

.nav-main { display: flex; align-items: center; gap: 30px; }
.nav-main > ul { display: flex; gap: 26px; align-items: center; }
.nav-main a.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-900);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-main a.nav-link:hover,
.nav-main a.nav-link.active { color: var(--gold-dark); border-color: var(--gold); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-900);
}
.dropdown a:hover { background: var(--gray-100); color: var(--gold-dark); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: 0.86rem; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--black); margin: 6px 0; }

@media (max-width: 960px) {
  .nav-main { position: fixed; top: 96px; left: 0; right: 0; bottom: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.25s ease; }
  .nav-main.open { transform: translateX(0); }
  .nav-main > ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 4px; }
  .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; min-width: 100%; }
  .has-dropdown.open .dropdown { display: block; }
  .burger { display: block; }
  .nav-cta { width: 100%; }
  .top-bar .wrap { justify-content: center; text-align: center; }
  .brand img { height: 48px; }
}

/* ---------- Hero (foto/vídeo de fondo a pantalla completa) ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #171716; }
.hero-bg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,9,0.92) 0%, rgba(10,10,9,0.72) 42%, rgba(10,10,9,0.35) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 100px; padding-bottom: 100px; max-width: 760px; margin: 0; margin-left: max(24px, calc((100% - var(--max-width)) / 2)); }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold); }
.hero p.lead { color: #e3e1da; }
.hero-stats { display: flex; gap: 32px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); }
.hero-stats div span { font-size: 0.82rem; color: #cfccc3; }

@media (max-width: 860px) {
  .hero { min-height: 560px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; margin-left: auto; margin-right: auto; max-width: 100%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10,10,9,0.55) 0%, rgba(10,10,9,0.88) 65%, rgba(10,10,9,0.95) 100%); }
}

/* ---------- Placeholder de imagen ---------- */
.ph-image {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #efece5 0%, #e2ded3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--gray-500);
  border: 1px dashed #c9c3b4;
}
.ph-image::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  color: var(--gray-500);
  background: rgba(255,255,255,0.85);
  padding: 5px 8px;
  border-radius: 4px;
  line-height: 1.3;
}
.ph-image svg { width: 34%; opacity: 0.55; }
.ph-image.ratio-16-9 { aspect-ratio: 16/9; }
.ph-image.ratio-4-3 { aspect-ratio: 4/3; }
.ph-image.ratio-1-1 { aspect-ratio: 1/1; }
.ph-image.ratio-3-4 { aspect-ratio: 3/4; }

/* ---------- Secciones genéricas ---------- */
section { padding: 74px 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #c9c6bd; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 28px 0; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.trust-bar .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.trust-bar .trust-label { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); }
.trust-logos { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.trust-logos span { font-family: var(--font-head); font-weight: 700; color: var(--gray-500); font-size: 1rem; letter-spacing: 0.02em; opacity: 0.85; }

/* ---------- Grid de servicios ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.card-body p { font-size: 0.94rem; margin-bottom: 12px; }
.card-link { font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--gold-dark); margin-top: auto; }
.card-link:hover { text-decoration: underline; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-light); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* ---------- Proceso / pasos ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Testimonios ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial p { font-style: italic; color: var(--gray-900); }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.testimonial .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-light); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; }
.testimonial .who strong { display: block; font-size: 0.92rem; }
.testimonial .who span { font-size: 0.8rem; color: var(--gray-500); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-300); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; }

/* ---------- CTA banda ---------- */
.cta-band { background: var(--black); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfccc3; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-bar button {
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--gray-300);
  background: var(--white); cursor: pointer; transition: all 0.2s ease;
}
.filter-bar button.active, .filter-bar button:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-item { border-radius: var(--radius); overflow: hidden; position: relative; }
.portfolio-item figcaption { padding: 12px 4px 0; font-size: 0.85rem; color: var(--gray-700); }
.portfolio-item figcaption strong { display: block; color: var(--black); font-family: var(--font-head); font-size: 0.92rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--gray-500); padding: 18px 0 0; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Página interior hero ---------- */
.page-hero { background: var(--gray-100); padding: 40px 0 50px; border-bottom: 1px solid var(--gray-300); }
.page-hero .eyebrow { color: var(--gold-dark); }
.page-hero p.lead { max-width: 720px; }

/* ---------- Formulario de contacto ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 12px 14px;
  border: 1px solid var(--gray-300); border-radius: 4px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 0.82rem; color: var(--gray-500); margin-top: 10px; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 46px; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 22px; text-align: center; }
.contact-card .icon-badge { margin: 0 auto 12px; }
.contact-card a, .contact-card p { font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #c9c6bd; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer .brand img { filter: brightness(0) invert(1); }
.site-footer .brand-text strong { color: var(--white); }
.site-footer .brand-text span { color: #918e85; }
.site-footer p { color: #a9a69d; font-size: 0.9rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c9c6bd; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #4a4842; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid #333229; padding: 20px 0; font-size: 0.8rem; color: #8b887f; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #8b887f; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--black); color: #e7e5df;
  padding: 18px 24px; display: none;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}
.cookie-banner.show { display: block; }
.cookie-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: var(--max-width); }
.cookie-banner p { color: #cfccc3; font-size: 0.85rem; margin: 0; max-width: 640px; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; padding: 10px 18px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; }
.cookie-actions .accept { background: var(--gold); color: var(--black); }
.cookie-actions .reject { background: transparent; color: #e7e5df; border-color: #55524a; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.small { font-size: 0.85rem; color: var(--gray-500); }
.badge {
  display: inline-block; font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold-light); color: var(--gold-dark);
  padding: 5px 10px; border-radius: 4px; margin-bottom: 10px;
}
