/* ============================================
   NecesitoProgramador.es — styles.css
   Holded Brains SLU
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────── */
:root {
  --bg:          #080808;
  --bg-card:     #111111;
  --bg-section:  #0e0e0e;
  --text:        #f0f0f0;
  --text-muted:  #888888;
  --accent:      #dd127b;
  --accent-dark: #a80d5c;
  --accent-glow: rgba(221,18,123,0.18);
  --border:      rgba(255,255,255,0.07);
  --white:       #ffffff;
  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:      6px;
  --transition:  0.28s ease;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #ff3d9a; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--white);
}

p { color: var(--text); }

/* ── Utility ────────────────────────────────── */
.accent        { color: var(--accent); }
.text-muted-c  { color: var(--text-muted); }
.section-pad   { padding: 90px 0; }
.section-pad-sm{ padding: 60px 0; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 2px 30px rgba(221,18,123,0.1);
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--accent); }
.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition);
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}
.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240,240,240,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Buttons ────────────────────────────────── */
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: inline-block;
}
.btn-accent:hover {
  background: #f01d8a;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.72rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ── Hero ───────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(221,18,123,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  color: var(--white);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.2rem;
  font-weight: 300;
}
.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 390px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.hero-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 0;
  left: 0;
}
/*
.hero-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(221,18,123,0.05) 0%, transparent 60%);
}
.hero-photo-placeholder i {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.4;
}
*/

/* ── Section Headers ────────────────────────── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}
.divider-accent {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 1.2rem 0 1.8rem;
  border-radius: 2px;
}

/* ── Cards ──────────────────────────────────── */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  height: 100%;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.card-dark:hover {
  border-color: rgba(221,18,123,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.card-dark:hover::before {
  transform: scaleX(1);
}
.card-icon {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-title-sm {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.card-text-sm {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Strong Points ──────────────────────────── */
.strengths-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.strength-item:last-child { border-bottom: none; }
.strength-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  min-width: 40px;
}
.strength-text {
  font-size: 1rem;
  color: var(--text);
  padding-top: 0.2rem;
}

/* ── CTA Banner ─────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #130008 0%, #1a0010 50%, #0d0005 100%);
  border: 1px solid rgba(221,18,123,0.2);
  border-radius: 12px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(221,18,123,0.08) 0%, transparent 70%);
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
  position: relative;
}
.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  position: relative;
}
.cta-banner .btn-accent { position: relative; }

/* ── Page Hero (inner pages) ────────────────── */
.page-hero {
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(221,18,123,0.06) 0%, transparent 65%);
}
.page-hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.page-hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ── Info Blocks ────────────────────────────── */
.info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}
.info-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.info-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Contact Section ────────────────────────── */
.contact-data-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-data-item:last-child { border-bottom: none; }
.contact-icon {
  width: 42px; height: 42px;
  background: var(--accent-glow);
  border: 1px solid rgba(221,18,123,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}
.contact-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}
.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 360px;
}
.map-wrapper iframe {
  width: 100%; height: 100%;
  filter: grayscale(0.6) invert(0.85) hue-rotate(180deg);
}

/* ── Contact Form ───────────────────────────── */
.form-control-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  width: 100%;
  transition: border-color var(--transition);
}
.form-control-dark:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control-dark::placeholder { color: var(--text-muted); }
.form-label-dark {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

/* ── Odoo Features ──────────────────────────── */
.odoo-badge {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: all var(--transition);
}
.deploy-card:hover {
  border-color: rgba(221,18,123,0.3);
  transform: translateY(-3px);
}
.deploy-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Verifactu / Factura Timeline ───────────── */
.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 20px; top: 42px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 42px; height: 42px;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.footer-data {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.9;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-legal a {
  color: var(--text-muted);
  margin-left: 1.2rem;
  font-size: 0.78rem;
}
.footer-legal a:hover { color: var(--accent); }

/* ── Legal Pages ────────────────────────────── */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}
.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.legal-content ul { padding-left: 1.4rem; }

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.22s; }
.fade-up-d3 { animation-delay: 0.34s; }
.fade-up-d4 { animation-delay: 0.46s; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 991px) {
  .hero { min-height: auto; padding: 60px 0; }
  .hero-photo-placeholder { aspect-ratio: 1/1; margin-top: 2.5rem; }
  .section-pad { padding: 60px 0; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal a:first-child { margin-left: 0; }
  .timeline-item::before { left: 19px; }
}
