﻿:root {

  --primary-green: #8B9B3C;
  --primary-orange: #E87722;
  --primary-blue: #2B7CB3;
  --accent-red: #C94A5C;
  --dark-bg: #2C3E50;
  --light-bg: #F8F9FA;
  --text-dark: #16384A;
  --text-light: #666666;
  --white: #FFFFFF;
  --shadow: 0 4px 15px rgba(0,0,0,0.06);
}

html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  background-color: var(--dark-bg);
  background: var(--dark-bg);
  color: var(--text-dark);
  margin: 0;
}

/* HEADER */
header {
  background: var(--dark-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-nombre {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .verde {
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 1px;
}

.brand-text .naranja {
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 1.7rem;
}

.brand-text .azul {
  color: var(--primary-blue);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-left: 2px;
  margin-top: -3px;
}

/* MENÚ PRINCIPAL */
.menu {
  display: flex;
  gap: 34px;
}

.menu a {
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.18s;
  position: relative;
}

.menu a:hover {
  color: var(--primary-green);
}

.menu a:after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--primary-orange);
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -2px;
}

.menu a:hover:after {
  width: 100%;
}

/* BOTÓN MENÚ (HAMBURGUESA) */
.nav-toggle {
  display: none;            /* se muestra solo en móvil */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform .15s, opacity .15s;
}

.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 SECTION */
.hero-img {
  width: 100%;
  height: 340px;
  background: url('assets/Fondo.webp') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22, 22, 22, 0.70); /* un poco más opaco para contraste */
  z-index: 1;
}

.hero-content-blocks {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.hero-title-card {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.9), 0 1px 2px rgba(44,44,44,0.12);
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
}

.hero-desc-card {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  text-align: center;
  text-shadow:
    0 4px 32px rgba(0,0,0,0.9),
    0 1px 2px rgba(44,44,44,0.12);
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
  margin-bottom: 24px;
}

/* HERO RESPONSIVE */
@media (max-width: 600px) {
  .hero-title-card {
    font-size: 1.72rem;
  }
  .hero-desc-card {
    font-size: 1rem;
    padding: 0 16px;
  }
}

.hero-btn-demo {
  margin-top: 18px;
  padding: 13px 46px;
  font-size: 1.08rem;
  border: none;
  border-radius: 7px;
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(201, 74, 92, 0.13);
  cursor: pointer;
  transition: background .18s, transform .17s;
  text-transform: uppercase;
}

.hero-btn-demo:hover {
  background: #a0324b;
  transform: translateY(-3px) scale(1.05);
}

/* TITULOS DE SECCIÓN */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--primary-green);
  margin-bottom: 40px;
  margin-top: 46px;
}

.section-title-sub {
  font-size: 2rem;
  margin-top: 26px;
}

/* CARACTERÍSTICAS */
.caracteristicas {
  background: var(--light-bg);
  padding: 44px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 34px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(344px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  text-align: center;
  padding: 34px 26px;
  box-shadow: 0 2px 10px rgba(34,39,56,0.09);
  transition: transform .19s;
  border: 1.5px solid #e3e8f3;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: var(--primary-blue);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
  display: block;
}

.feature-card h3 {
  font-size: 1.16rem;
  color: var(--primary-green);
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* GALERÍA / SLIDER */
.galeria {
  background: var(--white);
  padding: 46px 0;
}

.gallery-intro {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 6px;
  margin-bottom: 32px;
}

.slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  border-radius: 22px;
  background: #aaa;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(44,62,80,0.09);
  min-height: 390px;
}

.slider-images {
  display: flex;
  position: relative;
  height: 100%;
}

.slider-item {
  display: none;
  flex: 1 0 100%;
  align-items: stretch;
  height: 390px;
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
}

.slider-item.active {
  display: flex;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.32,1.7,.62,.92);
}

.slider-caption {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  background: linear-gradient(0deg, rgba(20,26,35,0.89) 50%, transparent 100%);
  color: #fff;
  padding: 23px 32px 13px 32px;
  border-radius: 0 0 22px 22px;
}

.slider-caption h3 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
}

.slider-caption p {
  font-size: 1.09rem;
  font-weight: 400;
  margin: 0;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 2rem;
  color: #2B7CB3;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(43,124,179,0.14);
  z-index: 3;
  transition: background .15s;
}

.slider-nav:hover {
  background: #e4fcff;
}

.slider-nav.prev {
  left: 26px;
}

.slider-nav.next {
  right: 26px;
}

.slider-item.zoom img {
  transform: scale(1.07);
  box-shadow: 0 8px 32px rgba(44,62,80,0.17);
  z-index: 2;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  z-index: 2;
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.57;
  cursor: pointer;
  transition: opacity .17s, background .17s;
}

.dot.active {
  background: #2B7CB3;
  opacity: 1;
}

@media (max-width: 720px) {
  .slider {
    max-width: 97vw;
  }
}

/* DEMO SECTION */
.demo {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-red) 100%);
  padding: 46px 0 56px 0;
}

.demo .section-title {
  color: var(--white);
  margin-top: 0;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.demo-text {
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra todo el bloque bajo el título */
}

.demo-intro {
  font-size: 1.1rem;
  margin-bottom: 18px;
  max-width: 620px;      /* misma anchura que la lista */
  text-align: center;
}

/* LISTA DEMO REORDENADA */
.demo-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px 0;
  max-width: 620px;      /* misma anchura que el texto de arriba */
  width: 100%;
  text-align: left;      /* texto alineado a la izquierda dentro del bloque centrado */
}

