/*
* BODY - Base styles
*/
/* MOBILE FIRST - Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Quicksand", sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px; /* Base font size para mobile */
  width: 100%;

  display: grid;
  /* Mobile: Sin sidebar, main ocupa todo */
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/*
* HERO SECTION - BEM
*/
.hero {
  text-align: center;
  padding: 2rem 1rem; /* Reducido para mobile */
}

.hero__construction {
  text-align: center;
  padding: 1rem;
  border: #8b8b8b 1px solid;
  background-color: white;
  margin: 1rem;
  border-radius: 8px;
}

.hero__construction-title {
  font-size: 1.8rem; /* Reducido significativamente */
  color: #333;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.hero__construction-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

.hero__content {
  text-align: center;
  padding: 2rem 1rem;
}

.hero__title {
  font-size: 2rem; /* Reducido para mobile */
  margin-bottom: 0.5em;
  font-family: "Open Sans", sans-serif;
  line-height: 1.2;
  color: #19426b;
}
.main--dark-theme .hero__title {
  color: #ffffff; /* Cambiado a blanco en dark theme */
}

.hero__subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1em;
}

.hero__button {
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.75rem 1.5rem;
  border: 2px solid #000000;
  border-radius: 8px;
  display: inline-block;
  margin-top: 1rem;
  font-size: 1rem;
  color: black;
}

.hero__button:hover {
  background-color: #2c3e50;
  color: white;
}

/*
* CONTENT SECTION - BEM
*/
.content-section {
  padding: 2rem 1rem; /* Reducido para mobile */
  scroll-margin-top: 70px; /* Ajustado para header mobile */
  text-align: left;
  margin-bottom: 1rem;
  background-color: #fff;
  border-radius: 8px; /* Reducido para mobile */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 1rem; /* Márgenes laterales más pequeños */
  border: 1px solid #082f52; /* Border más sutil */
}

.content-section__inner {
  max-width: 100%; /* Usa todo el ancho disponible en mobile */
  margin: 0;
  padding: 0;
  text-align: left;
}

.content-section__title {
  font-size: 1.5rem; /* Reducido para mobile */
  margin-bottom: 1rem;
  text-align: center;
  color: #0c5ca3;
  line-height: 1.2;
}

.content-section__text {
  line-height: 1.6;
  margin-bottom: 1em;
  font-size: 0.95rem; /* Ligeramente más pequeño en mobile */
}

.content-section__link {
  color: #0011ff;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-word; /* Evita overflow en emails largos */
}

.content-section__link:hover {
  color: #2980b9;
}

.content-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-section__list-item {
  margin-bottom: 0.5rem;
}

.content-section__link--social {
  color: #0011ff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.content-section__link--social:hover {
  color: #2980b9;
}

.content-section__icon {
  margin-right: 0.5em;
  width: 1.2em; /* Ancho fijo para íconos */
}

/*
* IMAGE CONTAINER - BEM
*/
.image-container {
  width: 100%;
  max-width: 200px; /* Más pequeño en mobile */
  border-radius: 50%;
  height: auto;
  overflow: hidden;
  text-align: center;
  display: block;
  margin: 0 auto 1.5rem auto;
}

.image-container__img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.image-container__caption {
  text-align: center;
  color: #0e0b0bd7;
  margin-top: 0.5rem;
  display: block;
  font-size: 1rem;
}

/*
* PROJECTS SECTION - BEM
*/
.projects {
  padding: 2rem 1rem;
}

