:root {
  --primary-color: #00ffbf;
  --primary-color-transparent: #00ffbf3a;
  --secondary-color: #000000;
  --text-color: #ffffff;
}

/* Temas de colores alternativos */
body.theme-green {
  --primary-color: #00ffbf;
  --primary-color-transparent: #00ffbf3a;
  --secondary-color: #000000;
  --text-color: #ffffff;
}

body.theme-blue {
  --primary-color: #ffffff;
  --primary-color-transparent: #0000003a;
  --secondary-color: #1d1d1d;
  --text-color: #ffffff;
}

body.theme-red {
  --primary-color: #940000;
  --primary-color-transparent: #9400003a;
  --secondary-color: #000000;
  --text-color: #ffffff;
}

body.theme-yellow {
  --primary-color: #a37800;
  --primary-color-transparent: #a378003a;
  --secondary-color: #140b00;
  --text-color: #ffffff;
}

.oxanium-light {
  font-family: "Oxanium", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.oxanium-regular {
  font-family: "Oxanium", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.oxanium-bold {
  font-family: "Oxanium", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.goldman-regular {
  font-family: "Goldman", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.goldman-bold {
  font-family: "Goldman", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Oxanium", sans-serif; /* Aplicar Oxanium a todos los elementos */
}

body {
  font-family: "Oxanium", sans-serif;
  height: 100vh;
  height: 100dvh; /* Viewport dinámico para móviles modernos */
  overflow: hidden;
  background-color: var(--secondary-color);
  /* background-image: url('image/carbono-01.svg');
  background-size: 30px; */
  display: flex;
  flex-direction: column;
  transition: background-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), background-image 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Asegurar que todos los elementos de texto usen Oxanium */
h1, h2, p, span, a, button, input, textarea, label, div {
  font-family: "Oxanium", sans-serif !important;
}

h1, h2, p, span {
  pointer-events: none;
}

/* Contenedor principal */
.container {
  padding: 12px;
  display: flex;
  height: 87vh;
  height: 87dvh; /* Viewport dinámico para móviles modernos */
  width: 100vw;
  width: 100dvw; /* Viewport dinámico para móviles modernos */
  flex: 1;
  gap: 12px;
}

/* Estilos base para las tarjetas */
.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  transition: all 1s ease, background-position 10s ease;
  overflow: hidden;
  flex: 1;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
}

/* Efecto de desplazamiento de imagen al pasar el cursor */
.card:hover {
  background-position: right center;
}

.container .card.active {
  flex: 3;
  filter: brightness(1.2);
  z-index: 10;
  background-position: center center;
}

.container .card:not(.active) {
  flex: 0.3;
}

/* Contenido de las tarjetas */
.card-content {
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.685);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  transition: all 0.5s ease;
  opacity: 0;
  /* transform: translateY(20px); */
}

/* Título de las tarjetas - siempre visible */
.card-title {
  position: absolute;
  bottom: 10px;
  left: 30px;
  transform: translate(0, 0) rotate(-90deg);
  font-size: 2rem;
  font-weight: bold;
  font-family: "Goldman", sans-serif !important; /* Fuente específica para títulos */
  color: var(--text-color);
  z-index: 2;
  text-shadow: 0px 0px 10px rgb(0, 0, 0);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  transform-origin: left center;
  pointer-events: none; /* Evitar que el título interfiera con los clics */
}

/* Título horizontal cuando la tarjeta está activa */
.card.active .card-title {
  opacity: 0.4;
  transform: translate(0, -50%) rotate(0deg) scale(0.8);
}

/* Mostrar contenido al hacer click */
.card.active .card-content {
  opacity: 1;
  transform: translateY(0);
}

/* Ocultar enlaces cuando las tarjetas no están activas */
.card:not(.active) a {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Mostrar enlaces cuando las tarjetas están activas */
.card.active a {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.card-content h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-content p {
  max-width: 450px;
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Imágenes de fondo específicas para cada tarjeta */
.about {
  background-image:
    linear-gradient(0deg, var(--primary-color-transparent) 0%, #0000 50%, #0000 100%),
    url('image/boca.png');
}

.portfolio {
  background-image:
    linear-gradient(0deg, var(--primary-color-transparent) 0%, #0000 50%, #0000 100%),
    url('image/ojo.png');
}

.downloads {
  background-image:
    linear-gradient(0deg, var(--primary-color-transparent) 0%, #0000 50%, #0000 100%),
    url('image/ciudad.png');
}

.contact {
  background-image:
    linear-gradient(0deg, var(--primary-color-transparent) 0%, #0000 50%, #0000 100%),
    url('image/auto.png');
}

/* Efecto de overlay para mejor legibilidad */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.037);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card:hover::before {
  opacity: 0.1;
}

.card-content {
  position: relative;
  z-index: 2;
}

/* Estilos específicos para la tarjeta About */
.about .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-photo img {
  width: auto;
  height: 200px;
  object-fit: cover;
}

.social-buttons {
  display: flex;
  gap: 20px;
  margin-top: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary-color) 15%, transparent);
  border: 1px solid var(--primary-color);
}

.social-btn img {
  width: 35px;
  height: 35px;
}

.social-btn:hover {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--primary-color) 6%, transparent);
  border: 1px solid var(--primary-color);
}

/* Estilos específicos para la tarjeta Portfolio */
.portfolio .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 1rem;
  width: 100%;
  max-width: 600px;
}

.portfolio-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.portfolio-item:hover {
  transform: scale(1.1);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 8px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.portfolio p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Estilos específicos para la tarjeta Downloads */
.downloads .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 1.5rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 1rem;
  width: 100%;
  max-width: 450px;
}

.download-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.download-item:hover {
  transform: scale(1.1);
}

.download-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.download-item:hover img {
  transform: scale(1.2);
}

.download-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.726);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-item:hover .download-overlay {
  opacity: 1;
}

.download-title {
  color: white;
  font-size: 0.8rem;
  font-weight: normal;
  margin-bottom: 10px;
  text-align: center;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--primary-color) 15%, transparent);
  border: 1px solid var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: normal;
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
}

