/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {    
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
  overflow: hidden; /* desktop: sin scroll global */
}

.layout {
  display: flex;
  height: 100vh; /* corregido */
}

/* Columna izquierda */
.sidebar {
  width: 30%;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  /* Fondo: primero el degradado (arriba hacia abajo), luego la imagen */
  background-image:
    linear-gradient(to bottom, rgba(0,102,204,0.85), rgba(0,102,204,0.25) 40%, rgba(0,102,204,0.05) 70%, rgba(0,102,204,0) 100%),
    url('estatua.jpg'); /* <-- reemplaza por la ruta de tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 40px 24px;
  display: flex;
  align-items: flex-start;
}

.sidebar-content {
  width: 100%;
  z-index: 2; /* encima del fondo y del degradado */
  /* Para que el texto se viera mejor sobre la imagen, aplicamos un pequeño text-shadow */
  text-shadow: 0 5px 8px rgba(255, 0, 0, 0.6);
}

.sidebar h1 {
  font-size: 5.5rem;
  margin-bottom: 18px;
  line-height: 1.05;
  font-weight: 700;
}

.sidebar p {
  font-size: 1.12rem;
  margin-bottom: 22px;
  opacity: 0.95;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.subscribe-form input {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); /* leve traslúcido */
  color: #fff;
  border-radius: 4px;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.subscribe-form input::placeholder {
  color: rgba(255,255,255,0.75);
}

.subscribe-form input:focus {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.35);
}

.subscribe-form button {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 4px;
  border: none;
  background: #ffffff;
  color: #005b9a; /* botón claro con texto azul oscuro */
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.subscribe-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  /* una capa extra semi-transparente para mejorar contraste */
  background: linear-gradient(to bottom, rgba(0,102,204,0.6), rgba(0,102,204,0.15) 45%, rgba(0,102,204,0.02) 80%);
  z-index: 1;
  pointer-events: none;
}

.sidebar-content {
  position: relative;
  z-index: 2;
}



/* Columna derecha */
.content {
  margin-left: 30%; /* se ajusta al ancho de la sidebar */
  width: 70%;
  height: 100vh; /* corregido */
  overflow-y: auto; /* scroll solo en la derecha */
  padding: 30px;
  background: #fff;
}

.content .post h2 {
  color: #101F64;
  font-size: 2rem;
  margin-bottom: 10px;
}

.content .post p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 40px;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #eee;
  padding-top: 30px;
  font-size: 0.9rem;
  color: #666;
}

.footer-column {
  flex: 1;
  margin-right: 20px;
}

.footer-column h4 {
  color: #326766;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li a {
  color: #666;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer .credit {
  flex-basis: 100%;
  margin-top: 20px;
  font-size: 0.8rem;
}

/* Título sección */
.section-title {
  font-size: 2rem;
  color: #101F64;
  margin-bottom: 30px;
  text-align: center;
}

/* Grid servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.service-card i {
  font-size: 2rem;
  color: #B43B34;
  margin-bottom: 10px;
}

.service-card h3 {
  color: #333;
  margin-bottom: 10px;
}

.service-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #555;
}

.service-card button {
  background-color: #B43B34;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  align-self: center;
  font-weight: bold;
}

.service-card button:hover {
  background-color: #104764;
}

/* Videos sección */
.videos-section {
  margin: 50px auto;
  margin-bottom: 50px;
  width: 90%;
}

.video-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.video-slide {
  min-width: 300px;
  max-width: 400px;
  margin: 0 10px;
  flex-shrink: 0;
}

.video-slide iframe {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

.carousel-btn {
  background: #d70000;
  color: #fff;
  border: none;
  padding: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}

.prev {
  left: -15px;
}

.next {
  right: -15px;
}

/* Sección de Reseñas */
.reviews-section {
  padding: 60px 40px;
  background-color: #f7f9fc;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  margin-top: 40px;
}

.section-title {
  font-size: 2rem;
  color: #005b9a;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 32px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  justify-content: center;
}

/* Tarjeta individual de reseña */
.review-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: center;
  padding: 28px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.review-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid #005b9a;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 12px;
}

.review-name {
  color: #005b9a;
  font-size: 1rem;
  font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
  .reviews-section {
    padding: 40px 24px;
  }
  .review-card img {
    width: 80px;
    height: 80px;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

/* RESPONSIVE: sidebar arriba en móviles/tabletas */
@media (max-width: 1440px) {
  body, html {
    overflow: auto; /* vuelve scroll global */
  }

  .layout {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    position: relative; /* ya no fija */
    width: 100%;
    height: auto;
    justify-content: flex-start;
  }

  .content {
    margin-left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
  }
}

/* Tablet */
@media (max-width: 1200px) {
  .sidebar h1 {
    font-size: 4rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .sidebar h1 {
    font-size: 2.8rem;
  }
}

/* Muy pequeños */
@media (max-width: 480px) {
  .sidebar h1 {
    font-size: 2.2rem;
  }
}
