/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color: #fff;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
a {
  text-decoration: none;
}
#root,
#__next {
  isolation: isolate;
}
:root {
  --duration: 30s;
  --delay: 0s;
  --iteration-count: infinite;
}

/* HEADER */
.navigare {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  background-color: #000;
  flex-wrap: wrap;
  padding: 0 20px;
}

.logotipo {
  display: flex;
  flex-direction: column;
  line-height: 0.7;
}

.logotipo .name {
  margin-top: 0.9375rem;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.logotipo .job {
  margin-inline-start: 6.875rem;
}

.surname {
  color: #ffff00;
}

.nav-item {
  display: flex;
  gap: 1.875rem;
  margin: 15px 30px;
  flex-wrap: wrap;
}

.nav-item a {
  color: #fff;
}

.nav-item a:hover {
  transform: scale(1.2);
  color: #ffff00;
}

/* WRAPPER Y PRESENTACIÓN */
.wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  background-color: #000;
  max-height: 60.625rem;
}

.up {
  position: sticky;
  bottom: 20px;
  right: 20px;
  width: 10px;
  height: auto;
  z-index: 10;
  cursor: pointer;
  border-radius: 20%;
  margin-top: 19px;
}

.me-img {
  max-height: 60.625rem;
}

.presentation {
  margin: 200px 70px;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: bold;
  animation: presentation-left 3s ease-in-out;
  line-height: 7.5rem;
  letter-spacing: 1.25rem;
}

@keyframes presentation-left {
  to {
    transform: translateX(0);
    opacity: 0;
  }
}

/* SECTION: ABOUT ME */
.container {
  width: 100%;
  max-width: 81.25rem;
  margin-inline: auto;
}

.about-me {
  color: #000;
  display: flex;
}

.text-about-me {
  width: 90%;
  max-width: 43.75rem;
  text-align: left;
  margin: auto;
}

.img-me {
  width: 18.75rem;
  margin-inline: auto;
  margin-bottom: 3.75rem;
  margin-top: 20px;
}

.title-about-me {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #000;
  margin: 60px auto;
  text-align: center;
}

/* SECTION: SKILLS */
.skills-wrapper {
  overflow: hidden;
  width: 100%;
  padding-inline: 1.25rem;
}

.skills {
  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  gap: 1.875rem;
  color: #000;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.skill-item p {
  font-size: 12px;
  text-align: center;
  margin: 0;
}
.skill-icon {
  width: 8.125rem;
  height: 3.125rem;
  object-fit: contain;
}

.newsletter-icon {
  width: 8.125rem;
  height: 3.125rem;
  object-fit: contain;
  margin-top: -150px;
}

@keyframes scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* SECTION: PROJECTS */
.my-projects {
  background: #f7f7f7;
  padding: 2rem 1rem;
}

.project {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.project-card {
  position: relative;
  width: 25rem;
  max-width: 100%;
}

.card-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.card-slider img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.info-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid #ffff00;
  background: #f7f7f7;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 13px;
  z-index: 2;
}

.info-btn:hover {
  background-color: #ffff00;
}

.info-panel {
  display: none;
  background: #f7f7f7;
  border: 1px solid #ffff00;
  padding: 1rem;
  margin-top: 4px;
  border-radius: 4px;
}

.info-toggle:checked ~ .card-slider ~ .info-panel,
.info-toggle:checked + .card-slider + .info-panel {
  display: block;
}

.info-toggle {
  display: none;
}

.title-project {
  margin-bottom: 12px;
}

.projects {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.5;
}

/* TESTIMONIALS */
.testimonials {
  background: #fff;
  padding: 4rem 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  background: #f7f7f7;
}

.testimonial-featured {
  grid-column: 1 / -1;
  border-color: #ffff00;
  background: #fff;
}

.testimonial-header {
  margin-bottom: 1rem;
}

.testimonial-name {
  display: block;
  font-weight: bold;
  font-size: 16px;
  color: #080707;
}

