/* ============================================================
   LA SEVILLANA COMEDOR EJECUTIVO — Modern Site Styles
   ============================================================ */

:root {
  --cream:      #f5f0e8;
  --cream-dark: #ede4d0;
  --olive:      #84a251;
  --olive-dark: #6a8240;
  --brown:      #5c3d2e;
  --dark:       #2a2017;
  --text:       #3d3028;
  --text-light: #7a6a5a;
  --white:      #ffffff;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(42,32,23,.12);
  --shadow-lg:  0 12px 48px rgba(42,32,23,.18);
  --transition: .3s ease;
  --nav-h:      72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 600;
}

em { font-style: italic; }

.section-pretitle {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .6rem;
}
.section-pretitle.light { color: var(--cream-dark); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-title.light { color: var(--white); }

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 40px;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}
.btn-primary:hover { background: var(--olive-dark); border-color: var(--olive-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(132,162,81,.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-whatsapp:hover { background: #1ebe5d; border-color: #1ebe5d; transform: translateY(-2px); }

.btn.full-width { width: 100%; justify-content: center; }

/* ── NAV ── */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.nav-header.scrolled {
  background: rgba(245,240,232,.97);
  box-shadow: 0 2px 20px rgba(42,32,23,.1);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo img {
  height: 66px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition), height var(--transition);
}
.nav-header.scrolled .nav-logo img {
  filter: none;
  height: 58px;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
}
.nav-header.scrolled .nav-logo-text { color: var(--dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 2px;
  background: var(--olive);
  transition: right var(--transition);
}
.nav-links a:hover::after { right: 0; }
.nav-links a:hover { color: var(--white); }

.nav-header.scrolled .nav-links a { color: var(--text); }
.nav-header.scrolled .nav-links a:hover { color: var(--olive); }

.nav-links .nav-cta {
  background: var(--olive);
  color: var(--white) !important;
  padding: .45rem 1.2rem;
  border-radius: 40px;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--olive-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-header.scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,32,23,.75) 0%, rgba(42,32,23,.45) 60%, rgba(132,162,81,.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 780px;
}

.hero-pretitle {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-dark);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp .8s .5s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp .8s .7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  animation: bounce 2s infinite;
  z-index: 2;
}
.hero-scroll svg { width: 32px; height: 32px; }

/* ── ABOUT ── */
.about { padding: 6rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--olive);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 110px;
}
.about-badge-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.about-badge-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .3rem;
  display: block;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

/* ── STATS ── */
.stats {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.stats-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.stats-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,32,23,.88) 0%, rgba(92,61,46,.82) 100%);
}
.stats .container { position: relative; z-index: 2; }

.stats-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.stats-desc {
  color: rgba(245,240,232,.8);
  max-width: 560px;
  margin: 1rem auto 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  border: 1px solid rgba(245,240,232,.15);
  border-radius: var(--radius);
  background: rgba(245,240,232,.06);
  backdrop-filter: blur(4px);
}
.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--olive);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,240,232,.75);
}

/* ── SERVICES ── */
.services { padding: 6rem 0; background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-img {
  overflow: hidden;
  height: 220px;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }

.service-body {
  padding: 1.5rem;
}
.service-body h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: .6rem;
}
.service-body p {
  color: var(--text-light);
  font-size: .95rem;
}

/* ── GALLERY ── */
.gallery { padding: 6rem 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 2.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform .5s ease;
  display: block;
}
.gallery-item.tall img { min-height: 420px; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42,32,23,0);
  transition: background var(--transition);
}
.gallery-item:hover::after { background: rgba(42,32,23,.12); }

/* ── CTA BANNER ── */
.cta-banner {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,61,46,.9) 0%, rgba(132,162,81,.75) 100%);
}
.cta-banner .container { position: relative; z-index: 2; }

.cta-content { text-align: center; }
.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 640px;
  margin-inline: auto;
}
.cta-content p {
  color: rgba(245,240,232,.85);
  margin-bottom: 2rem;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT ── */
.contact { padding: 6rem 0; background: var(--cream); }

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

.contact-info p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.contact-icon.whatsapp-icon { color: #25D366; }

.contact-item > div:last-child { display: flex; flex-direction: column; }
.contact-item strong {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin-bottom: .2rem;
}
.contact-item span, .contact-item a {
  color: var(--text-light);
  font-size: .95rem;
}
.contact-item a:hover { color: var(--olive); }

/* FORM */
.contact-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid rgba(92,61,46,.2);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--olive); }

.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  font-size: .85rem;
  color: var(--text-light);
  margin-top: .5rem;
}
.form-note a { color: var(--olive); font-weight: 700; }
.form-note a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: rgba(245,240,232,.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,.1);
}

.footer-logo { height: 48px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; }

.footer-links h4, .footer-contact h4 {
  font-family: 'Lato', sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--olive); }

.footer-contact p { font-size: .9rem; margin-bottom: .6rem; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--olive); }

.footer-sister-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--olive) !important;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: .8rem;
  color: rgba(245,240,232,.4);
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #25D366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 900;
  transition: all var(--transition);
}
.whatsapp-float:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { gap: 3rem; }
  .services-grid { gap: 1.5rem; }
  .contact-grid { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(245,240,232,.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 8px 24px rgba(42,32,23,.15);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; font-size: 1.1rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-badge { right: 0; }

  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }

  .services-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item.tall { grid-row: span 1; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

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

  .footer-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }
}
