/* ============================================================
   FLORDELLACQUA.COM — HOJA DE ESTILOS GLOBAL
   ------------------------------------------------------------
   PARA EDITAR COLORES: cambia solo las variables de :root.
   Todo el sitio se actualiza automaticamente.
   ============================================================ */

:root {
  /* PALETA DE MARCA */
  --ink:        #2a2e2e;
  --violet-900: #074f57;
  --violet-700: #3a7f83;
  --violet-500: #6b2f8f;
  --violet-100: #cfd6d6;
  --gray-600:   #074f57;
  --line:       #cfd6d6;
  --paper:      #f5f5f5;
  --white:      #ffffff;
  --ok:         #2e6e5e;
  --warn:       #b3452f;

  /* TIPOGRAFIA */
  --font-display: 'DIN Next', 'DIN Next LT Pro', 'Lato', Arial, sans-serif;
  --font-body: 'Lato', Arial, sans-serif;

  /* LAYOUT */
  --max-w: 1080px;
  --max-w-text: 700px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--violet-700); text-underline-offset: 3px; }
a:hover { color: var(--violet-900); }

:focus-visible {
  outline: 3px solid var(--violet-500);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--violet-900); color: var(--white);
  padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ============ HEADER / NAV ============ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav-wrap {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  letter-spacing: 0.01em;
}
.brand em { font-style: italic; color: var(--violet-700); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px; font-family: var(--font-body);
  font-size: 0.85rem; cursor: pointer; color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--gray-600);
  font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--violet-900); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--violet-500); padding-bottom: 2px; }

.nav-cta {
  background: var(--violet-900); color: var(--white) !important;
  padding: 9px 18px; border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--violet-700); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 24px; }
  .nav-cta { display: inline-block; text-align: center; }
}

/* ============ BLOQUES BASE ============ */
.section { padding: 84px 24px; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--violet-900); color: var(--white); }
.section-dark .eyebrow { color: var(--line); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: var(--paper); }

.container { max-width: var(--max-w); margin: 0 auto; }
.container-text { max-width: var(--max-w-text); margin: 0 auto; }

/* Firma visual: nota de margen tipo briefing */
.margin-note {
  border-left: 2px solid var(--violet-500);
  padding-left: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-500);
  font-weight: 600;
  margin-bottom: 22px;
}

.eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-500); margin-bottom: 16px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--violet-900); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 22px; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h1 em, h2 em { font-style: italic; color: var(--violet-700); }

.lead { font-size: 1.16rem; color: var(--gray-600); max-width: 640px; }
p + p { margin-top: 1em; }

/* ============ HERO ============ */
.hero { padding: 96px 24px 84px; }
.hero .container { max-width: 880px; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { font-size: 1.22rem; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  font-size: 0.85rem; color: var(--gray-600);
}
.hero-meta strong { color: var(--violet-900); font-weight: 600; }

/* ============ BOTONES ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--violet-900); color: var(--white); }
.btn-primary:hover { background: var(--violet-700); color: var(--white); }
.btn-secondary { background: transparent; color: var(--violet-900); border-color: var(--violet-900); }
.btn-secondary:hover { background: var(--violet-100); color: var(--violet-900); }
.section-dark .btn-primary { background: var(--white); color: var(--violet-900); }
.section-dark .btn-primary:hover { background: var(--violet-100); }

/* ============ GRIDS Y TARJETAS ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--violet-500);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.94rem; color: var(--gray-600); }

.list-plain { list-style: none; }
.list-plain li {
  padding: 12px 0 12px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.list-plain li:last-child { border-bottom: none; }
.list-plain li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--violet-500); font-weight: 700;
}

.check-list li::before { content: '✓'; color: var(--ok); }
.cross-list li::before { content: '✕'; color: var(--warn); }

/* ============ FASES / TIMELINE ============ */
.phase {
  display: grid; grid-template-columns: 150px 1fr; gap: 22px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.phase:last-child { border-bottom: none; }
.phase-label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-500);
}
.phase-label span { display: block; color: var(--gray-600); font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: 4px; font-size: 0.82rem; }
@media (max-width: 620px) { .phase { grid-template-columns: 1fr; gap: 6px; } }

/* ============ FAQ ============ */
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
details.faq summary {
  font-weight: 600; cursor: pointer;
  padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--violet-900);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--violet-500); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { padding: 0 0 18px; color: var(--gray-600); font-size: 0.96rem; }

/* ============ FOTOS ============ */
.photo-slot {
  background: var(--violet-100);
  border: 1px dashed var(--violet-500);
  border-radius: var(--radius);
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-700); font-size: 0.85rem;
  text-align: center; padding: 20px;
}
.photo-real {
  display: block;
  width: min(100%, 440px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  justify-self: center;
  align-self: center;
}
@media (max-width: 620px) {
  .photo-real { width: min(82vw, 360px); margin-top: 12px; }
}

/* ============ TESTIMONIOS ============ */
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--violet-500);
  padding: 24px; border-radius: var(--radius);
}
.testimonial blockquote { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; }
.testimonial cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.85rem; color: var(--gray-600); }

/* ============ CTA FINAL ============ */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-final .btn { margin-top: 26px; }

/* ============ NEWSLETTER ============ */
.newsletter-section {
  background: var(--violet-900);
  color: var(--white);
}
.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
}
.newsletter-section .margin-note {
  color: var(--violet-100);
  border-color: var(--violet-100);
}
.newsletter-section h2 { color: var(--white); }
.newsletter-section .lead { color: var(--paper); }
.newsletter-note {
  margin-top: 18px;
  color: var(--violet-100);
  font-size: 0.88rem;
}
.newsletter-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}
.newsletter-form { position: relative; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--violet-900);
  font-weight: 700;
  font-size: 0.9rem;
}
.form-field label span {
  color: var(--gray-600);
  font-weight: 400;
}
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="email"]:focus {
  border-color: var(--violet-500);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(107, 47, 143, 0.16);
}
.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--gray-600);
  cursor: pointer;
}
.consent-field input { margin-top: 3px; flex: 0 0 auto; }
.consent-field a { color: var(--violet-700); }
.form-honeypot {
  position: absolute !important;
  left: -5100px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.newsletter-submit { width: 100%; }
.newsletter-result {
  display: block;
  width: 100%;
  min-height: 0;
  height: 0;
  margin-top: 0;
  border: 0;
  background: transparent;
}
.newsletter-result.active {
  height: 72px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .newsletter-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-card { padding: 24px 20px; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink); color: var(--line);
  padding: 56px 24px 32px; font-size: 0.88rem;
}
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 720px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--line); margin-bottom: 14px; font-weight: 700;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-legal {
  max-width: var(--max-w); margin: 40px auto 0;
  padding-top: 20px; border-top: 1px solid var(--teal-mid, #3a7f83);
  font-size: 0.78rem; color: var(--line);
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 18px 24px;
  display: none;
  border-top: 3px solid var(--violet-500);
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  font-size: 0.85rem;
}
.cookie-inner p { flex: 1 1 380px; }
.cookie-inner a { color: var(--line); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { background: var(--violet-700); color: var(--white); }

/* ============ UTILIDADES ============ */
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.center { text-align: center; }
.small { font-size: 0.85rem; color: var(--gray-600); }
.notice {
  background: var(--violet-100); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 0.9rem; color: var(--violet-900);
}
.legal-body h2 { font-size: 1.4rem; margin-top: 40px; }
.legal-body h3 { margin-top: 24px; }
.legal-body ul { margin: 12px 0 12px 22px; }
.placeholder-flag { background: #fff3cd; padding: 0 4px; font-weight: 600; }
