﻿/* Utility classes for responsive visibility */
.desktop-only {
  display: none;
}

/* Hero Section (hero-specific rules removed where unused) */

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
  font-weight: 300;
}

.about-page {
  width: 100%;
  overflow-x: hidden;
  font-family: 'GeneralSans', sans-serif;
}

.about-page * {
  box-sizing: border-box;
}

.about-page h1 {
  color: #421515;
  text-align: center;
  margin-bottom: 15px; /* Reducido de 30px */
  font-size: 3.5rem;
  line-height: 1.1;
}

.about-page h2 {
  color: #421515;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.5rem;
}

.about-page p {
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
  font-size: 1.1rem;
}

/* --- Sección Nuestra Historia (Rediseñada) --- */
.historia-expandida {
  width: 100%;
  position: relative;
  margin-bottom: 60px;
}

.historia-banner {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.historia-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.historia-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.historia-card {
  background: transparent;
  padding: 40px;
  border-radius: 30px;
  max-width: 900px;  
  transform: translateY(0);
}

.historia-card-content h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.historia-card-content p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: white;
  text-align: justify;
  margin-bottom: 20px;
}

/* --- NUEVA SECCIÓN: Misión y Visión (Revamped) --- */
.valores-empresa {
  padding: 40px 20px;
  background: white;
  border-radius: 30px;
  margin: 30px 0;
}

.valores-header {
  text-align: center;
  margin-bottom: 60px;
}

.valores-header .badge {
  background-color: rgba(227, 0, 27, 0.1);
  color: #e3001b;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.valores-header h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 15px;
  color: #1a1a1a;
}

.valores-header p {
  color: #666;
  max-width: 600px;
  margin: 10px auto;
  text-align: center;
}

.seccion-mision-vision {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.valor-card {
  flex: 1;
  background: white;
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.valor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(139, 0, 0, 0.2);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: #e3001b;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  margin: 0 auto 25px;
  box-shadow: 0 10px 20px rgba(227, 0, 27, 0.3);
}

.valor-card h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
  color: #1a1a1a;
  border: none;
  padding: 0;
}

.divider-short {
  width: 50px;
  height: 3px;
  background-color: #e3001b; /* Color de marca */
  border-radius: 2px;
  margin: 0 auto 20px; /* Centrado */
}

.valor-card p {
  text-align: center;
  line-height: 1.8;
  color: #555;
  font-size: 1.05rem;
  margin: 0;
}

/* --- Media Query para Escritorio (Desktop) --- */
@media (min-width: 992px) {
  /* Side-by-side layout (Misión/Visión) */
  .seccion-mision-vision {
    flex-direction: row;
    gap: 40px;
  }

  .desktop-only {
    display: block !important;
  }
}

/* --- Media Query para Tablets --- */
@media (min-width: 768px) and (max-width: 991px) {
  .seccion-mision-vision {
    flex-direction: row;
    gap: 20px;
  }

  .valor-card {
    padding: 30px 20px; /* Un poco menos de padding para que quepan mejor */
  }
}

/* --- Media Query para Móviles --- */
@media (max-width: 767px) {
  .historia-expandida {
    margin-bottom: 40px;
  }

  .historia-banner {
    height: auto;
    padding: 40px 0;
  }

  .historia-card {
    padding: 20px;
    margin: 0 10px;
  }

  .historia-card-content h2 {
    font-size: 1.8rem;
  }

  .historia-card-content p {
    font-size: 1.05rem; /* Igual que misión y visión */
    line-height: 1.6;    /* Menos interlineado que el 1.8 por defecto */
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

.image-gallery-container {
  padding: 0 20px;
}

/* Centered Section Header for Gallery and similar sections */
.section-header-centered {
  text-align: center;
  margin: 40px auto 30px;
  max-width: 800px;
  padding: 0 20px;
}

.section-header-centered .badge {
  background-color: rgba(139, 0, 0, 0.1);
  color: #8b0000;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 15px;
}

.section-header-centered h1,
.section-header-centered h2 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-align: center;
}

.section-header-centered h1 {
  font-size: 3.5rem;
}

.section-header-centered h2 {
  font-size: 2.8rem;
}

.section-header-centered p {
  color: #666;
  font-size: 1.1rem;
  text-align: center;
  margin: 0 auto;
}

.divider-short-centered {
  width: 60px;
  height: 3px;
  background-color: #e3001b; /* Color de marca */
  border-radius: 2px;
  margin: 0 auto 25px;
}