/* =========================================================
   AST Servicios Generales — Conserjería y Seguridad 24h
   Hoja de estilos principal
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f8;
  --color-bg-alt-2: #eceef2;
  --color-navy: #0f1b2e;
  --color-navy-2: #17274a;
  --color-navy-3: #1f3157;
  --color-text: #1a2130;
  --color-text-muted: #5b6472;
  --color-gold: #b3893f;
  --color-gold-dark: #8f6c2f;
  --color-gold-light: #ddc487;
  --color-border: #e1e4ea;
  --shadow-soft: 0 10px 30px rgba(15, 27, 46, 0.10);
  --shadow-strong: 0 24px 60px rgba(15, 27, 46, 0.35);
  --radius: 6px;
  --container: 1180px;
  --font-heading: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  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; list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--color-navy);
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--color-text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--color-gold); display: inline-block; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-navy { background: var(--color-navy); }
.section-navy h2, .section-navy .eyebrow { color: #fff; }
.section-navy .eyebrow { color: var(--color-gold-light); }
.section-navy p { color: rgba(255,255,255,0.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em;
  cursor: pointer; border: 1px solid transparent; transition: all 0.25s ease; white-space: nowrap;
}
.btn-primary { background: var(--color-gold); color: #17203a; box-shadow: 0 10px 24px rgba(179, 137, 63, 0.35); }
.btn-primary:hover { background: var(--color-gold-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-navy { background: var(--color-navy); color: #fff; }
.btn-navy:hover { background: var(--color-navy-2); transform: translateY(-2px); }
.btn-sm { padding: 10px 16px; font-size: 0.8rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(15, 27, 46, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  padding: 16px 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header.is-scrolled { padding: 10px 0; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 44px; width: auto; transition: height 0.3s ease; }
.site-header.is-scrolled .logo img { height: 38px; }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.1; }
.logo-text span { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold-light); font-weight: 600; }

.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.82); white-space: nowrap; position: relative; padding-bottom: 4px; transition: color 0.25s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--color-gold); transition: width 0.25s ease; }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; font-size: 0.92rem; }
.header-phone svg { flex-shrink: 0; color: var(--color-gold-light); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.25s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--color-navy); padding: 168px 0 100px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(179,137,63,0.18), transparent 55%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; }
.hero-lead { color: rgba(255,255,255,0.75); font-size: 1.12rem; max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-trust-item { display: flex; align-items: baseline; gap: 8px; color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.hero-trust-item strong { font-family: var(--font-heading); font-size: 1.7rem; color: var(--color-gold-light); }

.hero-media { position: relative; }
.hero-media-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-strong); border: 1px solid rgba(255,255,255,0.12);
}
.hero-media-frame img { width: 100%; height: 460px; object-fit: cover; }
.hero-badge {
  position: absolute; left: -20px; bottom: -20px;
  background: var(--color-gold); color: #17203a;
  border-radius: 50%; width: 118px; height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-strong); text-align: center;
}
.hero-badge strong { font-family: var(--font-heading); font-size: 1.9rem; line-height: 1; }
.hero-badge span { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 32px 26px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--color-gold-light); }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-gold-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Ventajas ---------- */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.advantage { display: flex; gap: 18px; align-items: flex-start; }
.advantage-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center; color: var(--color-gold-light);
}
.advantage h3 { color: #fff; margin-bottom: 6px; font-size: 1.05rem; }
.advantage p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.68); }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; box-shadow: var(--shadow-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(0deg, rgba(15,27,46,0.88), transparent);
  color: #fff; font-size: 0.83rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: all 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ---------- Proceso ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 34px 22px 26px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-gold-light); display: block; margin-bottom: 10px;
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; margin: 0; }

/* ---------- Cobertura / Quiénes somos ---------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-strong); }
.about-list { margin-top: 24px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text); font-size: 0.95rem; }
.about-list svg { flex-shrink: 0; margin-top: 3px; color: var(--color-gold-dark); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 6px 24px; }
.faq-item summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-family: var(--font-heading); font-size: 1.1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-gold-dark); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; }

/* ---------- CTA banda ---------- */
.cta-band { background: var(--color-navy); position: relative; padding: 90px 0; text-align: center; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(179,137,63,0.18), transparent 55%);
}
.cta-band-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.72); }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .ico {
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg-alt-2);
  display: flex; align-items: center; justify-content: center; color: var(--color-gold-dark); flex-shrink: 0;
}
.contact-info-item h3 { font-size: 0.92rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.contact-info-item p, .contact-info-item a { margin: 0; font-size: 0.92rem; color: var(--color-text-muted); }
.contact-info-item a:hover { color: var(--color-gold-dark); }

.map-embed { margin-top: 8px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

.contact-form { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 6px; color: var(--color-text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--color-border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.92rem; background: #fff; color: var(--color-text);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--color-gold); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 20px; }
.form-consent input { width: auto; margin-top: 3px; }
.form-consent a { color: var(--color-gold-dark); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1524; color: rgba(255,255,255,0.65); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { height: 40px; margin-bottom: 16px; }
.site-footer p { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 999; max-width: 560px;
  background: #fff; color: var(--color-text); border-radius: var(--radius);
  box-shadow: var(--shadow-strong); padding: 22px 24px; display: none;
  border: 1px solid var(--color-border);
}
.cookie-banner.is-visible { display: block; animation: fadein 0.4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.cookie-banner p { font-size: 0.85rem; margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { flex: 1; }
.btn-ghost-navy { background: transparent; border-color: var(--color-border); color: var(--color-navy); }
.btn-ghost-navy:hover { background: var(--color-bg-alt); }

/* ---------- Llamar flotante ---------- */
.call-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  width: 58px; height: 58px; background: var(--color-gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(179, 137, 63, 0.5); transition: transform 0.25s ease;
}
.call-float:hover { transform: scale(1.08); }
.call-float svg { color: #17203a; }

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 150px; padding-bottom: 100px; }
.legal-page h2 { margin-top: 36px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-updated { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.88rem; }
.legal-page th, .legal-page td { text-align: left; padding: 10px 12px; border: 1px solid var(--color-border); }
.legal-page th { background: var(--color-bg-alt); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; font-weight: 700; color: var(--color-gold-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw);
    background: #fff; padding: 100px 32px 32px; transform: translateX(100%);
    transition: transform 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.15); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .main-nav a { color: var(--color-text); font-size: 1.05rem; white-space: normal; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: block; }
  .header-phone span.txt { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media-frame img { height: 320px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding: 140px 0 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero-badge { width: 92px; height: 92px; left: -12px; bottom: -12px; }
  .hero-badge strong { font-size: 1.4rem; }
}
