/* Hereda estilos del CSS padre */
@import url("styles.css");

/* ===== ESTILOS ESPECÍFICOS PARA MAPAS ===== */

/* Contenedor principal de mapas */
.map-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Información del mapa */
.map-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e74c3c;
}

.info-header i {
  color: #e74c3c;
  font-size: 1.5rem;
}

.info-header h3 {
  color: #2c3e50;
  font-weight: 600;
  margin: 0;
}

.info-content p {
  margin: 0.5rem 0;
  color: #34495e;
  line-height: 1.6;
}

.info-content strong {
  color: #2c3e50;
}

/* Embed del mapa */
.map-embed {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  height: fit-content;
}

.map-embed iframe {
  border-radius: 15px;
  filter: contrast(1.1) saturate(1.1);
}

/* ===== SECCIÓN DE CIRCUITOS ===== */
.circuits-section {
  margin: 4rem 0;
  padding: 2rem 0;
}

.circuits-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.circuits-section .section-header h3 {
  color: #2c3e50;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.circuits-section .section-header i {
  color: #e74c3c;
  font-size: 2rem;
}

.circuits-section .section-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid de circuitos */
.circuits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

/* Tarjeta de circuito */
.circuit-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.circuit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.circuit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Header del circuito */
.circuit-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(231, 76, 60, 0.1);
}

.circuit-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.circuit-icon i {
  color: white;
  font-size: 1.5rem;
}

.circuit-info h4 {
  color: #2c3e50;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.circuit-info p {
  color: #7f8c8d;
  margin: 0;
  font-size: 1rem;
}

/* Contenedor de imagen del circuito */
.circuit-image-container {
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.circuit-placeholder {
  background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7f8c8d;
  border: 2px dashed #bdc3c7;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.circuit-placeholder:hover {
  background: linear-gradient(135deg, #d5dbdb 0%, #a6acaf 100%);
  border-color: #95a5a6;
}

.circuit-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.circuit-placeholder p {
  text-align: center;
  font-weight: 500;
  margin: 0;
  padding: 0 1rem;
}

.circuit-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.circuit-image:hover {
  transform: scale(1.05);
}

/* Detalles del circuito */
.circuit-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(236, 240, 241, 0.5);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: rgba(231, 76, 60, 0.1);
  transform: translateX(5px);
}

.detail-item i {
  color: #e74c3c;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.detail-item span {
  color: #2c3e50;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ===== SECCIÓN DE SERVICIOS ===== */
.facilities-section {
  margin: 4rem 0;
  padding: 2rem 0;
}

.facilities-section h3 {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.facilities-section h3 i {
  color: #e74c3c;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.facility-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.facility-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.facility-item i {
  font-size: 2.5rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.facility-item h4 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.facility-item p {
  color: #7f8c8d;
  margin: 0;
  line-height: 1.5;
}

/* ===== SECCIÓN DE CONTACTO ===== */
.contact-section {
  margin: 4rem 0;
  padding: 2rem 0;
}

.contact-section h3 {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.contact-section h3 i {
  color: #e74c3c;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-item i {
  font-size: 2rem;
  color: #e74c3c;
  width: 50px;
  text-align: center;
}

.contact-item h4 {
  color: #2c3e50;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.contact-item p {
  color: #7f8c8d;
  margin: 0;
  font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .map-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .circuits-grid {
    grid-template-columns: 1fr;
  }

  .circuit-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .map-container {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .circuit-card {
    padding: 1.5rem;
  }

  .circuit-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .circuit-icon {
    width: 50px;
    height: 50px;
  }

  .circuit-icon i {
    font-size: 1.2rem;
  }

  .circuits-section .section-header h3 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .facilities-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .facility-item,
  .contact-item {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .circuits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .circuit-card {
    padding: 1rem;
  }

  .circuit-placeholder {
    height: 200px;
  }

  .circuit-image {
    height: 200px;
  }

  .detail-item {
    padding: 0.8rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .info-card {
    padding: 1rem;
  }

  .map-container {
    padding: 1rem;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.circuit-card,
.facility-item,
.contact-item,
.info-card {
  animation: fadeInUp 0.6s ease forwards;
}

.circuit-card:nth-child(2) {
  animation-delay: 0.2s;
}

.facility-item:nth-child(even) {
  animation-delay: 0.1s;
}

.contact-item:nth-child(even) {
  animation-delay: 0.15s;
}
