/* =====================================================
   VARIABLES DE COLOR (fácil mantenimiento)
   ===================================================== */
:root {
  --green-main: #2f5d3a;
  --green-whatsapp: #25d366;
  --text-dark: #2c2c2c;
}

/* =====================================================
   RESET / BASE
   ===================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(0,0,0,0.4);
  color: white;
  transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
  background: var(--green-main);
  padding: 12px 40px;
}

.header a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  height: 100vh;
  background: url("../images/hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 10%;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  margin-bottom: 30px;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.whatsapp {
  background: var(--green-whatsapp);
  color: white;
}

.secondary {
  background: white;
  color: var(--green-main);
}

/* Contenedor de botones del hero */
.hero-buttons {
  display: flex;
  gap: 16px;
}

/* =====================================================
   SECCIONES GENERALES
   ===================================================== */
section {
  padding: 80px 10%;
}

.about,
.contact {
  text-align: center;
  max-width: 900px;
  margin: auto;
}

/* =====================================================
   GALERÍA
   ===================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.grid img {
  width: 100%;
  border-radius: 8px;
}

/* =====================================================
   VIDEO
   ===================================================== */
.video video {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: auto;
}

/* =====================================================
   CTA
   ===================================================== */
.cta {
  background: var(--green-main);
  color: white;
  text-align: center;
  padding: 80px 10%;
}

.cta h2 {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 2.2rem;
  line-height: 1.3;
}

/* =====================================================
   WHATSAPP FLOTANTE
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--green-whatsapp);
  color: white;
  font-size: 26px;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #eee;
  padding: 20px;
  text-align: center;
}

/* =====================================================
   ANIMACIONES SCROLL
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   BANNER COOKIES
   ===================================================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--green-main);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

#cookie-banner button {
  background: white;
  color: var(--green-main);
  border: none;
  padding: 8px 14px;
  cursor: pointer;
}

/* =====================================================
   RESPONSIVE (MÓVIL)
   ===================================================== */
@media (max-width: 768px) {

  .header {
    padding: 15px 20px;
    background: rgba(0,0,0,0.55);
  }

  .hero-content {
    padding: 0 6%;
  }

  .hero h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Botones del hero en columna */
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .cta {
    padding: 60px 6%;
  }

  .cta h2 {
    font-size: 1.6rem;
    line-height: 1.4;
  }
}

/* =====================================================
   COOKIE MODAL (ESTILO PROFESIONAL TIPO IKEA)
   ===================================================== */
/*.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.cookie-box {
  background: #ffffff;
  max-width: 520px;
  width: 90%;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}*/

/* =====================================================
   COOKIE MODAL – ANIMACIÓN TIPO IKEA (SLIDE-IN)
   ===================================================== */

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: flex-end; /* aparece desde abajo */
  z-index: 1000;

  /* Estado inicial (oculto) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-box {
  background: #ffffff;
  max-width: 520px;
  width: 100%;
  margin: 20px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);

  /* Animación */
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-modal.show .cookie-box {
  transform: translateY(0);
}


.cookie-box h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #000;
}

.cookie-box p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #333;
}

.cookie-box p.small {
  font-size: 0.85rem;
  color: #555;
}

.cookie-box a {
  color: #2f5d3a;
  text-decoration: underline;
}

/* BOTONES */
.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.cookie-buttons button {
  padding: 14px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  border: none;
}

/* Estilos tipo IKEA */
.btn-primary {
  background: #000;
  color: #fff;
}

.btn-secondary {
  background: #000;
  color: #fff;
}

.btn-outline {
  background: #fff;
  border: 2px solid #000;
  color: #000;
}

/* Responsive */
@media (max-width: 480px) {
  .cookie-box {
    padding: 25px;
  }
}

/* =====================================================
   TABLAS RESPONSIVE (PÁGINAS LEGALES)
   ===================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 600px; /* fuerza scroll en móvil */
}

/* ===== ENLACES DEL FOOTER ===== */
footer a {
  color: #2f5d3a;       /* color corporativo */
  text-decoration: none;
  margin: 0 6px;
  font-weight: 500;
}

/* Hover elegante */
footer a:hover {
  text-decoration: underline;
}