.testimonial-role {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.testimonial-rel {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin: 0;
  font-style: italic;
  border-left: 3px solid #ffff00;
  padding-left: 1rem;
}

/* ── CÓMO TRABAJO ── */
.how-i-work {
  background: #080707;
  padding: 4rem 1rem;
}

.how-i-work .title-about-me {
  color: #fff;
}

.how-subtitle {
  color: #aaa;
  font-size: 15px;
  margin-bottom: 2rem;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.how-card {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.how-card:hover {
  border-color: #ffff00;
}

.how-number {
  font-size: 32px;
  font-weight: bold;
  color: #ffff00;
  display: block;
  margin-bottom: 8px;
}

.how-title {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  margin: 0 0 8px;
}

.how-text {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
}

/* ── DESCARGAR CV ── */
.download-cv {
  background: #ffff00;
  padding: 3rem 1rem;
}

.cv-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cv-text h2 {
  font-size: 22px;
  color: #080707;
  margin: 0 0 8px;
}

.cv-text p {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.btn-cv {
  display: inline-block;
  background: #080707;
  color: #ffff00;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-cv:hover {
  opacity: 0.85;
}

/* ── CONTACTO ── */
.contact {
  background: #f7f7f7;
  padding: 4rem 1rem;
}

.contact-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 15px;
  color: #080707;
  text-decoration: none;
}

.contact-value:hover {
  color: #333;
  text-decoration: underline;
}

.contact-available {
  color: #22c55e;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group label {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffff00;
}

.btn-submit-form {
  background: #080707;
  color: #ffff00;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.btn-submit-form:hover {
  opacity: 0.85;
}

/* FOOTER */
footer {
  background-color: #000;
}

.contact-icon,
.gmail {
  width: 1.5625rem;
  height: 1.5625rem;
}

.icons-rrss {
  display: flex;
  justify-content: center;
  gap: 1.875rem;
  margin: 1.25rem;
}

.derechos {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  text-align: center;
}

.rrss {
  display: flex;
  justify-content: space-between;
}

.card-slider {
  width: 100%;
  max-width: 25rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

.slider-container {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
}
.slider-container img {
  flex: 0 0 100%;
  scroll-snap-align: center;
  object-fit: cover;
}
.slider-item {
  width: 100px;
}
.slider-item-other {
  width: 100px;
  height: 250px;
}
.slider-item-first {
  width: 400px;
  height: 430px;
}

.img_newsletter {
  width: 700px;
  position: absolute;
  margin-top: -45px;
  margin-inline-start: 25px;
}

.p_newsletter {
  width: 500px;
  margin-inline-start: 30px;
}

.project-card {
  position: relative;
}

.info-toggle {
  display: none;
}

.info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #ffff00;
}

.info-btn:hover {
  cursor: pointer;
  background-color: #ffff00;
}

.info-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: 0.28s ease;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ffff00;
  color: #000;
  width: 100%;
  box-sizing: border-box;
  max-height: 200px;
  overflow-y: auto;
}

.info-toggle:checked ~ .info-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.info-panel-slider {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: 0.28s ease;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ffff00;
  color: #000;
  width: 400px;
  max-width: 100%;
  margin: 10px auto;
  box-sizing: border-box;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 50px;
}

.info-toggle:checked ~ .info-panel-slider {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.blog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 400px;
}
.blog_title {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 40px;
  min-height: 566.5px;
  margin-top: 50px;
}

.title_newsletter {
  margin-top: 40px;
  margin-inline-start: 30px;
}

.btn-blog {
  top: 10px;
  right: 10px;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #ffff00;
}

.btn-blog:hover {
  cursor: pointer;
  background-color: #ffff00;
}

.info {
  display: none;
}

.info-toggle:checked ~ .info {
  display: block;
}

.btn-volver {
  position: relative;
  display: inline-block;
}

.btn-volver::after {
  content: "Volver";
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  background: #ffff00;
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out;
}

.btn-volver:hover::after {
  opacity: 1;
}

.charter {
  width: 1300px;
  border: 1px solid #f0e9e9;
}

.text-service {
  padding: 20px;
}

.servicio {
  display: flex;
  gap: 50px;
  margin-inline-start: 100px;
}
.title-service {
  color: #aeaead;
  font-size: 2.8em;
  line-height: 1.1;
}

.blog-service {
  max-width: 1715px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 704.2px;
}

.services-intro {
  margin-bottom: 50px;
}

.servicios-list {
  margin-bottom: 50px;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  margin-right: 10px;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}


/* OVERLAY sobre la imagen */
.card-slider {
  position: relative;
  display: block;
  cursor: pointer;
}

.card-info-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  color: #000;
  padding: 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #000;
  box-sizing: border-box;
}

.info-toggle:checked + .card-slider .card-info-overlay {
  opacity: 1;
  pointer-events: auto;
}

.card-info-overlay .projects {
  color: #000;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.card-info-overlay strong {
  color: #000;
}

.overlay-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 10px;
  color: #000;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-top: 1px solid #333;
}

.overlay-link:hover {
  text-decoration: underline;
}

.presentation-general{
line-height: 100px; 
margin-top: 80px;
}
/* MEDIA QUERIES */

