* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  scroll-behavior: smooth;
}

body {
  background-color: #0d0d0d;
  margin: 0;
}

/* Toggle tema */
.theme-toggle {
  margin-left: 10px;
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.icon-light {
  display: none;
}
body.light .icon-dark {
  display: none;
}
body.light .icon-light {
  display: inline;
}

/* (removido) Logo de esquina para light mode */

/*
  color de fondo:                     --- #000000
  color de texto:                     --- #ffffff (blanco)
  colortxt hover:                     --- #c0c0c0
  color de hover de contacto en nav:  --- #505050
  
  */

/* INICIA SCROLLBAR */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #555;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}

/* cierra scrollbar */

/* INICIA Barra de navegación */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: #0d0d0d;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: calc(10px + env(safe-area-inset-top)) 0 10px 0;
}

.navbar-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logotipo {
  display: block;
  width: 266px;
  height: 80px;
}
.top-nav {
  display: flex;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navlist {
  text-align: center;
  align-items: center;
  padding: 1em 1em;
  margin: 1em;
  display: flex;
  color: #ffffff;
  float: right;
  font-weight: 500;
  font-size: large;
  border: solid 2px #0d0d0d;
  border-top: none;
  border-bottom: none;
  text-decoration: none;
}

.navlist:hover {
  color: #c0c0c0;
  border: solid 2px #0d0d0d;
  border-top: none;
  border-bottom: none;
}

.navlist-especial {
  text-align: center;
  padding: 0.6em 1.2em;
  margin: auto 0.5em auto 1em;
  display: inline;
  float: right;
  color: #ffffff;
  background-color: transparent;
  border: 2px solid #ffffff;
  border-radius: 0.4em;
  font-size: large;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.navlist-especial::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transition: left 0.3s ease;
  z-index: -1;
}

.navlist-especial:hover {
  color: #0d0d0d;
  border-color: #ffffff;
}

.navlist-especial:hover::before {
  left: 0;
}

/* Light mode overrides */
body.light {
  background-color: #ffffff;
}
body.light .navbar {
  background-color: #ffffff;
}
body.light .navlist {
  color: #0d0d0d;
  border-color: #ffffff;
}
body.light .navlist:hover {
  color: #505050;
  border-color: #ffffff;
}
body.light .navlist-especial {
  color: #0d0d0d;
  border-color: #0d0d0d;
}
body.light .navlist-especial::before {
  background-color: #0d0d0d;
}
body.light .navlist-especial:hover {
  color: #ffffff;
  border-color: #0d0d0d;
}
body.light .greeting,
body.light .name,
body.light .description,
body.light .project-content,
body.light .project-name,
body.light .project-subtitle,
body.light .skills-title,
body.light .about-content,
body.light .github-link,
body.light .social-link,
body.light .email-text,
body.light .footer-link,
body.light .derechos,
body.light .location-signature p {
  color: #0d0d0d;
}
body.light .about-section,
body.light .skills-section,
body.light .projects-section,
body.light .contact-section {
  background-color: #ffffff;
}
body.light .project-logo {
  border-color: #0d0d0d;
}
body.light .github-link {
  border-color: #0d0d0d;
}
body.light .github-link:hover {
  background-color: #0d0d0d;
  color: #ffffff;
}

body.light .github-link:hover .github-icon {
  filter: brightness(0) invert(1);
}
body.light .github-icon,
body.light .skill-icon,
body.light .social-icon,
body.light .gmail-icon {
  filter: none;
}
body.light .form-group input,
body.light .form-group textarea {
  border-color: #0d0d0d;
  color: #0d0d0d;
}
body.light .form-group input::placeholder,
body.light .form-group textarea::placeholder {
  color: #505050;
}
body.light .form-group input:focus,
body.light .form-group textarea:focus {
  border-color: #0d0d0d;
  box-shadow: 0 0 0 2px rgba(13, 13, 13, 0.2);
}
body.light .email-recaptcha-container {
  border-color: rgba(13, 13, 13, 0.3);
  background-color: rgba(13, 13, 13, 0.05);
}
body.light .email-display {
  border-color: #0d0d0d;
  background-color: rgba(13, 13, 13, 0.08);
}
body.light .copy-button {
  background-color: #0d0d0d;
  color: #ffffff;
}
body.light .copy-button:hover {
  background-color: #505050;
}
body.light .btn-recaptcha,
body.light .btn-enviar {
  border-color: #0d0d0d;
  color: #0d0d0d;
}
body.light .btn-enviar {
  background-color: #0d0d0d;
  color: #ffffff;
}
body.light .btn-enviar:hover {
  background-color: transparent;
  color: #0d0d0d;
}
body.light .github-section {
  border-top: 1px solid rgba(13, 13, 13, 0.2);
}
body.light .footer-link:hover {
  color: #505050;
}
/* Email button en light mode */
body.light .email-button {
  border-color: #0d0d0d;
  color: #0d0d0d;
}
body.light .email-button:hover {
  background-color: #0d0d0d;
  color: #ffffff;
}
/* Hamburguesa oscura en light mode */
body.light .hamburger-menu {
  color: #0d0d0d;
}
/* Toggle visible en light mode */
body.light .theme-toggle {
  border-color: #0d0d0d;
  color: #0d0d0d;
}
body.light .theme-toggle img {
  filter: none;
}

.nav-item {
  display: inline;
  list-style-type: none;
}

.hamburger-menu {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

/* Alinear el toggle junto a Contacto */
.nav-item-toggle {
  display: inline-flex;
  align-items: center;
}
.theme-toggle {
  margin-left: 6px;
}

@media (max-width: 767px) {
  .hamburger-menu {
    display: block;
  }

  .top-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #0d0d0d;
    position: fixed;
    top: 60px;
    left: 0;
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Light mode para menú móvil */
  body.light .top-nav {
    background-color: #ffffff;
  }

  .top-nav.show {
    display: flex;
    transform: translateY(0);
    padding: 0;
    margin-top: 0;
  }

  .nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    width: 100%;
    list-style: none;
    font-size: 1.2em;
    color: #ffffff;
    transition: color 0.3s ease;
  }

  .nav-item a.navlist {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 0px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  body.light .nav-item {
    color: #0d0d0d;
  }
  body.light .nav-item a.navlist {
    color: #0d0d0d;
  }

  .nav-item a.navlist:hover {
    color: #c0c0c0;
  }

  .navlist-especial {
    display: inline-block;
    width: auto;
    text-align: center;
    margin: 0;
    padding: 12px 24px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  body.light .navlist-especial {
    color: #0d0d0d;
    border-color: #0d0d0d;
  }

  .navlist-especial::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    transition: left 0.3s ease;
    z-index: -1;
  }

  body.light .navlist-especial::before {
    background-color: #0d0d0d;
  }

  .navlist-especial:hover {
    color: #0d0d0d;
    border-color: #ffffff;
  }

  body.light .navlist-especial:hover {
    color: #ffffff;
    border-color: #0d0d0d;
  }

  .navlist-especial:hover::before {
    left: 0;
  }

  /* Igualar separación del toggle con otros items en menú móvil */
  .theme-toggle {
    margin-left: 0;
  }
  .nav-item-toggle {
    display: flex;
    width: 100%;
    margin: 20px 0;
    justify-content: center;
    align-items: center;
  }

  .logotipo {
    width: 133px;
    height: 40px;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: #0d0d0d;
  }
}
@media (max-height: 400px) {
  .nav-item {
    margin-top: 8px;
    margin-bottom: 8px;
  }
  /* Alinear toggle en modo apaisado móvil */
  .nav-item-toggle {
    margin-top: 8px;
    margin-bottom: 8px;
  }
}
@media (min-width: 768px) and (max-width: 1920px) {
  .logotipo {
    width: 200px;
    height: 60px;
  }
  .navlist {
    padding: 1em 0.5em;
    margin: 0.5em;
  }
}
@media (min-width: 1921px) {
  .logotipo {
    width: 400px;
    height: 120px;
  }
  .navlist {
    padding: 1em 1em;
    margin: 1em;
    font-size: xx-large;
  }
  .navlist-especial {
    font-size: xx-large;
  }
}
/* CIERRE barra de navegación*/

/* INICIA Contenido principal */
.main-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
  position: relative;
}

.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-section {
  text-align: left;
  max-width: 800px;
  padding: 0 20px;
}

.greeting {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.name {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.1;
}

.name-highlight {
  color: #1976d2;
  font-size: 1.2em;
}

.description {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .greeting {
    font-size: 2.8rem;
  }

  .name {
    font-size: 3.2rem;
  }

  .description {
    font-size: 1.1rem;
  }

  .hero-section {
    padding: 0 15px;
  }
}

@media (min-width: 1921px) {
  .greeting {
    font-size: 4rem;
  }

  .name {
    font-size: 5rem;
  }

  .description {
    font-size: 1.5rem;
  }
}
/* CIERRE Contenido principal */

/* INICIA Sección Sobre mi */
.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 0 60px 0;
  background-color: #0d0d0d;
}

.about-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.about-content {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  max-width: 800px;
}

.about-title {
  color: #1976d2;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 40px 0;
  line-height: 1.2;
}

.about-content {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
}

.about-content p {
  margin: 0 0 25px 0;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  color: #1976d2;
  font-weight: 600;
}

@media (max-width: 767px) {
  .about-section {
    padding: 80px 0 40px 0;
  }

  .about-container {
    padding: 0 20px;
  }

  .about-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }

  .about-content {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
  }

  .about-content p {
    margin-bottom: 20px;
  }
}

