/* ========================================================== */
/* Estilos Generales y Componentes Base             */
/* ========================================================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: #666666;
}

/* --- Botones --- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  margin-top: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #ff5722;
}

.btn-primary:hover {
  background-color: #e64a19;
}

.btn-secondary {
  background-color: #4caf50;
}

.btn-secondary:hover {
  background-color: #45a049;
}

/* ========================================================== */
/* Layout de la Página                  */
/* ========================================================== */

/* --- Cabecera y Navegación --- */
header {
  background-color: #ffffff;
  color: #333333;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eaeaea;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #333333;
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: #333333;
  text-decoration: none;
  font-weight: bold;
}

/* --- Pie de Página --- */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #333333;
  color: white;
  margin-top: auto;
}

/* ========================================================== */
/* Estilos por Secciones de Página           */
/* ========================================================== */

/* --- Sección de Slider (Página de Inicio) --- */
.slider-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 7rem);
  overflow: hidden;
}

.slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  width: 100%;
  flex-shrink: 0;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.static-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem 3rem;
  border-radius: 10px;
}

.static-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.static-content p {
  font-size: 1.2rem;
  color: white;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  cursor: pointer;
}

.dot.active {
  background-color: #4caf50;
}

/* --- Sección de Misión --- */
.mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.mission-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.mission-text h1 {
  color: #4caf50;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mission-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Versión para escritorio de la sección de misión */
@media (min-width: 768px) {
  .mission {
    flex-direction: row;
    text-align: left;
    gap: 3rem;
  }
  .mission-text {
    flex: 1;
  }
  .mission-image {
    flex-shrink: 0;
  }
}

/* --- Sección de Servicios --- */
.services {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #f8f8f8;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #4caf50;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 2rem;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.6s ease, visibility 0.6s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.service-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #333333;
  margin-top: 0;
}

.service-card p {
  color: #666666;
}

/* --- Sección de Proyectos --- */
.projects {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #f8f8f8;
}

.projects h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #4caf50;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
  text-align: left;
}

.project-info h3 {
  margin-top: 0;
  color: #333333;
}

.project-info p {
  color: #666666;
  line-height: 1.5;
}

/* --- Sección de Contacto --- */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
}

.contact h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4caf50;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #666666;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.contact .btn-primary {
  align-self: flex-start;
}
