/* ══════════════════════════════════════════════
   TOLDOS FRAN — styles.css
   ══════════════════════════════════════════════ */

/* ── VARIABLES ────────────────────────────────── */
:root {
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Libre Baskerville', Georgia, serif;
  --red:        #C0202A;
  --red-dark:   #9a1820;
  --navy:       #1B2D6B;
  --navy-light: #2a4190;
  --blue:       #6aaed6;
  --blue-lt:    #c5dff0;
  --white:      #ffffff;
  --bg:         #f7f8fc;
  --bg-dark:    #1a3a5e;
  --text:       #1a1a2e;
  --muted:      #5a607a;
  --border:     #e2e6f0;
}

/* ── RESET ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-heading);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── BOTONES GLOBALES ─────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 34px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 13px 34px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── NAVBAR ───────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
#navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 80px; width: 80px;
  border-radius: 10%;
  background: #fff;
  padding: 3px;
  object-fit: contain;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand strong {
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
}
.nav-brand span {
  font-size: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
#navbar.scrolled .nav-brand strong { color: var(--navy); }
#navbar.scrolled .nav-brand span   { color: var(--muted); }

/* Links */
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0 auto;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
#navbar.scrolled .nav-links a { color: var(--muted); }
#navbar.scrolled .nav-links a:hover { color: var(--navy); }

/* CTA button en navbar */
.nav-cta {
  flex-shrink: 0;
  background: var(--red);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
#navbar.scrolled .hamburger span { background: var(--navy); }

/* ── HERO ─────────────────────────────────────── */
#inicio {
  min-height: 100vh;
  background: linear-gradient(120deg, #1a3a5e 0%, #2255a0 55%, #2e6ab5 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Círculo decorativo */
#inicio::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(106,174,214,0.12) 0%, transparent 65%);
  pointer-events: none;
}
#inicio::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(192,32,42,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 4vw 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

/* Texto izquierdo */
.hero-text { display: flex; flex-direction: column; gap: 28px; }

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--blue);
}
.hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 500px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Tarjeta derecha */
.hero-aside { display: flex; align-items: center; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 36px 32px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 380px;
}
.hero-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
}
.hero-card-item svg {
  flex-shrink: 0;
  color: var(--blue);
  background: rgba(106,174,214,0.15);
  border-radius: 50%;
  padding: 3px;
  width: 28px; height: 28px;
}

/* Scroll hint */
.hero-scroll {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ── SECCIONES (comunes) ──────────────────────── */
.section-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 4vw;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

/* ── SERVICIOS ────────────────────────────────── */
#servicios { background: var(--bg); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.svc-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,45,107,0.07);
  transition: transform 0.28s, box-shadow 0.28s;
  cursor: pointer;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27,45,107,0.14);
}

/* Imagen superior de la tarjeta */
.svc-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.4s;
}
.svc-card:hover .svc-img { transform: scale(1.03); }
.svc-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,31,53,0.55) 100%);
}

/* Cuerpo de la tarjeta */
.svc-body {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.svc-body p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}
.svc-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  transition: letter-spacing 0.2s;
}
.svc-card:hover .svc-link { letter-spacing: 0.12em; }

/* ── FRANJA CTA ───────────────────────────────── */
.cta-strip {
  background: var(--navy);
  padding: 48px 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}
.cta-strip p {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  line-height: 1.65;
}

/* ── CONTACTO ─────────────────────────────────── */
#contacto { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

/* Info lateral */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cinfo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: 10px;
  transition: box-shadow 0.2s;
}
.cinfo-item:hover { box-shadow: 0 4px 16px rgba(27,45,107,0.1); }
.cinfo-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinfo-body label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 3px;
}
.cinfo-body a,
.cinfo-body span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}
.cinfo-body a:hover { color: var(--red); }

/* WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }

/* Formulario */
.contact-form-wrap {
  background: var(--bg);
  border-radius: 14px;
  padding: 42px 38px;
  box-shadow: 0 4px 32px rgba(27,45,107,0.08);
}
.contact-form-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fgroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.fgroup label {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.fgroup input,
.fgroup select,
.fgroup textarea {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fgroup input:focus,
.fgroup select:focus,
.fgroup textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,45,107,0.09);
}
.fgroup textarea { resize: vertical; min-height: 120px; }

.btn-send {
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-send:hover { background: var(--navy-light); transform: translateY(-1px); }

.form-note {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: #0a1e38;
  padding: 36px 4vw;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo img {
  height: 40px; width: 40px;
  border-radius: 10%;
  background: #fff;
  padding: 2px;
  object-fit: contain;
}
.footer-logo strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}
.footer-logo span {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-inner {height: 70px;}
  .nav-logo img{height: 52px; width: 52px;}
  .nav-brand strong{font-size: 1.2rem;}
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 24px 4vw;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: rgba(255,255,255,0.85) !important; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  footer .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .cta-strip { flex-direction: column; gap: 20px; }
}
