* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f4f6f9;
  color: #333;
}

/* HEADER */
.header {
  background: linear-gradient(90deg, #c8a44b, #006330);
  padding: 30px 0;
}

.header-inner {
  max-width: none;
  margin: 0 auto;              /* centra el bloque completo */
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* fuerza alineación izquierda */
  gap: 15px;
}

.logo-area img {
  display: block;     /* evita comportamientos inline */
  margin: 0;          /* elimina auto-centering */
  height: 105px;
}

.logo-text h1 {
  font-size: 30px;
  color: #fff;
}

.logo-text span {
  font-size: 22px;
  color: #f1e7c0;
}

.nav {
  position: relative;
}

/*.nav a {
  color: #fff;
  margin-left: 25px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.nav a.active,
.nav a:hover {
  border-bottom: 2px solid #f1e7c0;
}*/

/* MENU 
========*/
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  z-index: 9999;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  /*position: relative;*/
}

.menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--dorado);
  bottom: -6px;
  left: 0;
  transition: var(--transicion);
}

.menu li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* HERO */
.hero {
  height: 500px;
  background: url("../assets/V12.jpg") center / cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  justify-content:start;
  align-items: center;
  text-align: center;
}

.hero-overlay h2 {
  font-size: 50px;
  color: #fff;
}

.hero-overlay p {
  margin-top: 10px;
  color: #000000;
  font-size: 25px;
}

/* NOSOTROS */
.nosotros {
  position: relative;
  min-height: 600px;
  background: url("../assets/foto1.jpeg") center / cover no-repeat;
  padding: 100px 5%;
}

.overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.cards-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

/* FLOATING MODAL CARD */
.floating-card {
  width: 440px;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(1px);
  padding: 40px 35px;
  border-radius: 22px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
  transition: transform .4s ease;
}

.floating-card:nth-child(2) {
  animation-delay: 2s;
}

.floating-card:nth-child(3) {
  animation-delay: 4s;
}

.floating-card:hover {
  transform: translateY(-12px) scale(1.04);
}

.floating-card h3 {
  color: #1c2f45;
  font-size: 22px;
  margin-bottom: 15px;
}

.floating-card p {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 10px;
  font-weight:bold;
  text-align: center;
}
/* ===============================
   SECCIÓN VALORES
================================ */
.valores-section {
  padding: 20px 6%;
  background: #f5f6fa;
  text-align: center;
}

.valores-title {
  font-size: 32px;
  color: #1c2f45;
  margin-bottom: 50px;
}

/* GALERÍA */
.valores-galeria {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CARD */
.valor-card {
  position: relative;
  width: 420px;
  height: 380px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
}

/* IMAGEN */
.valor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

/* OVERLAY */
.valor-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 47, 69, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  opacity: 0;
  transition: all .5s ease;
  text-align: center;
}

.valor-overlay h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #f1e7c0;
}

.valor-overlay p {
  font-size: 18px;
  line-height: 1.6;
}

/* HOVER EFFECT */
.valor-card:hover img {
  transform: scale(1.12);
}

.valor-card:hover .valor-overlay {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .valores-galeria {
    flex-direction: column;
    align-items: center;
  }
}



/* ANIMACIÓN */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

/* ============ FOOTER =========== */
.footer {
  background: #1f2c3d;
  color: #cfd8e3;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.8fr 1fr 1fr;
  gap: 20px;
  padding: 15px 10px;
}

.footer h3 {
  color: #fff;
  margin-bottom: 10px;
}

.footer h4 {
  color: #fff;
  margin-top: 10px;
  font-size: 16px;
}

.footer p {
  font-size: 16px;
  line-height: 1.6;
}

.footer-logo {
  width: 180px;
  margin-bottom: 5px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer ul li a {
  color: #cfd8e3;
  text-decoration: none;
}

.footer ul li a:hover {
  color: #ffffff;
}

.social-list li,
.enlaces li,
.contact-list li {
  display: flex;
  align-items: left;
  gap: 20px;
}

.footer i {
  color: #ffffff;
}

/* Barra inferior */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
}

/* MENU RESPONSIVE 
==================*/
@media (max-width: 768px) {
  .nav {
    width: 100%;
  }

  .menu {
    display: none;
    flex-direction: column;
    /*background: var(--blanco);*/
    background-color: rgba(255, 255, 255, 0.70);
    position: absolute;
    top: 100%;
    right: 0;
    width: 90px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    padding: 0;
    margin: 0;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    border-bottom: 1px solid #eee;
    width: 100%;
    margin: 0;
  }

  .menu li a {
    font-size: 14px; 
    padding: 4px 4px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    word-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.0; 
    transition: all 0.3s ease;
  }

  .menu li a:hover {
    background-color: rgba(0,102,204,0.1);
    color: #008425;
    box-shadow: inset 3px 0 0 var(--dorado);
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }

  .banner-texto h2 {
    font-size: 2rem;
  }
}