@font-face {
  font-family: "Matcha";
  src: url("/fonts/matcha.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dream Fever";
  src: url("/fonts/dream.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background-color: var(--bg-strong-pink);
  min-height: 100vh;
  font-family: var(--font-family);
}

html {
  scroll-behavior: smooth;
}

:root {
  --font-family: "Matcha", sans-serif;
  --font-family2: "Dream Fever", sans-serif;

  --bg-light-pink: #f3dbe2;
  --bg-pink: #ffd5e2;
  --bg-strong-pink: #e68095;
  --bg-ultra-pink: #c74e5b;
  --nosense: #0a525a;
  --white: #ffffff;
}

.navBar {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  padding: 20px 20px;
  background-color: var(--bg-light-pink);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background-color: var(--bg-strong-pink);
}

.menu-links {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-pink);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  flex-direction: column;
  display: flex;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease;
}

.menu-links a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--nosense);
  border-bottom: 1px solid var(--bg-strong-pink);
}

.menu-links a:last-child {
  border-bottom: none;
}

.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  transition: transform 0.3s ease-in-out;
}

.hamburger-menu:focus {
  outline: none;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--bg-light-pink);
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.menu-links.is-open {
  display: flex;
  max-height: 450px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.hamburger-menu.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-strong-pink);
  padding-top: 70px;
}

.logo {
  width: 100%;
  max-width: 600px;
  height: auto;

  display: block;
  margin: 20px auto;
}

.slogan {
  width: 70%;
  max-width: 300px;
  height: auto;
  align-self: center;
  margin: 0 0 3em 0;
  display: block;
}

.portfolio {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-light-pink);
}

section h2 {
  text-align: center;
}

.portfolio {
  padding: 20px;
  text-align: center;
}

.portfolio h2 {
  margin-bottom: 2em;
  color: var(--bg-ultra-pink);
}

.portfolio > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 0 10px;
}

.services {
  background-color: var(--bg-light-pink);
  padding: 40px 20px;
  text-align: center;
}

.services h2 {
  margin-bottom: 2em;
  color: var(--bg-ultra-pink);
}

.services > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 0 10px;
}

.services > div img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 3px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.aboutMe {
  padding: 40px 20px;
  text-align: center;
  background-color: var(--bg-pink);
}

.aboutMe h2 {
  margin-bottom: 1.5em;
  color: var(--bg-ultra-pink);
}

.aboutMe img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 30px auto;
  display: block;
  border: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: var(--bg-light-pink);
}

.aboutMe p {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: var(--nosense);
  line-height: 1.8;
}

.form {
  background-color: var(--bg-pink);
  padding: 20px 20px;
  text-align: center;
}

.form h2 {
  color: var(--bg-ultra-pink);
  margin-bottom: 0.5em;
}

.form p {
  color: var(--nosense);
  margin-bottom: 2em;
  font-size: 1.1em;
}

.formulario-contacto {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.campo-contenedor {
  width: 100%;
}

.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto textarea {
  width: 100%;
  padding: 15px;
  background-color: var(--bg-strong-pink);
  border: none;
  border-radius: 15px;
  color: var(--nosense);
  font-size: 1em;
  font-family: inherit;
  opacity: 0.8;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  box-shadow: 0 0 5px var(--bg-strong-pink);
}

.formulario-contacto textarea {
  resize: vertical;
}

.boton-enviar {
  background-color: var(--bg-ultra-pink);
  color: var(--white);
  padding: 15px 30px;
  margin-top: 15px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  font-family: var(--font-family);
}

.service-item {
  position: relative;
  width: 280px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.service-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
  border: none;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
  z-index: 1;
}

.service-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-blanco);
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 2;
  color: var(--white);
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 0 10px;
}

.mainContent,
.footer {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.button-primary {
  display: none;
  padding: 15px 30px;
  margin-top: 40px;
  background-color: var(--bg-ultra-pink);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

section[id] {
  scroll-margin-top: 80px;
}

.general {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-light-pink);
}

h3 {
  text-align: center;
  color: var(--bg-ultra-pink);
  font-size: 1.5em;
}

.general p {
  text-align: center;
  color: var(--nosense);
  margin: 0 1em 2em 1em;
}

.general section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 20px 10px;
}

.general section img {
  max-width: 100%;
  height: auto;
  display: block;

  width: 280px;
  height: 280px;
  object-fit: cover;

  border: 3px solid var(--color-claro-secundario);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.first {
  max-width: 100%;
  height: auto;
  display: block;

  width: 280px;
  height: 280px;
  object-fit: cover;

  border: 3px solid var(--color-claro-secundario);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 1em;
}

span {
  font-weight: bold;
  font-style: italic;
}

.portfolio-item {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  display: block;
  text-decoration: none;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: inherit;
  transition: background-color 0.3s ease;
  z-index: 1;
}

.portfolio-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  z-index: 2;
  padding: 0 10px;
  font-family: var(--font-family);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: inherit;
}

.logo-nav {
  width: 40px;
  height: 40px;

  display: block;
}

.navBar {
  justify-content: space-between;
}

.head {
  padding-top: 60px;
}

.menu-links a i {
  font-size: 1.2em;
  margin: 0;
}

.carousel-container {
    display: none;
}


