:root {
  --color-base: rgba(255, 255, 255, 0.882);
  --color-fondo-suave: rgba(255, 255, 255, 0.882);
  --color-texto-principal: #b84b63;
  --color-texto-secundario: #f17aaa;
  --color-acento: var(--color-texto-secundario);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ------------------------------------- */
/* TIPOGRAFIAS Y ESTILOS BASE */
/* ------------------------------------- */

body {
  font-family: "Montserrat", sans-serif;
  background: #fbd93f;
  background: radial-gradient(
    circle,
    rgba(251, 217, 63, 0.65) 0%,
    rgba(252, 70, 107, 0.5) 100%
  );
  background-attachment: fixed;
  background-size: cover;
  color: var(--color-texto-principal);
  line-height: 1.6;
  scroll-padding-top: var(--header-height);
}

h1,
h2,
h3 {
  font-family: "Cal Sans", sans-serif;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: var(--color-fondo-suave);
  color: var(--color-texto-secundario);
}

/* ------------------------------------- */
/* ESTILOS DEL HEADER - ESCRITORIO (por defecto) */
/* ------------------------------------- */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: var(--color-fondo-suave);
}

.logo {
  width: 250px; /* Tamaño del logo en escritorio */
}

/* Menú de navegación en escritorio */
.nav-menu {
  display: flex; /* Muestra el menú de forma tradicional */
  align-items: center;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  font-family: "Cal Sans";
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--color-acento);
}

/* El botón de hamburguesa está oculto en pantallas grandes */
.hamburger-menu {
  display: none;
}

/* ------------------------------------- */
/* SECCION BIOGRAFIA */
/* ------------------------------------- */

.about-me-section {
  padding: 100px 20px 30px;
  display: flex;
  justify-content: center;
}

.about-me-card {
  background-color: #fff;
  border-radius: 20px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 1000px;
  width: 100%;
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-me-image img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.about-me-text {
  flex: 1;
  min-width: 250px;
}

.about-me-text h2 {
  text-align: right;
  margin-bottom: 30px;
  color: #b84b63;
  font-size: 3rem;
}

.about-me-text p {
  margin-bottom: 15px;
  color: #aa445a;
  text-align: justify;
  text-justify: inter-word;
}

/* ------------------------------------- */
/*SECCION EXPERIENCIA*/
/* ------------------------------------- */
.experiencia {
  padding: 50px 40px;
  text-align: center;
  margin: 0 auto;
}
.experiencia h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: left;
  color: #b84b63;
}
.experiencia-resena {
  text-justify: inter-word;
  font-size: 1.1rem;
  color: var(--color-texto-principal);
  line-height: 2;
  text-align: justify;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 100%;
  padding: 20px;
}

.galeria img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .galeria {
    grid-template-columns: 1fr;
  }
}
/* ------------------------------------- */
/* SECCION PROGRAMAS & APLICACIONES*/
/* ------------------------------------- */
.programas {
  padding: 50px 40px;
  text-align: center;
  margin: 0 auto;
}
.programas h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: right;
  color: #b84b63;
}
.programas-resena {
  text-justify: inter-word;
  font-size: 1.1rem;
  color: var(--color-texto-principal);
  line-height: 2;
  text-align: right;
}
.iconos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 5px;
  justify-items: center;
}
.icono {
  text-align: center;
}

.icono img {
  width: 90px;
  height: auto;
  transition: transform 0.3s ease;
}

.icono img:hover {
  transform: scale(1.1);
}
/* ------------------------------------- */
/* SECCION SERVICIOS */
/* ------------------------------------- */

.servicios {
  padding: 100px 40px;
  text-align: center;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.servicio-card {
  background-color: #d68b7d;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.servicios img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.servicios h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-align: center;
  color: #b84b63;
}
.servicios h3 {
  font-size: 1.5rem;
  color: white;
  margin: 15px 0 10px;
  letter-spacing: 2px;
}

.servicios p {
  font-size: 1rem;
  color: #ffffff;
  padding: 0 20px 20px;
}
/* ------------------------------------- */
/* SECCION CONTACTO */
/* ------------------------------------- */

.tarjeta-contacto {
  display: flex;
  justify-content: center;
  padding: 50px 0;
}

.tarjeta {
  width: 800px;
  height: 300px;
  perspective: 1000px;
}

.tarjeta-frente,
.tarjeta-dorso {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-family: sans-serif;
  transition: transform 0.6s ease;
}

.tarjeta-frente {
  background: #fd1de3;
  background: linear-gradient(
    90deg,
    rgba(253, 29, 227, 0.24) 50%,
    rgba(252, 176, 69, 1) 100%
  );
}

.tarjeta-dorso {
  background: wheat;
  transform: rotateY(180deg);
  gap: 20px;
}

.tarjeta-dorso img {
  width: 80px;
  height: 80px;

  transition: transform 0.3s ease;
}

.tarjeta-dorso img:hover {
  transform: scale(1.2);
}

.tarjeta:hover .tarjeta-frente {
  transform: rotateY(180deg);
}

.tarjeta:hover .tarjeta-dorso {
  transform: rotateY(360deg);
}

/* ------------------------------------- */
/* ESTILOS DEL MENU DE HAMBURGUESA Y MOBILE */
/* ------------------------------------- */
@media (max-width: 768px) {
  /* Header en dispositivos móviles */
  .header {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    min-height: 70px;
    align-items: center;
  }

  .logo {
    width: 200px;
    position: relative;
    z-index: 101;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ba8c29;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.5s ease-in-out;
    z-index: 99;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav-menu a {
    font-size: 1.5rem;
  }

  /* Secciones principales en dispositivos móviles */
  .about-me-card {
    flex-direction: column;
    text-align: center;
  }

  .about-me-text h2 {
    text-align: center;
  }
}

/* ------------------------------------- */
/*ANIMACION DE SCROLL*/
/* ------------------------------------- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@supports (animation-timeline: scroll()) {
  .fade-up {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 40%;
  }
}
@supports not (animation-timeline: scroll()) {
  .fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
