/* ═══════════════════════════════════════════════════
   danielberea.com — CSS mobile-first, sin frameworks.
═══════════════════════════════════════════════════ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f7fb;
  --text:      #15171c;
  --muted:     #5b6072;
  --accent:    #1f4ed8;
  --accent-hover: #1a3fb2;
  --border:    #e3e6ee;
  --err:       #c53030;
  --ok:        #1e7a3e;
  --radius:    10px;
  --maxw:      1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; color: var(--text); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.25rem;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.hero-content { width: 100%; text-align: center; }
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 auto;
}
.hero-photo {
  width: 100%;
  max-width: 360px;
}
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .12);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Desktop: foto a la derecha, texto a la izquierda. */
@media (min-width: 760px) {
  .hero { padding: 5rem 1.25rem; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .hero-content {
    flex: 1;
    text-align: left;
  }
  .hero-subtitle { margin: 0; }
  .hero-photo {
    flex-shrink: 0;
    width: clamp(260px, 35vw, 420px);
    max-width: none;
  }
}

/* ═══════════════════════ SECCIONES ═══════════════════════ */
.section { padding: 3.5rem 1.25rem; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: .5rem;
}
.section-intro {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 60ch;
}

/* ═══════════════════════ FORMULARIO ═══════════════════════ */
.contact-form { max-width: 640px; }
.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 540px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field { display: block; margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 78, 216, .15);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--muted);
  margin: .5rem 0 1.5rem;
  cursor: pointer;
}
.form-consent input { margin-top: .25rem; flex-shrink: 0; }
.form-captcha { margin: 0 0 1.5rem; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.8rem;
  border-radius: var(--radius);
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.form-status { font-size: .9rem; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Honeypot: ozona_core.antispam.Honeypot ya inyecta el campo con position:absolute,
   pero por defensividad forzamos cualquier input con name=hp_* fuera de pantalla. */
input[name^="hp_"] {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; opacity: 0;
}

/* ═══════════════════════ FOOTER ═══════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  background: var(--bg-soft);
}
.footer-copy {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}
