/* ================================================
   RIENDA — BRANDS & STRATEGY
   style.css — Estilos globales
   ================================================ */

:root {
  --verde-bosque: #2D3A28;
  --verde-oscuro: #1E2A1E;
  --naranja: #C17B3C;
  --crema: #EDE8DC;
  --negro: #111111;
  --gris: #6B7280;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--negro); color: var(--crema); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ================================================
   NAVEGACIÓN
   ================================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 3rem;
  transition: background 0.3s ease;
}
.nav.scrolled { background: rgba(17,17,17,0.95); backdrop-filter: blur(8px); }

.nav-logo { font-size: 1.1rem; font-weight: bold; color: var(--crema); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links > a { font-size: 0.9rem; color: var(--crema); transition: opacity 0.2s; }
.nav-links > a:hover { opacity: 0.7; }

.dropdown { position: relative; }
.dropdown-toggle { font-size: 0.9rem; color: var(--crema); cursor: pointer; }
.dropdown-toggle:hover { opacity: 0.7; }

.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: rgba(17,17,17,0.97); border: 1px solid rgba(237,232,220,0.15);
  padding: 1rem 0 0.5rem; min-width: 160px; border-radius: 2px;
}
.dropdown:hover .dropdown-menu { display: block; }
/* Puente invisible para que el mouse pueda pasar del toggle al menú sin perder el hover */
.dropdown::after {
  content: ''; position: absolute; top: 100%; left: 0;
  width: 100%; height: 1rem; background: transparent;
}
.dropdown-menu a { display: block; padding: 0.65rem 1.2rem; font-size: 0.85rem; transition: background 0.2s; }
.dropdown-menu a:hover { background: rgba(237,232,220,0.08); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--crema); transition: all 0.3s; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav.open .nav-links {
    display: flex; flex-direction: column; position: fixed;
    inset: 0; background: var(--negro); z-index: 1000;
    justify-content: center; align-items: center; gap: 2.5rem;
  }
  .nav.open .nav-links > a { font-size: 1.4rem; }
  .nav.open .dropdown-toggle { font-size: 1.4rem; }
  .nav.open .dropdown-menu {
    display: flex; flex-direction: column; position: static;
    background: transparent; border: none; padding: 0.5rem 0; align-items: center;
  }
  .nav.open .dropdown-menu a { font-size: 1rem; text-align: center; }
  .nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .hamburger span:nth-child(2) { opacity: 0; }
  .nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ================================================
   HERO
   ================================================ */

.hero {
  position: relative; height: 100vh; min-height: 600px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.38); z-index: 1;
}
.hero-title {
  position: relative; z-index: 2;
  font-size: clamp(4rem, 12vw, 9rem); font-weight: 900;
  color: var(--crema); line-height: 0.92;
  padding: 0 2.5rem 2rem; width: 100%;
}

