@font-face {
  font-family: 'gordo';
  src: url('../src/assets/fonts/DK LONGREACH.OTF') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'dimbo';
  src: url('../src/assets/fonts/DIMBO REGULAR.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Modelo de caja global */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevenir overflow horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Imágenes responsivas globales */
img {
  max-width: 100%;
  height: auto;
}

body {
  background: #EDEDED;
  background-image: url(../src/assets/images/background.png);
  background-repeat: repeat;
  background-position: top;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "gordo", "dimbo", Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

footer {
  margin-top: auto;
}

/* TÍTULO PRINCIPAL */
h1 {
  font-size: clamp(1.5rem, 5vw, 50px);
  color: #fff;
  font-family: "gordo", "dimbo", Arial, sans-serif;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #de0a17;
  width: 90%;
  max-width: 800px;
  margin: 5% auto 2% auto;
  padding: 1rem 1.5rem;
  border: 8px solid white;
  border-radius: 30px;
  box-shadow: 2px 2px 16px 4px rgba(114, 56, 33, 0.2);
}

ol {
  padding-left: 0;
  margin-left: 1rem;
}
/* CONTENEDOR PRINCIPAL DE TORTAS */
.Torta {
  display: block;
  width: clamp(320px, 96%, 850px);
  margin: 1rem auto;
  padding: 0.5rem 1.5rem;
  background: #fff;
  background-image: url(../src/assets/images/background.png);
  background-size: cover;
  background-attachment: fixed;
  border: 10px solid transparent;
  border-radius: 20px;
  box-shadow: 2px 2px 10px 3px rgba(114, 56, 33, 0.1);
}

.wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.button.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* IMÁGENES DE SABORES */
.Arequipe,
.Mora,
.Chocolate,
.Red_Velvet,
.Milo,
.Vainilla,
.Oreo,
.Maracuya,
.Fría_Chocolate,
.Choco_Arequipe,
.Fresa_Melocoton {
  display: block;
  margin: 2% auto 5% auto;
  width: 50%;
  max-width: 500px;
  height: auto;
  border-radius: 10%;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.Arequipe:hover,
.Mora:hover,
.Chocolate:hover,
.Red_Velvet:hover,
.Milo:hover,
.Vainilla:hover,
.Oreo:hover,
.Maracuya:hover,
.Fría_Chocolate:hover,
.Choco_Arequipe:hover,
.Fresa_Melocoton:hover {
  transform: scale(1.1);
}

/* BORDES PERSONALIZADOS */
.Arequipe        { border: 5px solid #bde0e3; }
.Mora            { border: 5px solid #f29496; }
.Chocolate       { border: 5px solid #fbc55a; }
.Red_Velvet      { border: 5px solid #ed6f29; }
.Milo            { border: 5px solid #923b8e; }
.Vainilla        { border: 5px solid #e83a79; }
.Oreo            { border: 5px solid #0faea2; }
.Maracuya        { border: 5px solid #0d8fcd; }
.Fría_Chocolate  { border: 5px solid #723821; }
.Choco_Arequipe  { border: 5px solid #fbc55a; }
.Fresa_Melocoton { border: 5px solid #f29496; }

/* BOTÓN RESPONSIVO */
.btn {
  background-color: #de0a17;
  color: white;
  border: none;
  padding: 5px 30px;
  border-radius: 20px;
  font-family: "gordo", "dimbo", Arial, sans-serif;
  letter-spacing: 1px;
  font-size: clamp(1rem, 5vw, 60px);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.btn:hover {
  transform: scale(1.05);
  
}

.button.container {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* LOGO */
.logo img {
  width: clamp(100px, 12vw, 150px);
  height: auto;
  display: block;
  margin: 10px auto;
}

/* DETALLES PLEGABLES */
details {
  width: 100%;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  max-height: 3.5em;
}

details[open] {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}

/* ESTILO DEL SUMMARY */
summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  margin-top: -11px;
  width: 100%;
  padding: 0.75rem 3.5rem 0.75rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  color: #723821;
  background: #fff;
  border-radius: 20px;
  font-size: clamp(1.2rem, 3vw, 1.875rem);
  overflow: visible;
  box-sizing: border-box;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
}

/* Quitar el triángulo nativo */
summary::-webkit-details-marker {
  display: none;
}

/* TRIÁNGULO DECORATIVO PERSONALIZADO */
summary::after {
  content: "";
  width: 30px;
  height: 30px;
  background: #f29496;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  transition: transform 0.3s ease-in-out;
  border-radius: 50%;
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  border-left: 5px solid #fbc55a;
  pointer-events: none;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}

/* ENLACES */
a {
  text-decoration: none;
}

/* SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-track {
  background: #EDEDED;
}
::-webkit-scrollbar-thumb {
  background-color: red;
  border-radius: 10px;
  border: 2px solid #ffffff;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #6a3623;
}

/* MEDIA QUERIES */

/* MOVILES MUY PEQUEÑOS */
@media (max-width: 300px) {
  body {
    padding-top: 100px;
    align-items: center;
  }

  .Torta {
    background-attachment: scroll;
    width: 95%;
    margin: 1rem auto;
    padding: 0.3rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  h1 {
    width: 95%;
    margin: 2% auto;
    font-size: clamp(1rem, 5vw, 1.4rem);
    padding: 0.6rem 0.8rem;
    word-wrap: break-word;
    text-align: center;
  }

  details {
    width: 100%;
    max-height: 4.5rem;
  }

  summary {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    padding: 0.8rem 2.5rem 0.8rem 0.5rem;
    line-height: 1.4;
    min-height: 3.5rem;
    text-align: left;
    margin: 0 auto;
    width: 100%;
    word-wrap: break-word;
    white-space: normal;
  }

  summary::after {
    width: 18px;
    height: 18px;
    right: 0.5rem;
  }

  .wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .button.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .btn {
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: clamp(0.8rem, 4vw, 1rem);
  }

  .Arequipe,
  .Mora,
  .Chocolate,
  .Red_Velvet,
  .Milo,
  .Vainilla,
  .Oreo,
  
  .Maracuya,
  .Fría_Chocolate,
  .Choco_Arequipe,
  
  .Fresa_Melocoton {
    width: 90%;
    margin: 2% auto 5% auto;
  }
}

/* MOVILES / TABLETS */
@media (max-width: 600px) {
  body {
    padding-top: 110px;
    align-items: center;
  }

  .Torta {
    width: 96%;
    margin: 1rem auto;
    padding: 0.3rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -5px;
  }

  h1 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    width: 99%;
    max-width: 99%;
    padding: 0.8rem 2rem;
    letter-spacing: 1px;
    margin: 2% auto;
    word-wrap: break-word;
    text-align: center;
    margin-bottom: 2px;
  }

  .Arequipe,
  .Mora,
  .Chocolate,
  .Red_Velvet,
  .Milo,
  .Vainilla,
  .Oreo,
  
  .Maracuya,
  .Fría_Chocolate,
  .Choco_Arequipe,
  
  .Fresa_Melocoton {
    width: 80%;
    margin: 2% auto 5% auto;
  }

  details {
    width: 100%;
    max-height: 4rem;
  }

  summary {
    width: 100%;
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    padding: 0.7rem 2.8rem 0.7rem 0.5rem;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    min-height: 3rem;
    text-align: left;
    margin: 0 auto;
    margin-top: -3px;
  }

  summary::after {
    width: 20px;
    height: 20px;
    right: 0.8rem;
    flex-shrink: 0;
  }

  .wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .button.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .btn {
    margin: 0 auto;
    display: block;
    text-align: center;
  }
}

/* ESCRITORIO GRANDE */
@media (min-width: 900px) {
  .Torta {
    width: 850px;
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: 50px;
    margin-bottom: -15px;
  }

  .logo img {
    width: 150px;
  }
}



