/* =========================================================
   COMERCIALIZADORA ROQUE — style.css
   ========================================================= */

/* --- Variables ----------------------------------------- */
:root {
  --color-accent:   #000000;
  --color-dark:     #000000;
  --color-white:    #ffffff;
  --color-gray:     #808080;
  --color-light:    #f5f5f5;
  --color-section:  #1c2b3a;
  --font:           'Mulish', sans-serif;
  --font-alt:       'Heebo', sans-serif;
  --container:      1200px;
  --radius:         4px;
  --transition:     0.3s ease;
}

/* --- Reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); color: var(--color-dark); background: var(--color-white); line-height: 1.6; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: none;
}
.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* =========================================================
   HEADER — over-content, transparente → sólido al scroll
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.header-logo img {
  height: 72px;
  width: auto;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 0;
}
.nav-list a {
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.site-header.scrolled .nav-list a { color: var(--color-dark); }
.nav-list a:hover,
.nav-list a.active { opacity: 0.7; }

.header-tel a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-white);
  transition: color var(--transition);
  white-space: nowrap;
}
.site-header.scrolled .header-tel a { color: var(--color-dark); }
.header-tel svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
}
.site-header.scrolled .hamburger span { background: var(--color-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--color-white);
  border-top: 1px solid #eee;
  padding: 8px 0 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
  border-bottom: 1px solid #f0f0f0;
}
.nav-mobile a:hover { background: var(--color-light); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-content h1 {
  font-family: var(--font);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 4px;
  line-height: 1.15;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--color-gray);
  margin: 16px 0;
}

.hero-content p {
  font-family: var(--font-alt);
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* =========================================================
   SECCIÓN: NOSOTROS
   ========================================================= */
.section-about {
  padding: 80px 0;
  border-bottom: 2px solid var(--color-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: start;
}

.about-left h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.about-right p {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-dark);
}

/* =========================================================
   SECCIÓN: SERVICIOS
   ========================================================= */
.section-services {
  padding: 70px 0;
}

.section-services .section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-services h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-services .section-desc {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-dark);
}

.section-divider {
  width: 100%;
  height: 2px;
  background: var(--color-gray);
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover img { transform: scale(1.06); }

.service-caption {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.service-card:hover .service-caption { background: rgba(0,0,0,0.62); }

.service-caption h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
}

/* =========================================================
   SECCIÓN: ESPECIALIDADES
   ========================================================= */
.section-specialties {
  background: var(--color-section);
  padding: 70px 0;
  color: var(--color-white);
}

.section-specialties h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.specialties-list {
  list-style: disc;
  padding-left: 20px;
}
.specialties-list li {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-white);
  line-height: 1.8;
}

/* =========================================================
   SECCIÓN: ENTREGA
   ========================================================= */
.section-delivery {
  padding: 70px 0;
}

.section-delivery .section-header {
  text-align: center;
  margin-bottom: 32px;
}
.section-delivery h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-delivery p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
}
.section-delivery strong { font-weight: 700; }

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.delivery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* =========================================================
   SECCIÓN: CONTACTO
   ========================================================= */
.section-contact {
  padding: 70px 0;
  background: var(--color-light);
}

.section-contact h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

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

.contact-info p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--color-dark);
}
.contact-info strong { font-weight: 700; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--color-dark); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { margin-top: 4px; }

.form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-msg.success { display: block; background: #d4edda; color: #155724; }
.form-msg.error   { display: block; background: #f8d7da; color: #721c24; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 20px 24px;
  font-size: 0.85rem;
  font-family: var(--font);
}

/* =========================================================
   AGRADECIMIENTO
   ========================================================= */
.thanks-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.thanks-section h1 {
  font-size: 1.8rem;
  font-weight: 700;
  max-width: 560px;
  line-height: 1.4;
  margin-bottom: 28px;
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE — TABLET (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.4rem; }
  .about-grid      { grid-template-columns: 1fr; gap: 28px; }
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .contact-grid    { grid-template-columns: 1fr; gap: 36px; }
  .specialties-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================================= */
@media (max-width: 768px) {
  /* Header */
  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 12px 16px;
  }
  .nav-list  { display: none; }
  .header-tel { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p  { font-size: 0.9rem; }

  /* Secciones */
  .section-about, .section-services, .section-specialties,
  .section-delivery, .section-contact { padding: 48px 0; }

  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid   { grid-template-columns: 1fr; }
  .specialties-grid { grid-template-columns: 1fr; gap: 24px; }

  .contact-form .form-row { grid-template-columns: 1fr; }
}