.demo-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.demo-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0,0,0,0.08);
  box-shadow: 0 3px 9px rgba(0,0,0,0.22);
}

.demo-list-text {
  display: flex;
  flex-direction: column;
}

.demo-list-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.demo-list-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

@media (max-width: 600px) {
  .demo-list {
    max-width: 100%;
  }
}

/* BOTONES GENERALES */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}

/* Botón demo */
.btn.btn-demo {
  margin: 0 auto;
  padding: 15px 38px;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;

  color: #fff;
  background: linear-gradient(135deg, #ff7a18 0%, #ff3d60 100%);
  box-shadow: 0 10px 25px rgba(0,0,0,0.20),
              0 4px 10px rgba(0,0,0,0.10);
}

.btn-demo:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 32px rgba(0,0,0,0.25);
  opacity: 0.95;
}

.btn-demo:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}

/* Asegurar centrado del botón dentro del contenedor */
.demo-text,
.demo-box,
.demo-layout {
  text-align: center;
}

/* Tarjeta lateral demo */
.demo-side-card {
  background: var(--white);
  padding: 26px 22px 24px 22px;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
  color: var(--text-dark);
}

.demo-side-card h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.demo-side-card p {
  margin: 0 0 16px 0;
  font-size: 0.98rem;
  color: var(--text-light);
}

.demo-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(232,119,34,0.12);
  color: var(--primary-orange);
  padding: 4px 10px;
  border-radius: 999px;
}

.demo-devices {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.demo-devices span {
  background: #f3f5ff;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Demo responsive */
@media (max-width: 820px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-side-card {
    margin-top: 20px;
  }
}


/* CONTACTO */
.contacto {
  background-color: var(--light-bg);
  padding: 44px 0;
}

.contacto-intro {
  text-align: center;
  font-size: 1.20rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

.contact-form {
  max-width: 490px;
  margin: 0 auto;
  background: var(--white);
  padding: 34px 26px;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(22, 56, 74, 0.12);
  border: 5px solid #e3eaf2;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.01rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 4px solid #e0e0e0;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color .19s, box-shadow .19s;
  background-color: #fafbff;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0b7c3;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(43,124,179,0.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Botón del formulario de contacto */
.btn-submit {
  width: 100%;
  padding: 13px 18px;
  margin-top: 10px;
  font-size: 1.02rem;
  text-align: center;

  color: #fff;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
  box-shadow: 0 10px 26px rgba(22, 56, 74, 0.25);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22,56,74,0.32);
  opacity: 0.97;
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(22,56,74,0.24);
}

/* FOOTER */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  text-align: center;
  padding: 22px 0;
  font-size: 0.97rem;
  letter-spacing: .5px;
}

footer a {
  color: var(--primary-orange);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE GENERAL */
@media (max-width: 820px) {
  .header-content,
  .container {
    padding: 0 14px;
    max-width: 100%;
  }

  /* Menú móvil */
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: 14px;
    background: var(--dark-bg);
    flex-direction: column;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);

    max-height: 0;
    overflow: hidden;

    /* 👇 Oculto de verdad */
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    transition:
      max-height .2s ease-out,
      opacity .15s ease-out,
      transform .15s ease-out;
  }

  .menu.open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .brand-text .verde,
  .brand-text .naranja {
    font-size: 1.3rem;
  }

  .brand-text .azul {
    font-size: 0.92rem;
  }

  .logo {
    height: 40px;
  }
}


@media (max-width: 500px) {
  .header-content {
    padding: 12px 6px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .logo {
    height: 33px;
  }

  .caracteristicas,
  .galeria,
  .demo,
  .contacto {
    padding: 22px 0;
  }

    /* ===========================
   BANNER DE COOKIES
   =========================== */

    .cookie-banner {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        display: none; /* se muestra por JS */
        background: rgba(10, 10, 10, 0.95);
        color: #f4f4f4;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .cookie-banner__content {
        max-width: 900px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-banner a {
        color: #ffb347;
        text-decoration: underline;
    }

    .cookie-banner__buttons {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .cookie-btn {
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 999px;
        cursor: pointer;
        font-weight: 600;
    }

    .cookie-btn--primary {
        background: linear-gradient(90deg, #ffb347, #ff7b00);
        color: #1b1b1b;
    }

    .cookie-btn--secondary {
        background: #333;
        color: #f4f4f4;
    }

}.cookie-banner {
  position: fixed;
  inset: 0; /* top, right, bottom, left = 0 */
  z-index: 9999;
  display: none; /* se muestra por JS */
  background: rgba(0, 0, 0, 0.7); /* fondo oscurecido */
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Card central */
.cookie-banner__content {
  background: var(--dark-bg);
  color: var(--white);
  max-width: 480px;
  width: 100%;
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Enlaces dentro del texto (como en tu web) */
.cookie-banner a {
  color: var(--primary-orange);
  font-weight: 600;
  text-decoration: underline;
}

/* Contenedor de botones */
.cookie-banner__buttons {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Botones */
.cookie-btn {
  flex: 1;
  min-width: 120px;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Botón Aceptar: degradado naranja/rojo como tu CTA */
.cookie-btn--primary {
  background: linear-gradient(135deg, var(--primary-orange), var(--accent-red));
  color: #ffffff;
}

/* Botón Rechazar: estilo botón secundario oscuro */
.cookie-btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Evitar scroll cuando el banner está visible */
.no-scroll {
  overflow: hidden;
}

/* Un poco de ajuste para pantallas muy pequeñas */
@media (max-width: 480px) {
  .cookie-banner__content {
    padding: 1.4rem 1.2rem;
    font-size: 0.9rem;
  }
}
