:root {
  --blanco: #ffffff;
  --gris-claro: #f7f7f7;
  --verde: #1a8a3b;
  --naranja: #ed590a;
  --negro: #080808c5;
}

/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--blanco);
  color: #333;
  line-height: 1.6;
}

/* HEADER */
header {
  background-color: var(--negro);
  color: var(--blanco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 4px solid var(--verde);
}

.logo-contenedor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.logo-texto {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--blanco);
}

/* NAV */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--naranja);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

nav a:hover::after,
nav a.activo::after {
  width: 100%;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--blanco);
  margin-bottom: 60px;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 105%;
  object-fit: cover;
  object-position: center 50%;
  z-index: -1;
}

.hero-content {
  z-index: 1;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.btn {
  padding: 0.8rem 1.5rem;
  background-color: var(--naranja);
  color: var(--blanco);
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #c94d07;
}

/* SECCIÓN DESPUÉS DEL VIDEO */
.section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  padding: 60px 30px;
  background-image: url('imagenes.html/imagen\ de\ fondo.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 20px;
  max-width: 1400px;
  margin: 60px auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  color: var(--blanco);
}

.section-content {
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  position: relative;
  min-height: 200px; /* Puedes ajustar esto según lo que necesites */
  overflow: visible; /* Para que no corte el contenido */
}

.section-content h2 {
  font-size: 1.8rem;
  color: var(--verde);
  margin-bottom: 15px;
  text-align: center;
}

.section-content p {
  font-size: 1.1rem;
  color: #333;
  text-align: justify;
}

/* Esquina decorativa */
.section-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background-color: var(--naranja);
  border-top-left-radius: 100%;
}

/* CARDS */
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 60px 30px;
  flex-wrap: wrap;
  background-color: var(--blanco);
}

.card {
  background-color: var(--gris-claro);
  border: 2px solid var(--verde);
  border-radius: 15px;
  overflow: hidden;
  width: 300px;
  text-align:  center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  color: var(--verde);
  margin: 20px 0 10px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
footer {
  background-color: var(--negro);
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: var(--gris-claro);
  border-top: 3px solid var(--verde);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }
}
