/* ====================================
   RESET / ESTILOS GENERALES
==================================== */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
  margin: 0;
}

h1, h2, h3, h4 {
  margin-bottom: 15px;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ====================================
   BANNER PRINCIPAL
==================================== */
.headbanner {
  position: relative; /* clave para botón flotante */
  min-height: 600px;  /* tamaño original */
  background: url('../img/talleres.jpg') top center / cover no-repeat fixed;
  display: flex;
  align-items: flex-start;       /* mantiene el contenido arriba */
  justify-content: flex-start;   /* contenido a la izquierda */
  padding: 60px;
  color: #fff;
  text-align: left;              /* texto siempre a la izquierda */
  overflow: hidden;
}

/* Capa de transparencia */
.headbanner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 50, 0.55);
  z-index: 1;
}

/* Logo arriba a la derecha */
.headbanner-logo {
  position: absolute;
  top: 20px;
  right: 100px;   /* suficiente margen derecho */
  z-index: 3;
}

.headbanner-logo img {
  height: 70px;
  width: auto;
  transition: transform 0.2s ease-in-out;
}

.headbanner-logo:hover img {
  transform: scale(1.05);
}

/* Versión móvil */
@media (max-width: 350px) {
  .headbanner-logo {
    top: 15px;
    right: 150px;
  }

  .headbanner-logo img {
    height: 50px;
  }
}

/* Contenido del banner */
.headbanner-content {
  position: relative;
  z-index: 2;          /* encima de la transparencia */
  max-width: 800px;
  line-height: 1.7;
  text-align: left;    /* contenido siempre alineado a la izquierda */
}

.headbanner h2 {
  font-size: 2.4rem;
  margin-bottom: 25px;
}