/* Home hero específico */
.home-hero-content {
  position: absolute; bottom: 3rem; left: 0; right: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: flex-end; padding: 0 2.5rem; gap: 2rem;
}
.hero-location { font-size: 0.82rem; color: var(--crema); line-height: 1.7; }
.hero-right { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.hero-copy { font-size: 0.95rem; color: var(--crema); line-height: 1.75; }

/* ================================================
   BOTONES
   ================================================ */

.btn {
  display: inline-block; padding: 0.9rem 2rem;
  font-size: 0.9rem; font-family: Arial, sans-serif;
  cursor: pointer; transition: all 0.2s; border: none; text-align: center;
}
.btn-ghost {
  background: rgba(237,232,220,0.08);
  color: var(--crema); border: 1px solid rgba(237,232,220,0.35);
}
.btn-ghost:hover { background: rgba(237,232,220,0.15); }
.btn-dark { background: var(--negro); color: var(--crema); border: 1px solid var(--negro); }
.btn-dark:hover { background: #222; }

/* ================================================
   MANIFESTO
   ================================================ */

.manifesto {
  background: var(--verde-bosque); padding: 6rem 3rem; text-align: center;
}
.manifesto-deco {
  font-size: 0.75rem; color: rgba(237,232,220,0.45); margin-bottom: 3rem;
}
.manifesto-deco.bottom { margin-top: 3rem; margin-bottom: 0; }
.manifesto-text {
  max-width: 680px; margin: 0 auto;
  font-size: 1rem; line-height: 2.1; color: var(--crema);
}
.manifesto-text em { font-style: italic; }

/* ================================================
   FORMULARIO DE CONTACTO
   ================================================ */

.contact-section {
  background: #F5F3EE; padding: 6rem 3rem;
  display: grid; grid-template-columns: 0.5fr 1fr; gap: 4rem; align-items: start;
}
.contact-eyebrow {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: #888; padding-top: 0.5rem;
}
.contact-title {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
  color: #111; line-height: 1; margin-bottom: 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.8rem; color: #111; }
.form-group label span { color: #999; margin-left: 0.3rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 0.7rem 0;
  border: none; border-bottom: 1px solid rgba(0,0,0,0.25);
  background: transparent; font-family: Arial, sans-serif;
  font-size: 0.95rem; color: #111; outline: none;
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-submit {
  align-self: flex-end; padding: 0.9rem 2rem;
  background: #F5F3EE; border: 1px solid #111;
  color: #111; font-family: Arial, sans-serif; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
}
.form-submit:hover { background: #111; color: var(--crema); }

/* ================================================
   SECCIÓN ABOUT + NEWSLETTER
   ================================================ */

.about-section {
  background: var(--negro); padding: 5rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.about-brand { font-size: 1.4rem; font-weight: 900; color: var(--crema); letter-spacing: 0.08em; }
.about-tagline { font-size: 0.9rem; color: var(--gris); margin-top: 0.4rem; }
.about-description { font-size: 0.9rem; color: var(--crema); line-height: 1.8; margin-bottom: 2rem; }
.newsletter-title { font-size: 1.25rem; font-weight: bold; color: var(--naranja); margin-bottom: 0.4rem; }
.newsletter-sub { font-size: 0.88rem; color: var(--crema); margin-bottom: 1.2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-input {
  width: 100%; padding: 0.9rem 1rem;
  background: rgba(237,232,220,0.07); border: 1px solid rgba(237,232,220,0.18);
  color: var(--crema); font-family: Arial, sans-serif; font-size: 0.9rem; outline: none;
}
.newsletter-input::placeholder { color: rgba(237,232,220,0.35); }
.newsletter-btn {
  align-self: flex-start; padding: 0.85rem 2rem;
  background: transparent; border: 1px solid rgba(237,232,220,0.35);
  color: var(--crema); font-family: Arial, sans-serif; font-size: 0.88rem; cursor: pointer;
  transition: all 0.2s;
}
.newsletter-btn:hover { background: rgba(237,232,220,0.1); }

/* ================================================
   PÁGINAS DE SERVICIO — HEADLINE
   ================================================ */

.service-headline { padding: 5rem 3rem; }
.service-headline.dark { background: var(--verde-bosque); }
.service-headline.black { background: var(--negro); }
.service-headline.light { background: #F5F3EE; }

.service-headline-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.05;
  max-width: 700px;
}
.service-headline.dark .service-headline-title { color: var(--crema); }
.service-headline.light .service-headline-title { color: #111; }
.service-headline.black .service-headline-title { color: var(--crema); }
.service-headline.black .service-headline-title .accent { color: var(--naranja); }

/* ================================================
   PÁGINAS DE SERVICIO — GRILLA
   ================================================ */

.service-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0 3rem 4rem;
}
.service-grid.dark-bg { background: var(--verde-bosque); }
.service-grid.black-bg { background: var(--negro); }
.service-grid.light-bg { background: #F5F3EE; }

.service-item { padding: 2.5rem 0; }
.service-item:nth-child(odd) { padding-right: 3rem; border-right: 1px solid rgba(237,232,220,0.18); }
.service-item:nth-child(even) { padding-left: 3rem; }
.service-item:nth-child(1),
.service-item:nth-child(2) { border-bottom: 1px solid rgba(237,232,220,0.18); }

.service-grid.light-bg .service-item:nth-child(odd) { border-right-color: rgba(0,0,0,0.12); }
.service-grid.light-bg .service-item:nth-child(1),
.service-grid.light-bg .service-item:nth-child(2) { border-bottom-color: rgba(0,0,0,0.12); }
.service-grid.black-bg .service-item:nth-child(odd) { border-right-color: rgba(193,123,60,0.3); }
.service-grid.black-bg .service-item:nth-child(1),
.service-grid.black-bg .service-item:nth-child(2) { border-bottom-color: rgba(193,123,60,0.3); }

.service-item-title { font-size: 1.15rem; font-weight: bold; margin-bottom: 0.7rem; }
.service-item-text { font-size: 0.88rem; line-height: 1.75; opacity: 0.85; }
.service-grid.dark-bg .service-item-title,
.service-grid.dark-bg .service-item-text { color: var(--crema); }
.service-grid.black-bg .service-item-title,
.service-grid.black-bg .service-item-text { color: var(--crema); }
.service-grid.light-bg .service-item-title,
.service-grid.light-bg .service-item-text { color: #111; }

/* ================================================
   GALERÍA DE IMÁGENES
   ================================================ */

.image-gallery { display: grid; grid-template-columns: 1fr 1fr; }
.gallery-item {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: #222;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-label {
  position: absolute; bottom: 1rem; right: 1rem;
  font-size: 0.68rem; color: var(--crema); text-align: right;
  line-height: 1.4; opacity: 0.85; letter-spacing: 0.05em;
}
.gallery-placeholder {
  width: 100%; height: 100%; background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: rgba(237,232,220,0.3); text-align: center; padding: 1rem;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  background: var(--negro); border-top: 1px solid rgba(237,232,220,0.1);
  padding: 1.8rem 3rem; display: flex;
  justify-content: space-between; align-items: center;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.8rem; color: var(--crema); opacity: 0.55; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: 0.72rem; color: var(--crema); opacity: 0.3; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
  .home-hero-content { grid-template-columns: 1fr; padding: 0 1.5rem; bottom: 2rem; }
  .hero-title { font-size: clamp(3.5rem, 16vw, 6rem); padding: 0 1.5rem 1.5rem; }

  .manifesto { padding: 4rem 1.5rem; }

  .contact-section { grid-template-columns: 1fr; padding: 3.5rem 1.5rem; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { align-self: stretch; }

  .about-section { grid-template-columns: 1fr; padding: 3.5rem 1.5rem; gap: 2.5rem; }

  .service-headline { padding: 3rem 1.5rem; }

  .service-grid { grid-template-columns: 1fr; padding: 0 1.5rem 3rem; }
  .service-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .service-item:nth-child(even) { padding-left: 0; }
  .service-item:nth-child(2) { border-bottom: 1px solid rgba(237,232,220,0.18); }
  .service-item:nth-child(3) { border-bottom: 1px solid rgba(237,232,220,0.18); }

  .image-gallery { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; gap: 1rem; padding: 1.5rem; text-align: center; }
  .footer-links { flex-direction: column; gap: 0.75rem; align-items: center; }
}
