/* --- RESET Y BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

/* --- NAVEGACIÓN --- */
.header {
  background: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.modo-oscuro-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 1rem;
  color: #333;
}

/* --- HERO --- */
.hero {
  background: #4CAF50;/* #f4f7fa;*/
  padding: 5rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
}

/* --- SECCIÓN SERVICIOS --- */
section {
  padding: 4rem 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

.card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.card:hover {
  transform: translateY(-5px);
}

.saber-mas {
  text-decoration: none;
  color: #004aad;
  font-weight: 500;
  transition: color 0.2s ease;
}

.saber-mas:hover {
  color: #00307a;
}

/* --- SECCIÓN CONTACTO --- */
.contacto {
  background: #f1f5f9;
  padding: 4rem 2rem;
  text-align: center;
}

.formulario {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario input,
.formulario textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.formulario .btn {
  background: #004aad;
  color: white;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  transition: background 0.3s;
}

.formulario .btn:hover {
  background: #003b8e;
}












/* --- FOOTER --- */
.footer.footer {
  background: #eee;
  /*background: #111 !important;*/
  padding: 2rem;
  font-size: 0.9rem;
  color: #333;
  
}

.footer .footer-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;

}

.footer .icon {
  vertical-align: middle;
  fill: #555;
  margin-right: 0.5rem;
}

.footer p {
  margin: 0.5rem 0;
}

.footer a {
  color: #333;
  margin: 0 0.3rem;
  text-decoration: none;
}

.footer a:hover .icon {
  fill: #0077cc;
}













/* --- MODO OSCURO --- */
body.dark-mode {
  background-color: #111;
  color: #eee;
}

body.dark-mode .header {
  background: #1a1a1a;
  box-shadow: none;
}

body.dark-mode .nav a,
body.dark-mode .modo-oscuro-btn {
  color: #eee;
}

body.dark-mode .hero {
  background: #222;
}

body.dark-mode .card {
  background: #1f1f1f;
  color: #eee;
}

body.dark-mode .card p {
  color: #ccc;
}

body.dark-mode .saber-mas {
  color: #7fb4ff;
}

body.dark-mode .saber-mas:hover {
  color: #a4cdff;
}

body.dark-mode .contacto {
  background: #000;
  color: #eee;
}

body.dark-mode .formulario input,
body.dark-mode .formulario textarea {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
}

body.dark-mode ::placeholder {
  color: #aaa;
}

body.dark-mode .footer {
  background: #111;
  color: #888;
}





/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer {
    font-size: 0.8rem;
  }
}






#nosotros {
  position: relative;
  background: url('../img/photo-1521737604893-d14cc237f11d.jpg?auto=format&fit=crop&w=1600&q=80') no-repeat center center / cover;
  padding: 6rem 2rem;
  color: #fff;
  overflow: hidden;
}

#nosotros .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

#nosotros .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

#nosotros h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.equipo p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #eee;
}

.frase {
  font-style: italic;
  font-size: 1.2rem;
  margin: 2rem auto;
  color: #ccc;
}

.frase span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #999;
}

/* Timeline */
.timeline {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.evento {
  background: rgba(255,255,255,0.08);
  padding: 1.2rem 1.5rem;
  border-left: 4px solid #1e90ff;
  border-radius: 5px;
  text-align: left;
  backdrop-filter: blur(4px);
}

.año {
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.3rem;
  color: #fff;
}

.evento p {
  margin: 0;
  color: #ddd;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
  .frase {
    font-size: 1rem;
  }

  .evento {
    font-size: 0.9rem;
  }
}

/* Dark Mode overrides (ya que fondo es oscuro por defecto) */
body.dark-mode #nosotros {
  background-blend-mode: multiply;
}











#comoseempieza {
  background: #f7f7f7;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  padding: 6rem 2rem;
  color: #fff;
  overflow: hidden;
}

#comoseempieza .intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.6;
}

#comoseempieza .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

#comoseempieza .card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

#comoseempieza .card:hover {
  transform: translateY(-5px);
}

.btn-leer-mas {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: #1e90ff;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-leer-mas:hover {
  background: #0077cc;
}

/* Modo oscuro */
body.dark-mode #comoseempieza {
  background: #121212;
}

body.dark-mode #comoseempieza .intro,
body.dark-mode #comoseempieza .card p {
  color: #ccc;
}

body.dark-mode #comoseempieza .card {
  background: #1c1c1c;
  box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}













.carousel-container {
  position: relative;
  width: 80%;
  margin: auto;
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  background-color: #ffffff;
  width: 1000px;
  width: 100%;
}

.carousel-item {
  width: 200px;
  height: 100px;
  object-fit: cover;
  margin-right: 35px;
  border-radius: 5px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}