/* =========================
   VARIABLES (COLORES PRO)
========================= */
:root {
  --color-principal: #3a7d44; /* verde gourmet */
  --color-principal-hover: #2f6e3a;
  --color-secundario: #1d3557;
  --color-fondo: #ffffff;
  --color-texto: #222;
  --color-gris: #777;
  --color-borde: #eaeaea;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.5;
}

/* =========================
   NAVBAR (GLASS + PREMIUM)
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1.2rem 10%;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
}

.navbar nav a {
  color: var(--color-texto);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: 0.3s;
}

.navbar nav a:hover {
  color: var(--color-principal);
}

/* =========================
   HERO GRID
========================= */
.hero-grid {
  min-height: 100vh;
  padding: 140px 10% 80px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* TEXTO HERO */
.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--color-gris);
  margin-bottom: 2rem;
}

/* BOTONES */
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-principal {
  background: var(--color-principal);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-principal:hover {
  background: var(--color-principal-hover);
  transform: translateY(-2px);
}

.btn-secundario {
  border: 2px solid var(--color-principal);
  color: var(--color-principal);
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-secundario:hover {
  background: var(--color-principal);
  color: white;
}

/* =========================
   GRID OPCIONES (TIPO APP)
========================= */
.grid-opciones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card-grid {
  border-radius: 24px;
  overflow: hidden;
  background: white;
  text-decoration: none;
  color: var(--color-texto);

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.card-grid:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* IMAGEN SUPERIOR */
.card-grid::before {
  content: "";
  display: block;
  height: 140px;
  background-size: cover;
  background-position: center;
}

/* Asignación de imágenes */
.bg-paella::before { background-image: url("./images/paella.jpeg"); }
.bg-mesa2::before { background-image: url("./images/mesa2.jpeg"); }
.bg-embutidos::before { background-image: url("./images/embutidos.jpeg"); }
.bg-espacio::before { background-image: url("./images/espacio.jpeg"); }

/* CONTENIDO DE CARD */
.card-grid .overlay {
  padding: 1.2rem;
}

.card-grid h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* =========================
   SECCIONES
========================= */
.seccion {
  padding: 5rem 10%;
  max-width: 1400px;
  margin: auto;
}

.seccion h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-secundario);
  font-size: 2rem;
}

/* =========================
   SERVICIOS
========================= */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}

.servicio {
  background: white;
  padding: 2rem;
  border-radius: 20px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.servicio:hover {
  transform: translateY(-6px);
}

/* =========================
   PRECIOS
========================= */
.precios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem;
}

.precio-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;

  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* =========================
   FAQ (ACORDEÓN VISUAL)
========================= */
.faq-item {
  background: #fafafa;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 15px;
  transition: 0.3s;
  cursor: pointer;
}

.faq-item:hover {
  background: #f1f1f1;
}

.faq-item h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* =========================
   CTA FINAL
========================= */
.cta-final {
  background: var(--color-principal);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.cta-final h2 {
  margin-bottom: 2rem;
}

/* =========================
   CONTACTO
========================= */
.contacto {
  text-align: center;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--color-secundario);
  color: white;
}

footer a {
  color: #ddd;
  text-decoration: none;
}

/* =========================
   WHATSAPP FLOAT
========================= */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  z-index: 999;
}

.whatsapp-btn img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: 0.2s;
}

.whatsapp-btn img:hover {
  transform: scale(1.15);
}

/* =========================
   ANIMACIONES SUAVES
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .grid-opciones {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .seccion {
    padding: 3rem 1.5rem;
  }
}