* {
  margin: 0;
}

body {
  font-family: "Times New Roman", sans-serif;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: #000000;
}

/* Acción al hacer scroll */
header.scrolled {
  background-color: #ffffff; /* el color que aparece al bajar */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 300px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 480px) {
  .logo {
    width: 270px;
  }
}

.menu-sup {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

/* Video */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Opaca el vídeo */
}

/* Texto dentro del vídeo */
.contenido-hero {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 2rem;
}

.contenido-hero h1 {
  font-size: 3rem;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 1rem;
}

.contenido-hero p {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .hero-video {
    height: 70vh;
  }

  .contenido-hero h1 {
    font-size: 2rem;
  }

  .contenido-hero p {
    font-size: 1.1rem;
  }

}

/* Secciones de contenido */
.area {
  padding: 60px 20px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.area.visible {
  opacity: 1;
  transform: translateY(0);
}

.area-content {
  max-width: 900px;
  margin: auto;
}

.icono {
  font-size: 3rem;
  color: #9d0000;
  text-align: center;
  margin-bottom: 20px;
}

h2 {
  color: #00264d;
  text-align: center;
  margin-bottom: 15px;
}

h3 {
  margin-top: 25px;
  color: #9d0000;
}

ul {
  margin-top: 10px;
  padding-left: 20px;
}

ul li {
  margin-bottom: 8px;
}

blockquote {
  font-style: italic;
  color: #333;
  border-left: 4px solid #9d0000;
  padding-left: 15px;
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sección Misión, Visión, Valores */
.mision-vision {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #f8f8f8;
}

.mision-vision h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Contenedor de 3 columnas */
.contenedor-mv {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: nowrap;
}

.mv-card {
  flex: 1 1 30%;
  background-color: #fff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mv-card i {
  font-size: 2.5rem;
  color: #9d0000;
  margin-bottom: 1rem;
}

.mv-card h3 {
  margin-bottom: 1rem;
  color: #333;
}

.mv-card p {
  color: #555;
  line-height: 1.6;
}

.mv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px #d1a806;
}

@media (max-width: 768px) {

  .contenedor-mv {
    flex-direction: column;
    align-items: center;
  }

  .mv-card {
    width: 90%;
    max-width: 400px;
  }

  .mision-vision h2 {
    font-size: 1.8rem;
  }

  .mv-card h3 {
    font-size: 1.3rem;
  }

  .mv-card p {
    font-size: 1rem;
  }

}

/* Botón Contacto */
.boton-flotante {
  position: fixed;
  bottom: 25px;
  right: 20px;
  background-color: #9d0000;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 30px;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.boton-flotante:hover {
  background-color: #c40000;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .boton-flotante {
    bottom: 17px;
    right: 20px;
    font-size: 30px;
    padding: 10px 16px;
  }
}

/* Footer */
.footer-mejorado {
  background-color: #000000;
  color: #fff;
  padding: 60px 20px 20px;
  font-size: 0.95rem;
  text-align: left;
}

.footer-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 220px;
}

.footer-col h3,
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #f4f4f4;
}

.footer-col p,
.footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a:hover,
.footer-col a:hover {
  color: #d1a806;
}

.iconos-redes a {
  font-size: 2rem;
  margin-right: 10px;
  color: #ccc;
  transition: color 0.3s ease;
}

.iconos-redes a:hover {
  color: #d1a806;
}

.footer-copy {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #888;
}