.projects__inner {
  display: flex;
  flex-direction: column; /* Stack en mobile */
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.projects__card {
  text-align: left;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.projects__card-title {
  margin-top: 0;
  color: #2c3e50;
  text-align: left;
  font-size: 1.2rem; /* Reducido para mobile */
  margin-bottom: 0.6em;
  line-height: 1.2;
}

.projects__card-description {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.projects__tech {
  margin-bottom: 0.5rem;
  color: #777;
  font-size: 0.85rem;
  text-align: left;
}

.projects__tech-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.projects__tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.projects__tech-item {
  background-color: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/*
* SKILLS SECTION - BEM - Diseño de Grilla Rectangular
*/

.skills__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  max-width: 678px;
}

.skills__item {
  /* background: linear-gradient(135deg, #193e58 0%, #bbdefb 100%); */
  padding: 1rem 0.75rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* cursor: pointer; */
}
/* 
.skills__item:hover {

  background: linear-gradient(135deg, #bbdefb 0%, #193e58 100%);
  border-color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 17, 255, 0.15);
  color: #000000;
}
 */

/*
* HEADER - BEM
*/
.header {
  background: linear-gradient(135deg, #1a172c 0%, #082f52 100%);
  color: white;
  padding: 0.75rem 1rem; /* Reducido para mobile */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 110;
  display: flex;
  grid-area: header;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 60px; /* Altura mínima más pequeña */
}

.header__title {
  margin: 0;
  font-size: 1.2rem; /* Más pequeño en mobile */
  letter-spacing: 1px;
  font-family: "Open Sans", sans-serif;
  flex: 1;
  min-width: 0; /* Permite que se contraiga */
}

.header__subtitle {
  display: none;
}

.header__nav {
  display: none;
}

.header__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.header__nav-item {
  margin: 4px 0;
}
.header__nav-item:hover {
  transform: translateX(3px);
}
.header__nav-link {
  color: #bbdefb;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
}

.header__nav-link:hover,
.header__nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.header__toggle-theme {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbdefb;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
}

.header__toggle-theme:hover {
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
  transform: translateX(3px);
}

.header__theme-icon {
  line-height: 0;
}

/*
* MAIN
*/
main {
  grid-area: main;
  flex-grow: 1;
  padding: 70px 0 2rem 0; /* Ajustado para mobile */
  align-items: center;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Cambiado de center */
  text-align: left;
  background-image: url("../images/13164433_5180058.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: scroll; /* Cambiado de fixed para mejor rendimiento en mobile */

  /* Asegurar que el fondo cubra todo el viewport */
  min-height: 100vh;
  position: relative;
}

/*
* SIDEBAR - BEM
*/
.sidebar {
  display: none;
}

.sidebar__nav {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar__nav-item {
  margin-bottom: 20px;
}

.sidebar__nav-link {
  color: #bbdefb;
  text-decoration: none;
  font-size: 1.2em;
  display: block;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 20px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.sidebar__nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


/*
* FOOTER - BEM
*/
.footer {
  background: linear-gradient(135deg, #1a172c 0%, #082f52 100%);
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column; /* Stack en mobile */
  justify-content: center;
  align-items: center;
  z-index: 102;
  grid-area: footer;
}

.footer__section {
  width: 100%;
  margin-bottom: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer__section-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 5px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list-item {
  margin-bottom: 0.5rem;
}

.footer__link {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer__link:hover {
  color: #ffdd57;
  text-decoration: underline;
}

.footer__contact-info {
  margin: 5px 0;
  font-size: 0.8rem;
  color: #dbeafe;
}

.footer__social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.footer__social-link {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.footer__social-link:hover {
  color: #ffdd57;
  text-decoration: underline;
}

.footer__social-icon {
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* 
* DARK THEME - BEM
*/
.body--dark-theme {
  background-color: #121212;
  color: #e0e0e0;
}

.header--dark-theme {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: #e0e0e0;
}

.header--dark-theme .header__nav-link {
  color: white;
}
.header--dark-theme .header__theme-toggle {
  color: #e0e0e0;
}

.main--dark-theme {
  background: #212121;
  color: #e0e0e0;
  background-image: url("../images/jeremy-bishop-8xznAGy4HcY-unsplash.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll; /* Cambiado para mobile */
  min-height: 100vh;
}

.main--dark-theme .hero__button:hover {
  background-color: #000000;
  color: white;
}

.footer--dark-theme {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: #f5f5f5;
}

.sidebar--dark-theme {
  background: linear-gradient(135deg, #333 0%, #555 100%);
  color: #f5f5f5;
}

.sidebar--dark-theme .sidebar__nav-link {
  color: #f5f5f5;
}

.sidebar--dark-theme .sidebar__nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.content-section--dark-theme {
  background-color: #333;
  color: #e0e0e0;
  border-color: #555;
}

.content-section--dark-theme .content-section__title {
  color: #f5f5f5;
}

.content-section--dark-theme .image-container__caption {
  color: #e0e0e0;
}

.projects__card--dark-theme {
  background-color: #444;
  color: #e0e0e0;
  border-color: #666;
}

.projects__card--dark-theme .projects__card-title {
  color: #f5f5f5;
}

.projects__card--dark-theme .projects__tech {
  color: #ccc;
}

.projects__card--dark-theme .projects__card-description {
  color: #ccc;
}

.projects__card--dark-theme .projects__tech-item {
  background-color: #555;
  color: #e0e0e0;
}

.skills__item--dark-theme {
  background-color: #444;
  border-color: #666;
  color: #e0e0e0;
}

.skills__item--dark-theme:hover {
  background-color: #555;
}

.content-section--dark-theme .content-section__link {
  color: #ffffff;
}

.content-section--dark-theme .content-section__link:hover {
  color: #0062ff;
}

.content-section--dark-theme .content-section__link--social {
  color: #ffffff;
}

.content-section--dark-theme .content-section__link--social:hover {
  color: #0062ff;
}

.hero--dark-theme .hero__construction {
  background-color: #121212;
}

.hero--dark-theme .hero__construction-title {
  color: #ffffff;
}

.hero--dark-theme .hero__construction-text {
  color: #e9e9e9;
}
.header--dark-theme .dropdown__toggle {
  color: #e0e0e0;
}

.header--dark-theme .hamburger span {
  background: #e0e0e0;
}

.header--dark-theme .dropdown__menu {
  background: #333;
  border-color: #555;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.header--dark-theme .dropdown__item,
.header--dark-theme .dropdown__theme-item {
  color: #e0e0e0;
}

.header--dark-theme .dropdown__item:hover,
.header--dark-theme .dropdown__theme-item:hover {
  background-color: #444;
  color: #ffffff;
}

.header--dark-theme .dropdown__description {
  color: #ccc;
}

.header--dark-theme .dropdown__divider {
  background-color: #555;
}
.header--dark-theme .header__toggle-theme {
  color: #e0e0e0;
}
.header--dark-theme .header__toggle-theme:hover,
.header--dark-theme .header__toggle-theme:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
/* RESPONSIVE DESIGN */
@media (max-width: 480px) {
  .contact-info__item {
    padding: 0.5rem;
    gap: 0.5rem;
    /* En pantallas muy pequeñas, cambiar a vertical si es necesario */
    flex-direction: column;
    text-align: center;
  }

  .contact-info__icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* TABLET - 768px+ */
@media (min-width: 768px) {
  body {
    font-size: 18px; /* Incrementa el tamaño base */
  }

  .header {
    padding: 1rem;
    min-height: 70px;
  }

  .header__title {
    font-size: 1.8rem;
  }

  .header__nav {
    display: none;
  }
  .dropdown__toggle {
    display: none; /* Oculto por defecto en pantallas grandes */
  }
  .header__nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
  }

  .header__theme-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-left: 1rem;
    color: #bbdefb;
  }

  main {
    padding: 80px 2rem 2rem 2rem;
  }

  .hero {
    padding: 3rem 2rem;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__construction-title {
    font-size: 2.5rem;
  }

  .hero__construction-text {
    font-size: 1.2rem;
  }

  .content-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    scroll-margin-top: 90px;
    border-radius: 15px;
  }

  .content-section__title {
    font-size: 2rem;
  }

  .content-section__text {
    font-size: 1rem;
  }

  .image-container {
    max-width: 300px;
    margin-bottom: 2rem;
  }

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

  .projects__card {
    padding: 1.5rem;
  }

  .projects__card-title {
    font-size: 1.4rem;
  }

  .projects__card-description {
    font-size: 1rem;
  }

  .skills__container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    max-width: 1024px;
  }

  .skills__item {
    padding: 1.25rem 1rem;
    min-height: 70px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .hero__construction {
    max-width: 600px;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .footer {
    padding: 1.5rem;
    flex-direction: row;
    /* justify-content: space-between; */
  }

  .footer__section {
    width: auto;
    margin-bottom: 0;
    margin-right: 2rem;
  }
  .carta-presentacion__cta {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  .contact-info__item {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .contact-info__icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .contact-info__content strong {
    font-size: 0.9rem;
  }

  .contact-info__content a {
    font-size: 0.8rem;
  }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-form {
    max-width: 600px;
    margin: 1.5rem auto;
  }

  .contact-info {
    max-width: 600px;
    margin: 1.5rem auto;
  }
  main {
    padding-top: 80px;
  }
}
/* DESKTOP - 1024px+ */
@media (min-width: 1024px) {
  body {
    grid-template-areas:
      "sidebar header"
      "sidebar main"
      "sidebar footer";
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .header {
    padding: 1rem;
    max-height: 100px;
  }

  .header__title {
    margin: 0;
    font-size: 1.2rem; /* Más pequeño en mobile */
    letter-spacing: 1px;
    font-family: "Open Sans", sans-serif;
    flex: 1;
    min-width: 0; /* Permite que se contraiga */
    display: flex;
    align-items: center;  
  }
  .header__nav {
    display: block;
  }

  .dropdown__toggle {
    display: none !important;
  }

  .sidebar {
    display: flex;
    grid-area: sidebar;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80px;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    z-index: 101;
    background: linear-gradient(135deg, #1a172c 0%, #082f52 100%);
  }

  .sidebar__nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
  }

  .sidebar__nav-link {
    color: #bbdefb;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.75rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
  }

  .sidebar__nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  main {
    padding: 100px 3rem 2rem 3rem;
    /* Opcional: usar fixed solo en desktop si se desea, pero scroll es más estable */
    background-attachment: scroll; /* Cambiado de fixed a scroll para mayor estabilidad */
  }

  .main--dark-theme {
    background-attachment: scroll; /* Cambiado de fixed a scroll */
  }

  .content-section {
    max-width: 1000px;
    padding: 3rem;
    scroll-margin-top: 100px;
  }

  .content-section__title {
    font-size: 2em;
  }

  .image-container {
    max-width: 350px;
    margin-bottom: 2.5rem;
  }

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

  .projects__card {
    padding: 2rem;
  }

  .skills__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    max-width: 678px; /* Opcional: limitar el ancho total */
  }

  .skills__item {
    padding: 1.5rem 1.25rem;
    min-height: 80px;
    font-size: 1.1rem;
    border-radius: 15px;
  }

  .sidebar--dark-theme {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #f5f5f5;
  }

  .contact-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
  }

  .contact-info {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
  }

  .contact-form__title {
    font-size: 2rem;
  }

  .contact-info__title {
    font-size: 1.5rem;
  }
}

/*
* DROPDOWN - BEM - RESPONSIVE Y TEMA OSCURO
*/
.dropdown {
  position: relative;
  display: block;
}

.dropdown__toggle {
  background: transparent;
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.dropdown__toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #bbdefb;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}
.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
  top: 7px;
}
.hamburger span:nth-child(4) {
  top: 14px;
}

.dropdown--show .hamburger span:nth-child(1) {
  top: 7px;
  width: 0%;
  left: 50%;
}

.dropdown--show .hamburger span:nth-child(2) {
  transform: rotate(45deg);
}

.dropdown--show .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
}

.dropdown--show .hamburger span:nth-child(4) {
  top: 7px;
  width: 0%;
  left: 50%;
}

.dropdown__menu {
  position: fixed;
  top: 70px;
  left: 1rem;
  right: 1rem;
  width: auto;
  min-width: auto;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 111;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown--show .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0.25rem;
  gap: 0.75rem;
  cursor: pointer;
}

.dropdown__item:hover {
  background-color: #f8f9fa;
  color: #0c5ca3;
  transform: translateX(3px);
}

/* ELEMENTO ESPECIAL PARA THEME TOGGLE */
.dropdown__theme-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0.25rem;
  gap: 0.75rem;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown__theme-item:hover {
  background-color: #f8f9fa;
  color: #0c5ca3;
  transform: translateX(3px);
}

.dropdown__icon {
  font-size: 1rem;
  width: 1.2rem;
  text-align: center;
  flex-shrink: 0;
}

.dropdown__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dropdown__title {
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Quicksand", sans-serif;
}

.dropdown__description {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
  font-family: "Quicksand", sans-serif;
}

.dropdown__divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 0.5rem 0;
}

/* Estilos de la pagina contacto */
.contact-form {
  background-color: #fff;
  border: 1px solid #082f52;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 1rem;
}

.contact-form__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #0c5ca3;
  line-height: 1.2;
  font-family: "Open Sans", sans-serif;
}

.form-label {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem;
  font-family: "Quicksand", sans-serif;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #0c5ca3;
  box-shadow: 0 0 0 0.2rem rgba(12, 92, 163, 0.25);
  outline: 2px solid #0c5ca3;
  outline-offset: 2px;
}

.btn-primary-custom {
  background-color: transparent;
  color: #000;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary-custom:hover {
  background-color: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

.contact-info {
  background-color: #fff;
  border: 1px solid #082f52;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 1rem;
}

.contact-info__title {
  font-size: 1.3rem;
  color: #0c5ca3;
  margin-bottom: 1rem;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* Importante para evitar desbordamiento */
  overflow: hidden;
  word-wrap: break-word;
  /* Permitir que el contenedor se encoja */
  min-width: 0;
}

.contact-info__icon {
  /* Evitar que el ícono se encoja */
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
}

.contact-info__content {
  /* Permitir que el contenido se expanda pero también se encoja */
  flex: 1;
  min-width: 0; /* Importante para permitir que el texto se rompa */
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info__content strong {
  color: #333;
  display: block;
  margin-bottom: 0.25rem;
}

.contact-info__content a {
  color: #0011ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info__content a:hover {
  color: #2980b9;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #0011ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #0c5ca3;
  color: white;
  border-color: #0c5ca3;
}

.social-link i {
  margin-right: 0.5rem;
  width: 1.2em;
}

/* Dark theme adaptations */
.main--dark-theme .contact-form,
.main--dark-theme .contact-info {
  background-color: #333;
  color: #e0e0e0;
  border-color: #555;
}

.main--dark-theme .contact-form__title,
.main--dark-theme .contact-info__title {
  color: #f5f5f5;
}

.main--dark-theme .form-label {
  color: #e0e0e0;
}

.main--dark-theme .form-control,
.main--dark-theme .form-select {
  background-color: #444;
  border-color: #666;
  color: #e0e0e0;
}

.main--dark-theme .form-control:focus,
.main--dark-theme .form-select:focus {
  background-color: #555;
  border-color: #f5f5f5;
  color: #e0e0e0;
}

.main--dark-theme .contact-info__item {
  background-color: #444;
}

.main--dark-theme .contact-info__content strong {
  color: #f5f5f5;
}

.main--dark-theme .contact-info__content a {
  color: #ffffff;
}

.main--dark-theme .contact-info__content a:hover {
  color: #0062ff;
}

.main--dark-theme .social-link {
  background-color: #444;
  border-color: #666;
  color: #ffffff;
}

.main--dark-theme .social-link:hover {
  background-color: #555;
  color: #0062ff;
}

.form-label,
.form-control,
.form-select,
.btn,
.text-muted {
  font-family: "Quicksand", sans-serif !important;
}

.contact-subtitle {
  font-family: "Quicksand", sans-serif;
  color: #6c757d; /* Color por defecto de Bootstrap text-muted */
  transition: color 0.3s ease;
}

/* el subtitulo que tiene bootstrap aplicado no cambia con el tema oscuro, corregir.*/
.main--dark-theme .contact-subtitle {
  color: #adb5bd !important; /* Color más claro para tema oscuro */
}
