:root {
  --clear-color: #E0E0D4;    
  --pink-color: #F295A0;     
  --dark-color: #272a2a;    
  --green-color: #989c14;   
  --accent-green: #1e560e;      
  --accent-pink: #c43670;     
}

@supports (scroll-snap-type: x mandatory) {
  .slider > a {
    display: none;
  }
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

/* Tipografías personalizadas */
.fraunces-regular {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

.google-sans-code-regular {
  font-family: "Google Sans Code", monospace;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}
/* Navegación */
nav {
  background-color: var(--dark-color);
  display: flex;
  justify-content: right;
  gap: 10px;
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: var(--pink-color);
  font-family: 'Fraunces', serif;
}
nav a {
  color: var(--pink-color);
  text-decoration: none;
  padding: 10px 15px;
  transition: background-color 0.3s ease;
  font-size: 20px;
  font-family: 'Fraunces', serif;
}
nav a:hover {
  color: var(--green-color);
  border-radius: 5px;
  font-size: 21px;
  font-weight: bold;
  text-shadow: 1px 1px 2px var(--accent-green);
  font-family: 'Fraunces', serif;
}
nav a:link {
  color: var(---pink-color);  
  font-family: 'Fraunces', serif;     
  font-weight: bold;
}
/* Header */
header {
  background: radial-gradient(circle, var(--pink-color), var(--clear-color));
  color: var(--green-color);
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 60px;
}
/* Imagen redondeada */
.img-redondeada {
  width: 300px;
  height: 400px;
  background-color: var(--accent-green);
  border-top-left-radius: 150px;
  border-top-right-radius: 150px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 5px;
  text-align: center;
  align-self: center;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
}

/* Texto del header */
.texto-header {
  max-width: 450px;
  text-align: right;
  padding: 40px;
}
.texto-header h1 {
  font-family: 'Fraunces', serif;
  font-size: 55px;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px var(--accent-pink);
}
.texto-header h3 {
  font-family: 'Fraunces', serif;
  font-size: 25px;
  color: black;
  font-weight: normal;
  line-height: 1.4;
  margin: 0;
  text-shadow: 1px 1px 2px #626060;
}
/* Sección Home */
.home-section {
  background-color: var(--clear-color);
  background-image: url('img/animalcrossing.gif'); 
  background-size: auto;      
  background-repeat: no-repeat;    
  background-position: center;  
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Google Sans Code", monospace;
}
.home-section h2 {
  text-shadow: 1px 1px 2px var(--accent-green);
  color: var(--green-color);
  font-size: 80px;
  text-align: center;
}

/* Sección About Me */
.aboutme-section {
  background: radial-gradient(circle, var(--clear-color), var(--accent-green));
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 45px;
}

.aboutme-section h2 {
  font-family: 'Fraunces', serif;
  color: var(--pink-color);
  font-weight: bold;
  font-size: 45px;
  text-shadow: 1px 1px 2px var(--accent-pink);
  text-align: center;
}
.aboutme-section h3 {
  font-family: 'Fraunces', serif;
  color: var(--accent-pink);
  font-weight: bold;
  font-size: 25px;
  text-shadow: 1px 1px 2px var(--pink-color);
  text-align: center;
}

.aboutme-section p {
  font-family: "Google Sans Code", monospace;
  font-size: 18px;
  max-width: 650px;
  text-align: center;
  line-height: 1.6;
}

.download-cv {
    text-align: center;
}

.download-cv button {
    background-color: var(--pink-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding:10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.download-cv button:hover {
    background-color: var(--accent-pink);
}

/* Sección proyectos */
.proyect-section {
  background: url('img/yoshi.gif'),
  linear-gradient(to bottom, var(--pink-color), var(--clear-color));
  background-size: auto;      
  background-repeat: no-repeat;    
  background-position: center;  
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Google Sans Code", monospace;
}
.proyect-section h2 {
  text-shadow: 2px 2px 2px var(--accent-green);
  color: var(--green-color);
  font-size: 80px;
  text-align: center;
}
/* Sección Contact Me */
.contactme-section {
  background-color: var(--green-color);
  max-width: 800px;
  margin: 0 auto;              
  border-radius: 20px;
  text-align: center;
  display: flex;               
  flex-direction: column;      
  align-items: center;         
  justify-content: center;   
  padding: 2rem; 

}
.contactme-section h2 {
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: 'Fraunces', serif;
  color: var(--dark-color);
}


/* Texto general */
.texto-body {
  font-family: "Google Sans Code", monospace;
}
.texto-body h2 {
  color: var(--color-principal);
  font-weight: bold;
}

/* Footer */
.footer-regular {
  background-color: var(--clear-color);
  background-image: url('junimos.webp');
  background-repeat: repeat;
  background-size: 150px;
  padding: 20px;
  font-family: "Google Sans Code", monospace;
}

/* Íconos */
i {
  font-size: 24px;
  margin-right: 8px;
  color: var(--dark-color);
}

/* Enlaces */
a {
  color: var(--pink-color);
  text-decoration: none;
  font-weight: bold;
  font-family: "Google Sans Code", monospace;
}
a:hover {
  color: var(--clear-color);
  transition: 0.3s ease;
}
a:visited {
  color: var(--pink-color);
  text-shadow: 1px 1px 2px var(--dark-color);
}
a:active {
  color: var(--accent-green);
}


/* SLIDER  */
.slider {
  position: relative;
  width: 400px;
  height: 400px;
  overflow: hidden;
  border-radius: 5px;
  margin: 10px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slides img,
.slides video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.author-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  text-align: center;
  padding: 10px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Botones de navegación */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--accent-pink);
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  color: var(---pink-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px); /* efecto vidrio esmerilado */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
  background: var(--clear-color);
  color: white;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.nav-btn.prev { left: 15px; }
.nav-btn.next { right: 15px; }

/* for small screen */
@media (max-width: 768px) {
  .aboutme-section {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 20px;
  }

  .aboutme-section > div:first-child {
    max-width: 100%; 
    padding-right: 0;
  }

  .aboutme-section .slider {
    width: 100%; 
    max-width: 400px;  
    margin: 0 auto;  
  }
}