@media (min-width: 1921px) {
  .about-title {
    font-size: 4rem;
    margin-bottom: 50px;
  }

  .about-content {
    font-size: 1.3rem;
    line-height: 1.9;
  }

  .about-content p {
    margin-bottom: 30px;
  }
}
/* CIERRE Sección Sobre mi */

/* INICIA Sección Habilidades */
.skills-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 60px 0;
  background-color: #0d0d0d;
}

.skills-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.skills-title {
  color: #1976d2;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 60px 0;
  line-height: 1.2;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-icon {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.skill-item:hover .skill-icon {
  filter: brightness(0) invert(0.8);
}

.skill-name {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 767px) {
  .navbar-container {
    padding: 0 20px;
  }

  .main-container {
    padding: 0 20px;
  }

  .about-container {
    padding: 0 20px;
  }

  .skills-section {
    padding: 80px 0 40px 0;
  }

  .skills-container {
    padding: 0 20px;
  }

  .skills-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

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

  .skill-name {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
  }
}

@media (min-width: 1921px) {
  .skills-title {
    font-size: 4rem;
    margin-bottom: 80px;
  }

  .skills-grid {
    gap: 50px;
  }

  .skill-icon {
    width: 80px;
    height: 80px;
  }

  .skill-name {
    font-size: 1.2rem;
  }
}
/* CIERRE Sección Habilidades */

/* INICIA Sección Proyectos */
.projects-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 100px 0 60px 0;
  background-color: #0d0d0d;
}

.projects-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.projects-title {
  color: #1976d2;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 60px 0;
  line-height: 1.2;
  text-align: center;
}

.project-content {
  color: #ffffff;
  text-align: left;
  max-width: 800px;
}

.project-header {
  margin: 0 0 20px 0;
}

.project-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: scale(1.05);
}