@media (min-width: 600px) {
  .hamburger-menu {
    display: none;
  }

  .menu-links {
    position: static;
    max-height: none;
    opacity: 1;
    overflow: visible;

    display: flex;
    flex-direction: row;
    justify-content: center;

    box-shadow: none;

    background-color: transparent;

    pointer-events: all;

    margin-left: 20px;
  }

  .menu-links a {
    padding: 0 15px;
    border-bottom: none;
    color: var(--bg-light-pink);
    font-weight: bold;
  }

  .navBar {
    justify-content: space-between;
  }

  .portfolio > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
  }

  .services > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;

    justify-content: center;
  }

  .services > div img:nth-child(1),
  .services > div img:nth-child(2) {
    width: 100%;
    height: 250px;
  }

  .services > div img:nth-child(3) {
    grid-column: 1 / span 2;
    justify-self: center;
    width: 80%;
    max-width: 300px;
    height: 300px;
  }

  .aboutMe img {
    width: 240px;
    height: 240px;
  }

  .portfolio-header {
    height: auto;
  }

  .general h3 {
    font-size: 1.7em;
    margin-bottom: 0.5em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .general p {
    font-size: 1.1em;
    line-height: 1.8;
    align-self: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;

    margin-bottom: 50px;
  }

  .general section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;

    max-width: 100%;
    margin: 0 2em 2em 2em;
    padding: 0;
    align-self: center;
  }

  .general section img {
    width: 100%;
    height: 350px;
    object-fit: cover;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .navBar {
    justify-content: flex-start;
    gap: 30px;
    padding: 15px 40px;
  }

  .logo-nav {
    width: 40px;
    height: 40px;
  }

  .menu-links {
    margin-left: 0;
  }

  .head {
    padding-top: 75px;
  }
}

@media (min-width: 1024px) {
  .portfolio > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .services > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
  }

  .aboutMe img {
    width: 300px;
    height: 300px;
  }

  .navBar {
    max-width: 100%;
    margin: 0 auto;
  }

  .menu-links a {
    font-size: 1.25em;
    padding: 0 20px;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .menu-links a:hover {
    color: var(--bg-ultra-pink);

    transform: translateY(-2px);
  }

  .head {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    max-width: none;
    margin: 0;
    padding-top: 70px;
  }

  .logo {
    max-width: 700px;
    width: 75%;
    margin-bottom: 20px;
  }

  .slogan {
    max-width: 400px;
    width: 70%;
    margin-bottom: 40px;
  }

  .button-primary {
    display: inline-block;
    font-size: 1.4em;
    padding: 20px 50px;
    margin-top: 0;
    width: 350px;
    align-self: center;
    margin-bottom: 50px;
  }

  .button-primary:hover {
    background-color: #b0404e;
    transform: translateY(-2px);
  }

  .aboutMe p {
    font-size: 1.2em;
    line-height: 1.8;
  }

  .portfolio > div img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    border: 3px solid var(--color-claro-secundario);
  }

  .portfolio > div img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }

  .formulario-contacto input[type="text"],
  .formulario-contacto input[type="email"],
  .formulario-contacto textarea {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .formulario-contacto input[type="text"]:hover,
  .formulario-contacto input[type="email"]:hover,
  .formulario-contacto textarea:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);

    border: 1px solid var(--bg-strong-pink);
  }

  .boton-enviar:hover {
    background-color: #b0404e;
    transform: translateY(-2px);
  }

  .portfolio-header {
    height: auto;
  }

  .general h3 {
    font-size: 2em;
    margin-bottom: 1em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .general p {
    font-size: 1.25em;
    line-height: 1.8;
    align-self: center;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;

    margin-bottom: 50px;
  }

  .general section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;

    max-width: 1200px;
    margin: 0 2em 2em 2em;
    padding: 0;
    align-self: center;
  }

  .general section img {
    width: 100%;
    height: 350px;
    object-fit: cover;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  h2 {
    font-size: 2em;
  }

  .portfolio-item:hover::before {
    background-color: rgba(0, 0, 0, 0.6);
  }

  .portfolio-item:hover img {
    transform: scale(1.03);
  }
  .navBar {
    padding: 20px 80px;
  }

  .logo-nav {
    width: 45px;
    height: 45px;
  }

  .head {
    padding-top: 90px;
  }

  .service-item:hover::before {
    background-color: rgba(0, 0, 0, 0.6);
  }

  .aboutMe {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    background-color: #ffffff;
  }

  .aboutMe img {
    width: 40%;
    height: 600px;
    border-radius: 0;
    object-fit: cover;
    margin: 0;
    box-shadow: none;
    border: none;
    background-color: #faebeb;
    margin-right: 50px;
  }

  .aboutMe h2 {
    text-align: center;
    margin-bottom: 1em;
    font-size: 2.5em;
  }

  .aboutMe p {
    max-width: 100%;
    margin: 1em;
    text-align: center;
    font-size: 1.25em;
  }

  .aboutMe-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    flex: 1;
  }

  .hide-on-desktop {
        display: none !important;
    }

    /* 2. Mostrar el carrusel nuevo */
    .carousel-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        max-width: 900px; 
        height: 450px;    
        margin: 20px auto 40px auto;
        overflow: hidden; 
    }

    .carousel-track-container {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .carousel-track {
        padding: 0;
        margin: 0;
        list-style: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.5s ease-in-out;
        width: 100%; 
    }

    .carousel-slide {
        position: absolute;
        transition: all 0.5s ease-in-out;
        opacity: 0.5;
        transform: scale(0.7); 
        width: 300px;       
        height: 400px;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    /* Imagen en foco (Centro) */
    .carousel-slide.active {
        opacity: 1;
        transform: scale(1.1) translateX(0); 
        z-index: 10; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    }

    /* Botones */
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: var(--bg-strong-pink);
        color: var(--white);
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 20;
        font-size: 1.2rem;
        transition: background 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-btn:hover {
        background: var(--bg-ultra-pink);
    }

    .carousel-btn.prev { left: 20px; }
    .carousel-btn.next { right: 20px; }
  
}
