/* ===== GLOBAL ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== SECCIÓN PRINCIPAL ===== */
.company-section {
  position: relative;
  /* si quieres scroll-x oculto, quita overflow:hidden y pon overflow-x:hidden */
  overflow-x: hidden;
  color: #333;
  background-color: #fff;
  padding: 1% 4%;
  font-family: 'Roboto', sans-serif;
}

.company-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .1;
  z-index: 0;
}

.company-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== HEADER ===== */
.company-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.company-logo {
  width: 140px;
}
.company-description p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== MISIÓN / VISIÓN ===== */
.company-mission {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  perspective: 1000px;
}

.mission-item {
  flex: 1;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transform-style: preserve-3d;
  transform: rotateY(15deg) scale(0.9);
  opacity: 0;
  animation: fadeIn3D 0.8s ease-out forwards;
}
.mission-item:nth-child(1) { animation-delay: 0.2s; }
.mission-item:nth-child(2) { animation-delay: 0.4s; }

@keyframes fadeIn3D {
  0%   { transform: rotateY(15deg) scale(0.6); opacity: 0; }
  60%  { transform: rotateY(-5deg) scale(1.05); opacity: 1; }
  100% { transform: rotateY(0deg) scale(1);    opacity: 1; }
}

.mission-item h3 {
  margin-bottom: .75rem;
  color: #b71c1c;
}

/* ===== CONTACTO + MAPA ===== */
.company-contact {
  display: grid;
  /* dos columnas automáticas de al menos 280px cada una */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-info,
.map-container {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: fadeInSimple 0.8s ease-out forwards;
}
.contact-info { animation-delay: 0.2s; }
.map-container { animation-delay: 0.4s; }

@keyframes fadeInSimple {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==== .contact-info ==== */
.contact-info {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.contact-info h2 {
  text-align: center;
  color: #b71c1c;
  margin-bottom: 1rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.contact-list i {
  font-size: 1.2rem;
  color: #b71c1c;
  width: 24px;
  text-align: center;
}
.contact-list a {
  color: #b71c1c;
  text-decoration: none;
}

/* ==== Botones WhatsApp ==== */
.whatsapp-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background-color: #25D366;
  border: 2px solid #fff;
  border-radius: 1.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.2s, transform 0.1s;
}
.whatsapp-btn img {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
}
.whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
}

/* ==== .map-container ==== */
.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

/* ===== HOVER & TRANSICIONES ===== */
.mission-item,
.contact-info,
.map-container {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  cursor: pointer;
}
.company-mission .mission-item:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.075) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  z-index: 2;
}
.company-contact .contact-info:hover,
.company-contact .map-container:hover {
  transform: translateY(0) scale(1.075) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  z-index: 2;
}

/* ===== RESPONSIVE (breakpoints) ===== */
@media (max-width: 900px) {
  .company-mission {
    flex-direction: column;
    gap: 1.5rem;
  }
  .company-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .company-logo {
    margin: 0 auto;
  }
  .company-description {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  .company-section {
    padding: 4% 2%;
  }
  .company-description p {
    font-size: 1rem;
  }
  .whatsapp-btn {
    flex: 1 1 calc(50% - .75rem);
    justify-content: center;
  }
}