.download-btn i {
  font-size: 0.7rem;
}

.downloads h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.downloads p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Downloads More Button */
.downloads-more {
  margin-top: 1rem;
  text-align: center;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--primary-color) 15%, transparent);
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  padding: 0.7rem 0.5rem 0.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.more-btn:hover {
  transform: translateY(-3px);
}

.more-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.more-btn:hover i {
  transform: translateX(5px);
}

/* Estilos específicos para la tarjeta Contact */
.contact .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.contact-form {
  width: 100%;
  max-width: 350px;
  margin-top: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.237);
  color: white;
  font-size: 0.9rem;
  font-family: "Oxanium", sans-serif;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.349);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.427);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: #000;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;

}

.submit-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  height: 13vh;
  height: 13dvh; /* Viewport dinámico para móviles modernos */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 2rem;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80%;
}

.footer-logo img {
  height: 70%;
  transition: transform 0.3s ease;
}

/* Color Switcher */
.color-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 20%;
}

.color-btn {
  width: 10%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-btn:hover {
  transform: scale(1.05);
}

.color-preview {
  width: 100%;
  height: 50%;
  border-radius: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    flex-direction: row;
    height: 90vh;
    height: 90dvh; /* Viewport dinámico para móviles modernos */
    padding: 6px;
    gap: 6px;
  }

  .container .card:not(.active) {
    flex: 0.3;
    min-width: 40px;
  }

  .container .card.active {
    flex: 3;
  }

  .card-content h1 {
    font-size: 2rem;
  }

  .card-content h2 {
    font-size: 1.8rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }

  .card-content {
    padding: 1.2rem;
  }

  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 280px;
  }

  /* Ajustar efecto de imagen en dispositivos móviles */
  .card {
    background-position: center center;
    border: 1px solid var(--primary-color);
  }

  .card:hover {
    background-position: center center;
  }

  .card.active {
    background-position: center center;
  }

  .card-title {
    bottom: 10px;
    left: 20px;
    font-size: 2rem;
  }

  .footer {
    height: 10vh;
    height: 10dvh; /* Viewport dinámico para móviles modernos */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 1rem;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    height: 75%;
  }

  .footer-logo img {
    height: 100%;
  }

  .color-switcher {
    gap: 8px;
    justify-content: center;
    width: 100%;
    height: 25%;
  }

  .color-btn {
    width: 25%;
    height: 100%;
  }
}

@media (max-height: 560px) {
  .container {
    flex-direction: row;
    height: 80vh;
    height: 80dvh; /* Viewport dinámico para móviles modernos */
    padding: 8px;
    gap: 8px;
  }

  .container .card:not(.active) {
    flex: 0.3;
    filter: brightness(1);
  }

  .container .card.active {
    flex: 2.5;
  }

  .card {
    border: 1px solid var(--primary-color);
  }

  .card-content h1 {
    font-size: 1.3rem;
  }

  .card-content h2 {
    font-size: 1.5rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }

  .card-content {
    padding: 1rem;
  }

  .about .card-content {
    gap: 0.1rem;
  }

  .profile-photo img {
    height: 75px;
  }

  .downloads .card-content {
  gap: 0.1rem;
  padding: 1.5rem;
}

  .downloads-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .download-item img {
    height: 60px;
  }

  .card-title {
    font-size: 1.2rem;
    bottom: 10px;
    left: 15px;
  }

  .social-buttons {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .social-btn {
    width: 50px;
    height: 25px;
  }

  .social-btn img {
    width: 25px;
    height: 25px;
  }

  .footer {
    height: 20vh;
    height: 20dvh; /* Viewport dinámico para móviles modernos */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 1rem;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    height: 75%;
  }

  .footer-logo img {
    height: 100%;
  }

  .color-switcher {
    justify-content: center;
    width: 100%;
    height: 25%;
  }

  .color-btn {
    width: 12.5%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    flex-direction: row;
    height: 90vh;
    height: 90dvh; /* Viewport dinámico para móviles modernos */
    padding: 4px;
    gap: 4px;
  }

  .container .card:not(.active) {
    flex: 0.3;
    min-width: 40px;
  }

  .container .card.active {
    flex: 3.5;
  }

  .card-content h1 {
    font-size: 1.5rem;
  }

  .card-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
  }

  .card-content p {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }

  .card-content {
    padding: 0.8rem;
  }

  .downloads .card-content {
    gap: 0.05rem;
    padding: 0.8rem;
  }

  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 280px;
    gap: 8px;
  }

  .card-title {
    font-size: 1rem;
  }

  .social-buttons {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-btn {
    width: 35px;
    height: 35px;
  }

  .social-btn img {
    width: 25px;
    height: 25px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portfolio-item img {
    height: 100px;
  }

  .profile-photo img {
    height: 150px;
  }

  .footer {
    height: 10vh;
    height: 10dvh; /* Viewport dinámico para móviles modernos */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0.1rem;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    height: 70%;
  }

  .footer-logo img {
    height: 100%;
  }

  .color-switcher {
    gap: 6px;
    justify-content: center;
    width: 100%;
    height: 30%;
  }

  .color-btn {
    width: 25%;
    height: 100%;
  }
}