
:root {
  --primary: #d8624a;
  --secondary: #D72638;
  --light: #FAF3E0;
  --dark: #000;
  --character-box: #E07A5F;
}

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

body {
  font-family: 'Cinzel', serif;
  color: var(--dark);
  overflow-x: hidden;
}


.background-wrapper {
  background-image: url(/IMG/Fondo1.png);
  background-size: cover;
  background-position: center;
  min-height: 74vh;
  padding: 2rem 0;
  position: relative;
}


header {
  background-color: var(--primary);
  width: 90%;
  margin: 0 auto;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding: 1.5rem 2rem;
  position: relative;
}

.navbar li a {
  text-decoration: none;
  color: var(--light);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 0.8rem 1.5rem;
  border-radius: 5rem;
}

.navbar li a:hover {
  color: var(--secondary);
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.logo {
  width: 120px;
  height: 120px;
  background-image: url(/IMG/Logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 3rem;
  position: relative;
  z-index: 20;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(-10px);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.logo:hover {
  transform: translateY(-20px) scale(1.1);
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.4));
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 10%;
  width: 80%;
  height: 30px;
  background: radial-gradient(ellipse at center, 
            rgba(0,0,0,0.4) 0%, 
            rgba(0,0,0,0) 80%);
  filter: blur(8px);
  z-index: -1;
  opacity: 0.6;
  transition: all 0.4s ease;
}


.profile-section {
  display: flex;
  justify-content: space-between;
  padding: 4rem;
  max-width: 1400px;
  margin: 3rem auto;
  position: relative;
}

.description-box {
  background-color: var(--light);
  border-radius: 15px;
  padding: 2.5rem;
  width: 35%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-right: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.description-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.description-text {
  font-size: 1.3rem;
  line-height: 2;
  letter-spacing: 0.5px;
}


.body-photo {
  height: 650px;
  width: auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}

.body-photo:hover {
  transform: translateX(-50%) scale(1.02);
}


.quotes-container {
  width: 35%;
  position: relative;
  background: transparent;
  margin-left: 2rem;
  min-height: 500px;
}

.quotes-container::before {
  content: "Discover";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: var(--secondary);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  opacity: 0.9;
  transition: all 0.4s ease;
  z-index: 5;
  box-shadow: 0 0 0 8px rgba(215, 38, 56, 0.3);
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 8px rgba(215, 38, 56, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(215, 38, 56, 0.1); }
  100% { box-shadow: 0 0 0 8px rgba(215, 38, 56, 0.3); }
}

.quotes-container::after {
  content: "My favorite anime quotes";
  position: absolute;
  top: calc(50% + 70px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary);
  font-size: 1.2rem;
  white-space: nowrap;
  font-weight: bold;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.quotes-container:hover::before,
.quotes-container:hover::after {
  opacity: 0;
}

.quotes-container:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}

.quote-box {
  opacity: 0;
  transform: translateY(20px) rotateX(45deg);
  filter: blur(2px);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  background: linear-gradient(135deg, rgba(250, 243, 224, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
  border-radius: 15px;
  padding: 2rem;
  width: 100%;
  position: absolute;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quotes-container:hover .quote-box {
  opacity: 1;
  transform: translateY(0) rotateY(5deg);
  filter: blur(0);
}

.quotes-container:hover .quote-box:nth-child(1) {
  transition-delay: 0.1s;
  top: 0;
  left: 0;
}
.quotes-container:hover .quote-box:nth-child(2) {
  transition-delay: 0.3s;
  top: 180px;
  left: 60px;
}
.quotes-container:hover .quote-box:nth-child(3) {
  transition-delay: 0.5s;
  top: 360px;
  left: 120px;
}

.anime-quote {
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.anime-source {
  color: var(--secondary);
  text-align: right;
  font-size: 1.1rem;
}


.portfolio-article {
  background-image: url('/IMG/Fondo2.png');
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem;
  min-height: 100vh;
}

.portfolio-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.portfolio-title {
  color: var(--secondary);
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.portfolio-title:hover {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}


.work-container {
  max-width: 1200px;
  margin: 3rem auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.work-container:nth-child(1) { animation-delay: 0.2s; }
.work-container:nth-child(2) { animation-delay: 0.4s; }
.work-container:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-container.reverse {
  flex-direction: row-reverse;
}

.work-image {
  flex: 1;
  height: 400px;
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  background-color: var(--light);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.work-container:not(.large) .work-image:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.work-text {
  flex: 1;
  background-color: var(--character-box);
  color: rgb(0, 0, 0);
  padding: 2rem;
  border-radius: 15px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.work-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: 0.5s;
}

.work-text:hover::before {
  left: 100%;
}

.work-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.work-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.work-description {
  font-size: 1.1rem;
  line-height: 1.6;
}


.work-container.large .work-image,
.work-container.large .work-text {
  height: 500px;
}

.work-container.large .work-image {
  background-size: cover;
  background-position: center center;
}

.work-container.large .work-image:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.site-footer {
  background-color: #E07A5F;
  padding: 1.5rem 2rem;
  width: 100%;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #FAF3E0;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateX(5px);
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.social-username {
  font-size: 1rem;
  font-weight: 500;
}

.copyright p {
  color: #FAF3E0;
  font-size: 0.9rem;
  margin: 0;
}













/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  header {
    width: 95%;
    padding: 0.5rem 1rem;
  }
  
  .navbar {
    display: grid;
    grid-template-columns: auto 1fr;
    justify-items: end;
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .logo {
    grid-column: 1;
    width: 80px;
    height: 80px;
    margin: 0;
    justify-self: start;
  }
  
  .navbar li:not(.logo) {
    grid-column: 2;
    display: inline-block;
    margin-left: 2rem;
  }

  .profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-areas: 
      "foto descripcion"
      "foto citas";
    gap: 1.5rem;
    padding: 2rem;
  }

  .body-photo {
    grid-area: foto;
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    max-height: 70vh;
  }

  .description-box {
    grid-area: descripcion;
    width: 100%;
    margin: 0;
    padding: 1.5rem;
  }

  .quotes-container {
    grid-area: citas;
    width: 80%;
    margin-left: auto;
    padding-top: 1rem;
  }

  .quotes-container::before,
  .quotes-container::after {
    display: none;
  }

  .quote-box {
    opacity: 1;
    transform: none;
    filter: none;
    position: relative;
    width: 100%;
    margin: 0;
    display: block;
  }

  .quote-box:not(:first-child) {
    display: none;
  }


  .work-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .work-container.reverse {
    flex-direction: column;
  }
  
  .work-image,
  .work-text {
    width: 100%;
    height: auto !important;
    min-height: 300px;
  }
}

/* Móvil (hasta 768px) */
@media (max-width: 768px) {
  header {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0;
  }
  
  .navbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 1rem !important;
    gap: 0.5rem !important;
  }
  
  .logo {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 1rem !important;
    order: -1 !important;
  }
  
  .navbar li:not(.logo) {
    width: 100% !important;
    margin: 0.25rem 0 !important;
    display: block !important;
    text-align: center !important;
  }
  
  .navbar li a {
    font-size: 1.2rem !important;
    padding: 0.8rem !important;
    border-radius: 0 !important;
    display: block !important;
  }

  .profile-section {
    display: flex !important;
    flex-direction: column !important;
    padding: 1rem !important;
    margin: 1rem auto !important;
    width: 95% !important;
  }
  
  .body-photo,
  .quotes-container {
    display: none !important;
  }
  
  .description-box {
    width: 100% !important;
    margin: 0 !important;
    padding: 1.5rem !important;
  }

  .description-text {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    text-align: center !important;
  }

 
  .portfolio-article {
    padding: 3rem 1rem !important;
    min-height: auto !important;
  }
  
  .portfolio-title {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .work-container {
    margin: 1.5rem auto !important;
  }
  
  .work-text {
    padding: 1.5rem !important;
  }
  
  .work-title {
    font-size: 1.8rem !important;
  }
  
  .work-description {
    font-size: 1rem !important;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start; 
  }
  
  .social-links {
    flex-direction: row; 
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .social-link {
    gap: 0; 
  }
  
  .social-username {
    display: none; 
  }
  
  .copyright {
    width: 100%;
    text-align: center; 
    margin-top: 0.5rem;
  }
  
  .social-icon {
    width: 28px; 
    height: 28px;
  }
}