:root {
  --brand-blue: #1E73B8;
  --text: #333;
  --muted: #b0b0b0;
  --muted-strong: #4a4a4a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: #f7f7f7;
  line-height: 1.4;
  letter-spacing: 0.5px;
}


.top-bar-blue {
  background: var(--brand-blue);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
}

.top-bar-white {
  background: #fff;
  color: var(--brand-blue);
  padding: 8px 0;
}
.top-bar-right {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 14px; padding-right: 15px;
}
.top-item {
  color: var(--brand-blue); text-decoration: none;
  font-size: 0.9em; transition: opacity .35s, color .35s;
}
.top-item:hover { opacity: .8; }
.vertical-sep { opacity: .4; }


.header {
  position: sticky; top: 0; z-index: 999;
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 10px 20px;
  transition: all .15s;
}
.header.scrolled {
  box-shadow: 0 5px 5px rgba(0,0,0,0.1);
}
.logo img {
  height: 75px; padding-left: 30px; transition: all .15s;
}
.header.scrolled .logo img { height: 65px; }


.hamburger {
  display: none; font-size: 26px; background: none; border: none; cursor: pointer;
}
.nav ul {
  display: flex; list-style: none; gap: 25px;
  margin-left: auto; padding-right: 30px;
}
.nav-link {
  color: var(--muted); text-decoration: none;
  font-size: 17px; font-weight: 500;
  position: relative; transition: all .15s;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 100%; height: 1px; background: var(--brand-blue);
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform .15s;
}
.nav-link:hover { color: var(--muted-strong); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: #2b2b2b; }
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }


.map-section { width: 100%; margin: 0 0 20px 0; }
.map-section iframe {
  display: block; width: 100%; height: 420px;
  border: 0; border-radius: 12px;
}
@media (max-width: 768px){
  .map-section iframe { height: 360px; }
}


.contact-section {
  display: flex; gap: 40px; align-items: stretch;
  max-width: 1100px; margin: 32px auto; padding: 0 15px;
}
.office-column { display: flex; flex-direction: column; flex: 1; gap: 20px; }
.office-info, .office-extra, .contact-form {
  background: rgba(255,255,255,.92);
  padding: 22px; border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
.office-info, .office-extra { flex: 1; }
.contact-form { flex: 1; }
.office-info h2, .office-extra h2, .contact-form h2 {
  margin-bottom: 30px; border-bottom: 1px solid var(--brand-blue);
  padding-bottom: 15px;
}
.info-block { margin-top: 14px; }
.info-block h3 { font-weight: 600; font-size: 1em; margin-bottom: 8px; }
.dot-list { list-style: disc; padding-left: 25px; }


.contact-form form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input, .contact-form textarea {
  font-family: 'Montserrat'; padding: 11px; border: 1px solid #ccc; border-radius: 6px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.hp-field { display: none !important; }
.form-errors { color: #c0382b; font-size: 13px; min-height: 18px; }
.contact-form button {
  background: var(--brand-blue); color: #fff; padding: 12px; border: none; border-radius: 6px;
  font-weight: 700; cursor: pointer; transition: background .25s, box-shadow .25s;
}
.contact-form button:hover {
  background: #0471bb; box-shadow: 0 4px 10px rgba(5,129,212,.2);
}


.whatsapp-btn {
  position: fixed; bottom: 20px; right: 20px;
  background: #25D366; color: #fff; font-size: 24px;
  padding: 12px 15px; border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,.2); text-decoration: none;
}


.footer-bar {
  margin-top: 28px; background: #626262; color: #fff; text-align: center; padding: 12px 10px;
}
.footer-bar a {
  color: #fff; font-size: 13px; text-decoration: none; position: relative;
}
.footer-bar a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 100%; height: 1px; background: #fff;
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform .25s;
}
.footer-bar a:hover::after { transform: translateX(-50%) scaleX(1); }


.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.reveal.in-view { opacity: 1; transform: translateY(0); }


@media (max-width: 768px) {
  .header { justify-content: center; padding: 10px 15px; }
  .logo img { height: 55px; padding-left: 0; }
  .hamburger { display: block; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
  .nav {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: #fff; border-top: 1px solid #eee;
    overflow: hidden; max-height: 0; opacity: 0;
    transition: max-height .35s, opacity .35s;
  }
  .nav.active { max-height: 500px; opacity: 1; }
  .nav ul { flex-direction: column; gap: 10px; padding: 12px 20px; }
  .contact-section { flex-direction: column; }
}


.slider {
  position: relative;
  width: 100%;
  height: 100vh; 
  overflow: hidden;
}
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}


.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: rgba(30,115,184,0.7); 
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: flex; justify-content: center; align-items: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 10;
}
.slider button:hover {
  background-color: var(--brand-blue);
}
.prev { left: 20px; }
.next { right: 20px; }


.welcome-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  background: #f7f7f7;
}
.welcome-section h1 {
  font-size: 3rem;
  color: var(--brand-blue);
  font-weight: 600;
}


/* HERO: full-screen background with overlay title */



.hero {
  min-height: calc(100vh - 80px); /* ajustado para incluir footer */
  background-image: url('recursos/Cocina-1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* oscurecer fondo */
}
.hero h1 {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; /* más grueso */
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  white-space: pre-line; /* permitir salto de línea */
}


/* Layout: make page fill full height and push hero to footer */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
header { flex: 0 0 auto; }
footer { flex: 0 0 auto; margin-top: 0; }
.hero { flex: 1 0 auto; margin: 0; }
/* Darker overlay so text contrasts better */
.hero::before { background: rgba(0,0,0,0.55); }
/* Stronger, centered headline on two lines */
.hero h1 {
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}
.hero h1 strong { font-weight: 900; }


/* Form inputs in italic */
form input, form textarea, form select {
  font-style: italic;
}


/* Campos del formulario en cursiva */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input[type="date"],
form input[type="time"],
form input[type="url"],
form textarea,
form select {
  font-style: italic;
}


/* Contact layout: align office and form columns equally */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.office-column, .contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}
.office-info {
  flex: 1;
}


/* Igualar altura entre info y formulario */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-info, .contact-form { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); height: 100%; }
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-info .info-block + .info-block { margin-top: 16px; }
.contact-info h2, .contact-form h2 { margin-top: 0; }


/* Contact two-column layout */
.contact-wrapper { display: flex; gap: 32px; align-items: stretch; }
.contact-info, .contact-form { flex: 1; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
@media (max-width: 900px) { .contact-wrapper { flex-direction: column; } }


/* Legal page styles */
.legal-page { max-width: 900px; margin: 60px auto; padding: 0 20px; font-family: 'Montserrat', sans-serif; }
.legal-page h1 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.legal-page h2 { font-size: 20px; font-weight: 600; margin: 24px 0 12px; }
.legal-page h3 { font-size: 18px; font-weight: 600; margin: 20px 0 8px; }
.legal-page p { margin-bottom: 16px; line-height: 1.6; color: #444; }
.legal-page ul { margin: 0 0 20px 20px; color: #444; }
.legal-page .highlight { font-style: italic; font-weight: 600; }
