/* =============================
   RESET Y BASE
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #2C2C2C;
  background-color: #FFFFFF;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================
   HEADER
============================= */
.site-header {
  background-color: #A41E1E;
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #FFFFFF;
}

.logo {
  width: 50px;
  height: auto;
  margin-right: 0.8rem;
}

.brand-texts {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.4rem;
}

.brand-slogan {
  font-weight: 400;
  font-size: 0.85rem;
  color: #F1F1F1;
}

/* NAV */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #E5E5E5;
}

/* BOTÓN MENÚ MÓVIL */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle img {
  width: 28px;
  height: auto;
}

/* =============================
   SECCIÓN HISTORIA
============================= */
.historia {
  padding: 4rem 0;
  background-color: #FFFFFF;
}

.historia-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.historia-texto {
  flex: 1 1 500px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.historia-texto strong {
  color: #A41E1E;
}

.historia-texto blockquote {
  background: #f9f9f9;
  border-left: 5px solid #A41E1E;
  padding: 15px 20px;
  font-style: italic;
  margin: 20px 0;
  border-radius: 8px;
}

.historia-imagen {
  flex: 1 1 400px;
  text-align: center;
}

.historia-imagen img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.img-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}

/* =============================
   SECCIÓN VALORES
============================= */
.valores {
  margin-top: 60px;
  text-align: center;
}

.titulo-valores {
  font-size: 1.8rem;
  color: #A41E1E;
  margin-bottom: 30px;
  font-weight: 700;
}

.grid-valores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.valor {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.3s;
}

.valor:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.valor h4 {
  color: #A41E1E;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.valor p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =============================
   FOOTER
============================= */
.site-footer {
  background: #2C2C2C;
  color: #E5E5E5;
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 200px;
  max-width: 250px;
}

.footer-col h3, .footer-col h4 {
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: #E5E5E5;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #A41E1E;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #AAA;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #A41E1E;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .main-nav.open { max-height: 250px; }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
    gap: 1rem;
  }

  .nav-toggle { display: block; }

  .historia-contenido {
    flex-direction: column;
    text-align: center;
  }

  .historia-imagen img {
    max-width: 90%;
    margin: 0 auto;
  }
}