.project-logo {
  max-width: 300px;
  height: auto;
  border: 1px solid #ffffff;
  border-radius: 0.6em;
  transition: opacity 0.3s ease;
}

.project-link:hover .project-logo {
  opacity: 0.8;
}

.project-name {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.project-description {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 30px 0;
  line-height: 1.6;
}

.project-subtitle {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.project-list {
  margin: 0 0 30px 0;
  padding-left: 20px;
}

.project-list li {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.project-list li:last-child {
  margin-bottom: 0;
}

.project-list strong {
  font-weight: 600;
  color: #1976d2;
}

.project-conclusion {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 40px 0;
  line-height: 1.6;
  font-style: italic;
}

.github-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.github-title {
  color: #1976d2;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  padding: 15px 25px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.github-link:hover {
  background-color: #ffffff;
  color: #0d0d0d;
  transform: translateY(-2px);
}

.github-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.github-link:hover .github-icon {
  filter: brightness(0) invert(0);
}

.github-text {
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 767px) {
  .projects-section {
    padding: 80px 0 40px 0;
  }

  .projects-container {
    padding: 0 20px;
  }

  .projects-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .project-content {
    max-width: 100%;
  }

  .project-logo {
    max-width: 200px;
  }

  .project-name {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .project-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .project-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .project-list li {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .project-conclusion {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .github-section {
    margin-top: 30px;
    padding-top: 25px;
  }

  .github-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .github-link {
    padding: 12px 20px;
  }

  .github-icon {
    width: 20px;
    height: 20px;
  }

  .github-text {
    font-size: 0.9rem;
  }
}

@media (min-width: 1921px) {
  .projects-title {
    font-size: 4rem;
    margin-bottom: 80px;
  }

  .project-logo {
    max-width: 400px;
  }

  .project-name {
    font-size: 3rem;
    margin-bottom: 25px;
  }

  .project-description {
    font-size: 1.4rem;
    margin-bottom: 40px;
  }

  .project-subtitle {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .project-list li {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .project-conclusion {
    font-size: 1.3rem;
    margin-bottom: 50px;
  }

  .github-section {
    margin-top: 50px;
    padding-top: 40px;
  }

  .github-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .github-link {
    padding: 18px 30px;
  }

  .github-icon {
    width: 28px;
    height: 28px;
  }

  .github-text {
    font-size: 1.1rem;
  }
}
/* CIERRE Sección Proyectos */

/* INICIA Sección Contacto */
.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 60px 0;
  background-color: #0d0d0d;
}

.contact-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-title {
  color: #1976d2;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 40px 0;
  line-height: 1.2;
}

/* Sección Redes Sociales */
.social-section {
  text-align: center;
}

.social-icons-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #ffffff;
  padding: 15px 25px;
  transition: all 0.3s ease;
  min-width: 200px;
  justify-content: center;
}

.social-link:hover {
  color: #c0c0c0;
  transform: translateY(-2px);
}

.social-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-link:hover .social-icon {
  filter: brightness(0) invert(0.8);
}

.social-name {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Sección Email */
.email-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 200px;
}

.email-button-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gmail-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.email-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
}

.email-button:hover {
  background-color: #ffffff;
  color: #0d0d0d;
  transform: translateY(-2px);
}

.email-recaptcha-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.email-display {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
}

.email-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  font-family: "Courier New", monospace;
}

.copy-button {
  padding: 8px 16px;
  background-color: #ffffff;
  color: #0d0d0d;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.copy-button:hover {
  background-color: #e0e0e0;
  transform: translateY(-1px);
}

.copy-text {
  z-index: 1;
}

/* Sección Formulario */
.form-section {
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  padding: 15px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-family: "Open Sans", sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #c0c0c0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  align-items: center;
}

.g-recaptcha {
  transform: scale(0.9);
  transform-origin: center center;
  margin: 0 auto;
}

.btn-recaptcha,
.btn-enviar {
  padding: 12px 25px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  background-color: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
}

.btn-recaptcha:hover,
.btn-enviar:hover {
  background-color: #ffffff;
  color: #0d0d0d;
}

.btn-enviar {
  background-color: #ffffff;
  color: #0d0d0d;
}

.btn-enviar:hover {
  background-color: transparent;
  color: #ffffff;
}

/* NOTIFICACIÓN MINIMALISTA */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background-color: #10b981;
  color: #ffffff;
  border-left: 4px solid #059669;
}

.notification.error {
  background-color: #ef4444;
  color: #ffffff;
  border-left: 4px solid #dc2626;
}

.notification.info {
  background-color: #3b82f6;
  color: #ffffff;
  border-left: 4px solid #2563eb;
}

/* Responsive para pantallas medianas */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }

  .social-link {
    min-width: 180px;
    padding: 12px 20px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .social-name {
    font-size: 1rem;
  }
}

/* Responsive para móviles */
@media (max-width: 767px) {
  .projects-container {
    padding: 0 20px;
  }

  .contact-section {
    padding: calc(80px + env(safe-area-inset-top)) 0
      calc(40px + env(safe-area-inset-bottom)) 0;
  }

  .contact-container {
    padding: 0 max(20px, env(safe-area-inset-left)) 0
      max(20px, env(safe-area-inset-right));
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  /* Cambiar el orden: redes sociales arriba, formulario abajo */
  .social-section {
    order: 1;
  }

  .form-section {
    order: 2;
  }

  .contact-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
  }

  .social-icons-container {
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-link {
    min-width: 120px;
    padding: 10px 15px;
    flex-direction: column;
    gap: 8px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .social-name {
    font-size: 0.9rem;
  }

  .email-section {
    min-width: 120px;
  }

  .email-button-container {
    gap: 8px;
  }

  .gmail-icon {
    width: 35px;
    height: 35px;
  }

  .email-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .email-recaptcha-container {
    padding: 15px;
  }

  .email-display {
    padding: 12px 15px;
    flex-direction: column;
    gap: 10px;
  }

  .email-text {
    font-size: 0.9rem;
  }

  .copy-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .form-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .g-recaptcha {
    transform: scale(0.8);
    transform-origin: center center;
    margin: 0 auto;
  }

  .btn-enviar {
    width: 100%;
    margin-top: 15px;
  }

  /* Notificación en móvil */
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }

  .notification.show {
    transform: translateY(0);
  }
}

/* Responsive para pantallas grandes */
@media (min-width: 1921px) {
  .contact-container {
    max-width: 1400px;
  }

  .contact-title {
    font-size: 3.5rem;
  }

  .social-link {
    min-width: 250px;
    padding: 20px 30px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
  }

  .social-name {
    font-size: 1.2rem;
  }

  .email-button-container {
    gap: 15px;
  }

  .gmail-icon {
    width: 45px;
    height: 45px;
  }

  .email-button {
    padding: 15px 25px;
    font-size: 1.2rem;
    border-radius: 8px;
  }

  .email-recaptcha-container {
    padding: 25px;
  }

  .email-display {
    padding: 20px 25px;
  }

  .email-text {
    font-size: 1.1rem;
  }

  .copy-button {
    padding: 10px 20px;
    font-size: 1rem;
  }
}
/* CIERRE Sección Contacto */

/* Ajuste SOLO para móviles en horizontal (baja altura + ancho móvil) */
@media (max-width: 767px) and (max-height: 420px) {
  .nav-item,
  .nav-item-toggle {
    margin-top: 4px;
    margin-bottom: 4px;
  }
}

/* INICIA Firma de ubicación */
.location-signature {
  position: absolute;
  bottom: 20px;
  right: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
}

.location-signature p {
  color: #ffffff;
  font-weight: 400;
  font-size: medium;
  margin: 0;
  text-align: right;
}

@media (max-width: 767px) {
  .location-signature {
    bottom: 15px;
  }
}
/* CIERRE Firma de ubicación */

/* inicia css footer */
footer {
  width: 100%;
  padding: 10em 0 calc(1em + env(safe-area-inset-bottom)) 0;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.contenedor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lista-footer {
  display: flex;
  flex-direction: column;
  margin: 10px 0px;
}

.footer-link {
  color: #c0c0c0;
  font-weight: 400;
  font-size: medium;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #505050;
}

.derechos {
  color: #c0c0c0;
  font-size: medium;
  font-weight: 400;
  text-align: center;
  margin-top: 0;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-right: 50px;
}
.social-icons img {
  width: 30px;
  height: auto;
  transition: transform 0.3s ease;
}
.social-icons a:hover img {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  footer {
    padding: 10em 0 0.5em 0;
  }

  .footer-container {
    padding: 0 20px;
  }
  .contenedor-footer {
    display: inline;
  }
  .social-icons {
    margin-right: 0px;
    margin-top: 20px;
    gap: 10px;
    justify-content: center;
  }
  .social-icons img {
    margin: 10px;
  }
  .lista-footer {
    margin: 10px 10px;
  }
  .footer-link:hover {
    color: #c0c0c0;
  }
  .derechos {
    margin-top: 15px;
  }
  .derechos a {
    color: #fcc700;
    font-style: italic;
    text-decoration: none;
  }
}
/* cierra css footer */

/* Ajuste para pantallas muy anchas pero poco altas (horizontal) */
@media (max-height: 300px) {
  .hero-section {
    padding: 0 15px;
    min-height: auto;
    max-width: 100%;
  }

  .greeting {
    font-size: 1.6rem;
    margin: 0 0 4px 0;
  }

  .name {
    font-size: 2rem;
    margin: 0 0 8px 0;
  }

  .description {
    font-size: 0.85rem;
    max-width: 100%;
    word-wrap: break-word;
  }

  .main-container {
    padding: 0 15px;
  }
}