.headbanner h3 {
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.headbanner h4 {
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.headbanner p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.headbanner a {
  color: #fff;
  font-weight: 600;
}

/*/////////////////////////////////////////////////////////*/
/* ==============================
   Contenedor principal del botón
============================== */
.btn-container {
  position: absolute;  
  bottom: 5px;         
  width: 1200px;          
  height: 100px;          
  display: flex;         
  align-items: center;
  justify-content: center;
  z-index: 300;
  /*background-color: rgba(255, 0, 0, 0.5); /* rojo semitransparente para pruebas */
  margin-bottom: -50px;
}

/* Botón en extremo inferior derecho del contenedor */
.btn-container .btn-banner {
  position: absolute;
  right: 10px;
  bottom: 0;
  padding: 14px 28px;
  font-size: 16px;
  background-color: #F5BB27;
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.btn-container .btn-banner:hover {
  background-color: #d89c1e;
}

/* ==============================
   Media queries para mover botón
============================== */

/* Pantallas medianas (tablets aprox.) */
@media (max-width: 1024px) {

  .btn-container .btn-banner {
    right: 200px;   /* mueve el botón un poco a la izquierda */
  }
}

/* Pantallas pequeñas (smartphones) */
@media (max-width: 900px) {
  .btn-container{
    width:850px;
    right:0px;
  }
  .btn-container .btn-banner {
    right: 100px;   /* más cerca del centro */
    padding: 12px 24px;
    font-size: 14px;
  }
}


/* Pantallas pequeñas (smartphones) */
@media (max-width: 800px) {
  .btn-container{
    width:700px;
    right:100px;
  }
  .btn-container .btn-banner {
    right: 0px;   /* más cerca del centro */
    padding: 12px 24px;
    font-size: 14px;
  }
}


/* Pantallas pequeñas (smartphones) */
@media (max-width: 750px) {
  .btn-container{
    width:750px;
    right:50px;
  }
  .btn-container .btn-banner {
    right: 10px;   /* más cerca del centro */
    padding: 12px 24px;
    font-size: 14px;
  }
}


/* Pantallas pequeñas (smartphones) */
@media (max-width: 650px) {
  .btn-container{
    width:650px;
    right:0px;
  }
  .btn-container .btn-banner {
    right: 10px;   /* más cerca del centro */
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Pantallas pequeñas (smartphones) */
@media (max-width: 500px) {
  .btn-container{
    width:500px;
    right:0px;
  }
  .btn-container .btn-banner {
    right: 10px;   /* más cerca del centro */
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Pantallas muy pequeñas (menos de 400px) */
@media (max-width: 400px) {

  .btn-container{
    width:400px;
    right:0px;
  }
  .btn-container .btn-banner {
    right: 50px;    /* casi al centro */
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Pantallas muy pequeñas (menos de 400px) */
@media (max-width: 300px) {

  .btn-container{
    width:300px;
    right:0px;
  }
  .btn-container .btn-banner {
    right: 0px;    /* casi al centro */
    padding: 10px 20px;
    font-size: 13px;
  }
}



/* ====================================
   INFORMACIÓN GENERAL (tabla precios)
==================================== */
.container.info-general {
  background: #fff;
  color: #003366;
  padding: 50px 20px;
  border-radius: 10px;
  margin: 50px auto;
  max-width: 1000px;
}

.container.info-general h3 {
  color: #003366;
  margin-bottom: 20px;
}

.container.info-general h4 {
  color: #0056b3;
  margin-top: 30px;
  margin-bottom: 15px;
}

.container.info-general table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.container.info-general th {
  background: #ccc;
  color: #003366;
  padding: 15px;
  text-align: center;
}

.container.info-general td {
  background: #eee;
  color: #003366;
  padding: 15px;
  text-align: center;
}

.container.info-general td:first-child {
  text-align: left;
}

/* ====================================
   ALOJAMIENTO
==================================== */
.alojamiento {
  position: relative;
  background: url('../img/souma.jpg') top center / cover no-repeat fixed;
  color: #fff;
  margin-bottom: 50px;
  padding: 80px 60px;
}

.alojamiento::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,50,0.4);
  z-index: 1;
}

.alojamiento-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 800px;
  line-height: 1.8;
}

.alojamiento-content h3 {
  margin-bottom: 20px;
}

.alojamiento-content a {
  color: #fff;
  text-decoration: none;
}

.alojamiento-content a:hover {
  text-decoration: underline;
}

/* ====================================
   TARJETAS TALLERES (VCARDS)
==================================== */
.main-cards {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.ascibp-vcard {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ascibp-vcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.ascibp-vcard h3.titulo-taller {
  font-size: 1.25rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.75rem;
}

.ascibp-vcard p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #555;
}

.ascibp-vcard-footer {
  margin-top: 1rem;
  text-align: right;
}

.ascibp-vcard-footer a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  background-color: #0056b3;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.ascibp-vcard-footer a:hover {
  background-color: #003d80;
}

.ascibp-vcard a {
  color: #1D5069; /* celeste oscuro */
  text-decoration: none; /* sin subrayado */
  transition: color 0.3s ease;
}

.ascibp-vcard a:hover,
.ascibp-vcard a:focus {
  color: #B02579;
}

.ascibp-vcard a:active {
  color: #B02579;
}

/* ====================================
   FOOTER
==================================== */
footer {
  background-color: #071726;
  color: #fff;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

footer a { color: #fff; }

footer .social-icons {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 10px 0 0 0;
  padding: 0;
}

footer .social-icons li {
  display: inline;
}

.footer-content .footer-logo img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* ====================================
   RESPONSIVE
==================================== */
@media (max-width: 768px) {
  .headbanner {
    padding: 40px 20px;
    min-height: 400px;
  }

  .headbanner-logo {
    top: 15px;
    right: 20px;
  }

  .headbanner-logo img {
    height: 50px;
  }

  .headbanner h2 {
    font-size: 1.8rem;
  }

  .headbanner p {
    font-size: 0.9rem;
  }

  .headbanner-content {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .btn-banner {
    position: static;
    display: block;
    margin: 20px auto;
    text-align: center;
    z-index: auto;
  }

  .footer-logo img {
    max-width: 150px;
    margin: 0 auto;
  }
}