/* MÓVILES */
@media (max-width: 480px) {
  .nav-item {
    gap: 0.625rem;
    margin: 0.625rem;
  }

  .presentation {
    margin: 1.875rem;
    font-size: 2.1875rem;
    line-height: 3.125rem;
    letter-spacing: 0;
  }

  .img-me {
    margin: 0 auto 3.75rem;
  }

  .me{
    margin-top: 600px;
  } 
  .text-about-me {
    width: 90%;
    margin: auto;
  }

  .wrapper {
    display: flex;
    flex-direction: column;
  }

  .skills-wrapper {
    margin-inline: 0;
  }

  .about-me{
    flex-direction: column-reverse;
  }
  .card {
    width: 90%;
    margin: 0 auto 3.125rem;
  }

  .text-service {
    padding: 0px;
  }

  .servicio{
    padding: 5px;
  }

  .card img {
    width: 100%;
    transition: transform 0.3s ease;
  }

  .card:hover img,
  .card:focus-within img {
    transform: scale(1.5);
  }

  .card:hover .comment,
  .card:focus-within .comment {
    opacity: 1;
    visibility: visible;
  }

  .icons-rrss {
    gap: 0.625rem;
  }

  .gmail {
    height: 1.5625rem;
  }

  .derechos {
    font-size: 0.625rem;
  }

  .rrss {
    justify-content: space-evenly;
  }

  .me-img {
    margin-top: 3.4375rem;
  }

  .logotipo .job {
    margin-inline-start: 2.8125rem;
  }
  .charter {
    width: 300px !important;
    height: 550px !important;
  }
  .p_newsletter {
    width: 250px !important;
  }
  .img_newsletter {
    position: relative;
    margin-top: -30px;
    margin-inline-start: 20px;
    width: 150px !important;
  }
  .title_newsletter {
    margin-inline-start: 30px;
    margin-top: 80px !important;
  }
  .title_blog {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .btn-volver {
    width: 40px;
  }
  .card-slider {
    width: 330px;
  }
  .info-panel {
    width: 350px;
  }
  .rrss {
    width: 350px;
    display: flex;
    flex-direction: column;
  }
  .servicio {
    display: flex;
    gap: 50px;
    margin-inline-start: 0px;
  }
  .how-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}


@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .nav-item {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: #000;
    margin: 0;
    padding: 10px 0;
    order: 3;
  }

  .nav-item a {
    padding: 12px 20px;
    border-top: 1px solid #222;
    display: block;
    width: 100%;
  }

  .menu-toggle:checked ~ .nav-item {
    display: flex;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navigare {
    flex-wrap: wrap;
    align-items: center;
    position: relative;
  }

  .logotipo {
    order: 1;
    flex: 1;
  }

  .hamburger {
    order: 2;
  }
}
/* TABLETS Y MEDIANAS */
@media (min-width: 481px) and (max-width: 1024px) {
  .presentation {
    margin: 1.25rem 2.5rem;
    line-height: 3.125rem;
    letter-spacing: 0;
    font-size: 3.125rem;
  }
.about-me{
  min-width: 800px;
}
.how-grid{
  grid-template-columns: 1fr 1fr;
}
.presentation-general{
  line-height: 60px;
  margin-top: 80px;
  font-size: 44px;
}
  .wrapper {
    display: flex;
    flex-direction: column;
    max-height: 1500px;
  }
  

  /* .img-me {
    margin-inline-start: 33%;
  } */

  .project {
    margin-inline: auto;
  }

  .rrss {
    justify-content: space-around;
  }

  .nav-item {
    gap: 1.25rem;
  }

  .logotipo .job {
    margin-inline-start: 6.875rem;
  }

  .title_blog {
    display: flex;
    flex-direction: column;
  }
  .charter {
    width: 425px;
    height: 400px;
  }
  .img_newsletter {
    position: relative;
  }
  .p_newsletter {
    width: 390px;
  }
  .servicio {
    display: flex;
    gap: 50px;
    margin-inline-start: 0px;
  }
}

/* DESKTOPS GRANDES */
@media (min-width: 1025px) {
  .presentation {
    font-size: 2.50rem;
    letter-spacing: 0px;
    margin: 100px 70px;
    line-height: none;
  }
.presentation-general{
  margin-top: 40px;
}
  .card {
    max-width: 25rem;
  }

  .img_newsletter {
    position: relative;
  }
  .charter {
    width: 960px;
    height: 380px;
  }
  .title_newsletter {
    width: 400px;
  }
  .p_newsletter {
    width: 400px;
  }
  .servicio {
    display: flex;
    gap: 50px;
    margin-inline-start: 50px;
  }
  .wrapper{
    grid-template-columns: 1fr 1fr;
  }
}
