/* Variables CSS */
:root {
  --primary-color: #f9d71c;
  --dark-bg: #212529;
  --light-text: #ffffff;
}

/* Base Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Dark Mode */
body.dark-mode {
  background-color: #212529;
  color: #ffffff;
}

.navbar-dark-mode {
  background-color: #1f1f1f !important;
}

.dropdown-menu.dark-dropdown {
  background-color: #2c2c2c;
}

.dropdown-menu.dark-dropdown a {
  color: #ffffff;
}

.dropdown-menu.dark-dropdown a:hover {
  background-color: #f9d71c;
}

.btn-outline-light.dark-icon {
  color: #f9d71c;
}
/* Fin Dark Mode */

/* Navbar Styles */
.navbar-custom {
  background-color: var(--dark-bg) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--light-text) !important;
}

.navbar-nav .nav-link {
  color: var(--light-text) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.logo {
  height: 60px;
  width: 60px;
  margin-right: 10px;
  border-radius: 0.25em;
  box-shadow: 0 10px 12px rgba(255, 255, 255, 0.3);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Estilo para enlaces activos en navbar */
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
}

/* Main Section */
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #f8f9fa;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ***** #####  Seccion Carrusel ##### ***** */
#seccion_1_A {
  width: 100%;
  height: 100vh;
  position: relative;
}

.slider-container img {
  flex: 0 0 100%;
  width: 100%;
  height: 97.8vh;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 0.6em;
  box-shadow: 5px 8px 8px #000;
}

.swiffy-slider .slider-nav {
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  z-index: 10;
}

.swiffy-slider .slider-nav:not(.slider-nav-next) {
  left: 10px;
}

.swiffy-slider .slider-nav-next {
  right: 10px;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5vw;
  pointer-events: none;
  z-index: 5;
}

.carousel-text {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 40%;
}

.slider-indicators button {
  width: 30px !important;
  height: 10px !important;
  border-radius: 5px !important;
  margin: 0 3px;
  background-color: #ffffff80;
}

.slider-indicators button.active {
  background-color: #ffffff;
}

.section-footer img {
  height: 60px;
  width: 60px;
  margin-right: 10px;
  border-radius: 0.25em;
  box-shadow: 0 10px 12px rgba(255, 255, 255, 0.3);
}

/* Footer Styles */
.footer-custom {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 3rem 0 1rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: var(--light-text);
  line-height: 1.8;
  text-decoration: none;
  display: flex; /* Añade esto para alinear iconos y texto */
  align-items: center; /* Alinea verticalmente */
}

.footer-section a:hover {
  text-decoration: underline;
}

/* Asegura que los iconos sean visibles */
.footer-section i,
.footer-section .fas,
.footer-section .fa {
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-size: 1rem; /* Tamaño consistente */
  display: inline-block; /* Asegura visualización */
  width: 1.25rem; /* Ancho fijo para alineación */
  text-align: center; /* Centra el icono */
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  display: flex; /* Alinea icono y texto */
  align-items: center; /* Centra verticalmente */
}

.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: #adb5bd;
}

/* AOS Animation improvements */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Estilos para el formulario */
#contactForm {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#contactForm .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000;
}

#contactForm .form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #000;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#contactForm .form-control::placeholder {
  color: #000;
}

#contactForm label {
  color: #000;
  font-weight: 500;
}

/* Estilos para dark mode */
.dark-mode #contactForm {
  background-color: rgba(0, 0, 0, 0.5);
}

.dark-mode #contactForm .form-control {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: #495057;
  color: #f8f9fa;
}

.dark-mode #contactForm .form-control:focus {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Mobile First Responsive Design */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .logo {
    height: 30px;
    width: 30px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .h5,
  h5 {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 0.8rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
  }

  .carousel-text {
    padding: 1rem;
    max-width: 70%;
  }

  .carousel-overlay {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 5vw;
    pointer-events: none;
    z-index: 5;
  }

  .main-section {
    background-attachment: scroll;
  }

  .footer-section {
    text-align: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .navbar-brand {
    font-size: 1.3rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }
}
