/* =========================
   GENERAL
========================= */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #ffffff;
  color: #333333;
}

/* Ocultar el botón hamburguesa en escritorio */
.menu-toggle {
  display: none;
}

/* =========================
   HEADER
========================= */
header {
  background-color: #ffffff;
  text-align: center;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header img {
  max-width: 150px;
  display: block;
  margin: 0 auto 10px auto;
}

header h1 {
  color: #891E21;
  font-weight: 700;
  font-size: 28px;
  margin: 0;
}

/* =========================
   NAVIGATION
========================= */
nav {
  background-color: #891E21;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #7AA814;
}

/* =========================
   SECCIÓN ACCESO APLICACIONES
========================= */
.acceso-app {
  text-align: center;
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.btn-acceso {
  background-color: #891E21;
  color: #ffffff;
  padding: 18px 45px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-acceso:hover {
  background-color: #7AA814;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* =========================
   SLIDER
========================= */
.slider {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  position: relative;
  margin-top: 20px;
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 100%;
  display: block;
}

/* =========================
   BOTONES SOBRE EL SLIDER
========================= */
.slider-buttons {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  background: rgba(240, 240, 240, 0.7);
  padding: 15px 25px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  z-index: 10;
}

.btn-slider {
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: #891E21;
  padding: 10px 25px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-slider:hover {
  background: #891E21;
  color: #ffffff;
  transform: translateY(-3px);
}

/* =========================
   SUBSECCIONES SOBRE SLIDER
========================= */
.slider-subsections {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto 0 auto;
  padding: 20px 0;
  max-width: 1100px;
}

.sub-item a {
  display: block;
  padding: 18px 35px;
  background: rgba(0,0,0,0.4);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  text-align: center;
}

.sub-item a:hover {
  background: rgba(137, 30, 33, 0.85);
  transform: translateY(-4px);
}

/* =========================
   FOOTER
========================= */
footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #333333;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  /* HEADER */
  header img {
    max-width: 120px;
  }

  header h1 {
    font-size: 22px;
  }

  /* MENU HAMBURGUESA */
  .menu-toggle {
    display: block;
    background-color: #891E21;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
  }

  nav {
    display: none;
    flex-direction: column;
    background-color: #891E21;
    padding: 10px;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 10px 0;
    font-size: 16px;
  }

  /* SECCIÓN ACCESO */
  .acceso-app {
    padding: 30px 15px;
  }

  .btn-acceso {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 40px;
  }

  /* SLIDER */
  .slider {
    max-height: 260px;
    border-radius: 10px;
  }

  .slider-buttons {
    flex-direction: column;
    gap: 10px;
    bottom: 10px;
    padding: 10px 15px;
    width: 80%;
  }

  .btn-slider {
    font-size: 16px;
    padding: 12px;
    text-align: center;
  }

  .slider-subsections {
    flex-direction: column;
    gap: 15px;
    padding: 10px 20px;
  }

  .sub-item a {
    font-size: 18px;
    padding: 16px 20px;
  }

  footer {
    font-size: 12px;
    padding: 15px 0;
  }
}

/* =========================
   SECCIONES QUIENES SOMOS / MISION / VISION
========================= */
.content-section {
  max-width: 60%;
  margin: 40px auto;
  padding: 20px; /* añade un poco de espacio interno */
}

.section-title {
  text-align: center;
  color: #891E21; /* color vinotinto */
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 26px;
}

.section-text {
  text-align: justify;
  line-height: 1.8;
  font-size: 16px;
}

/* Ajuste de botones btn-acceso para móviles */
@media (max-width: 768px) {
  .btn-acceso {
    padding: 12px 25px; /* menos espacio interno */
    font-size: 16px;    /* fuente más pequeña */
    display: inline-block;
  }
}
/* =========================
   CONTACTO
========================= */
.content-section {
  max-width: 60%;
  margin: 40px auto;
}

.section-title {
  text-align: center;
  color: #891E21; /* vinotinto institucional */
  margin-bottom: 20px;
}

.section-text {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* FORMULARIO */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #891E21;
  box-shadow: 0 4px 10px rgba(137, 30, 33, 0.2);
}

/* BOTÓN MODERNO */
.contact-form .btn-acceso {
  background-color: #891E21;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 15px 35px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.contact-form .btn-acceso:hover {
  background-color: #7AA814;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* UBICACIÓN */
.location {
  text-align: center;
  margin-top: 40px;
}

.location .mapa {
  max-width: 100%;
  border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .content-section {
    max-width: 90%;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
    padding: 12px 15px;
  }

  .contact-form .btn-acceso {
    font-size: 16px;
    padding: 12px 25px;
  }
}

.contact-form select {
  padding: 15px 20px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
  appearance: none; /* elimina flecha por defecto en algunos navegadores */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px 16px;
}

.contact-form select:focus {
  border-color: #891E21;
  box-shadow: 0 4px 10px rgba(137, 30, 33, 0.2);
}

/* Responsivo para móvil */
@media (max-width: 768px) {
  .contact-form select {
    font-size: 14px;
    padding: 12px 15px;
    background-position: right 10px center;
  }
}

/* ------------------------------ */
/* TARJETAS DE VIDEOS • SOPORTE BP */
/* ------------------------------ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.video-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
}

.video-card:hover {
  transform: scale(1.03);
  box-shadow: 0px 6px 18px rgba(0,0,0,0.15);
}

.video-card img {
  width: 100%;
  display: block;
}

.video-card h3 {
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #7B002C; /* vinotinto institucional */
}

.section-title {
  color: #7B002C;
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}

.section-text {
  text-align: center;
  margin-bottom: 30px;
  font-size: 16px;
}


/* CONTENEDOR DE LOS VIDEOS (60% DEL ANCHO, CENTRADO) */
.video-section {
  width: 60%;
  margin: 0 auto;        /* Centra horizontalmente */
}

/* GRID EXACTO DE TRES VIDEOS */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Siempre 3 columnas */
  gap: 25px;
  justify-items: center;
}

/* Centrar textos */
.soporte-bp-container {
  text-align: center;
  padding: 40px 0;
}

/* Título vinotinto */
.titulo-videos {
  color: #800000; /* Vinotinto */
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

/* Sección de videos */
.video-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Grid de 3 videos centrados ocupando 60% */
.video-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  width: 60%;
  margin: auto;
  flex-wrap: nowrap;
}

/* Tarjetas */
.video-card {
  width: 33%;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.video-thumbnail iframe {
  width: 100%;
  height: 180px;
  border-radius: 10px;
}

/* Textos */
.video-titulo {
  font-size: 18px;
  font-weight: 600;
  margin-top: 12px;
  color: #333;
}

.video-desc {
  font-size: 14px;
  color: #555;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .video-grid {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .video-grid {
    flex-wrap: wrap;
  }

  .video-card {
    width: 90%;
  }
}

/* OCULTAR BOTONES SOBRE EL SLIDER EN MÓVIL */
@media (max-width: 768px) {
  .slider-buttons {
    display: none !important;
  }
}
