/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font: normal 1em/140% 'gandhisans', sans-serif;
  line-height: 1.6;
  color: #221F1C;
  background: #EFD8DA;
}

/* Header */
header {
  position: relative;
  display: block;
  margin: 0 auto;
  min-width: 100%;
}

header h1 {
  font: bold 30px/110% 'chulapa', sans-serif;
  text-transform: uppercase;
}

.top {
  position: absolute;
  right: 20px;
  top: 20px;
  text-align: right;
  color: #221F1C !important;
  font-variant-ligatures: discretionary-ligatures;
}

.right {
  position: absolute;
  transform: rotate(90deg);
  top: 200px;
  right: -93px;
  color: #D53663;
}


/* Contenedor general */
main .container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Secciones */
section {
  padding: 3rem 2rem;
}

/* About */
.about {
  padding-top: 100px;
}

.about h3 {
  max-width: 700px;
  margin-bottom: 1rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.about p {
  font: normal 1.2em/140% 'Playfair Display', sans-serif;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Work */
.work {
  padding: 3rem 2rem 10rem;
}

.work h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
}

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

.item {
  /* background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  background: none;
  border-radius: 8px;
  overflow: hidden;
  
  display: flex;
  flex-direction: column;
}

.item.blank {
  background-color: rgba(0,0,0,0.2);
  box-shadow: none;
  margin: 40px 0;
  vertical-align: center;
  padding: 45% 0 0 30px;
}

.item.blank a {
  color: white;
  text-decoration: none;
  font-weight: normal;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

.info {
  padding: 1rem;
}

.info h3 {
  margin-bottom: 0.5rem;
}

.info a {
  /* display: inline-block; */
  display:none;
  margin-top: 0.5rem;
  color: #0066cc;
  text-decoration: none;
}

.info a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  background: #221F1C;
  color: #fff;
  margin-top: 2rem;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding-bottom: 8px;
}

footer .open {
  display:inline;
  background: #FFE039;
  background: #FFB1B8;
  padding: 3px 4px 3px 5px;
  border-radius: 3px;
  color: #221F1C;
  margin-right: 3px;
}

footer strong {
  font-size: 2rem;
  font-weight: normal;
  vertical-align: middle;
}

footer a{
  color: #fff;
  text-decoration: none;
  border-left: 1px solid #999;
  line-height: 55px;
  padding-left: 35px;
  padding-right: 20px;
}

footer a:first-of-type {
  padding-left: 0;
  border: none;
}

footer a:hover {
  color: #EC8493;
}

/* Galería interna de artículos */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.article-gallery img:hover {
  transform: scale(1.05);
}





/* Cookies */

#cookies .title {
  text-align: center;
}
#cookies .title img {
  background: transparent;
  border: none;
  margin-bottom: 2em;
}

#cookies .container:nth-child(2) {
  padding-top: 70px;
  padding-bottom: 70px;
  margin-bottom: 50px;
}

#cookies .container:last-of-type {
  margin-bottom: 0;
}

.container.cookies {
  border-radius: 10px;
}

.cookies .content {
  background: white;
  border-radius: 5px;
}

#cookies h1 strong {
  color:rgba(205,57,122,0.8);
  font-size: 2em;
  background-color: white;
  padding: 30px 20px 0;
  border-radius: 200px;
  margin-top: -100px;
  margin-right: 0px;
}

#cookies h1.text {
  font-family: 'gandhisans', serif !important;
  margin-top: -80px;
  margin-bottom: 40px;
  padding-top: 0;
  border-top: 40px solid white;
  border-radius: 25px;
  text-transform: uppercase;
  color: #333;
  text-align: center;
}

#cookies .content.ingredients{
  border: 30px solid #3DEE7A;
}

#cookies .pic {
  color: rgba(0,0,0,0.7);
  margin: 0;
  padding: 0;
}

#cookies .button {
  text-align: center;
  width: 150px;
}

#cookies button {
  width: 150px;
  padding: 10px;
  font: 500 2em 'gandhisans', sans-serif;
  background: white;
  border-top: 3px solid rgba(233,9,137,0.4);
  border-right: 3px solid rgba(48,35,174,0.5);
  border-bottom: 8px solid rgba(48,35,174,0.7);
  border-left: 8px solid rgba(233,9,137,0.5);
  color: #333;
  border-radius: 10px;
}

#cookies button:hover {
  border-top: 3px solid rgba(244,228,72,0.4);
  border-right: 3px solid rgba(99,219,221,0.5);
  border-bottom: 8px solid rgba(48,187,189,0.7);
  border-left: 8px solid rgba(244,172,72,0.6);

}
#cookies button:active {
  border-top: 4px solid rgba(233,9,137,0.4);
  border-bottom: 6px solid rgba(48,35,174,0.7);
  border-right: 6px solid rgba(48,35,174,0.5);
  border-left: 4px solid rgba(233,9,137,0.5);
}

#cookies .ingredient {
  width: 33%;
  float: left;
  background-color: white;
  box-sizing: border-box;
  border: solid 5px rgba(255,255,255,1);
  border-radius: 3px;
  text-align: center;
  text-align: -webkit-center;
}

#cookies .ingredient p {
  padding: 5px 5px 10px 5px;
}

.ingredient:nth-child(1) h2{
  border-bottom: 2px solid #F7EE6C;
}

.ingredient:nth-child(2) h2{
  border-bottom: 2px solid #3DEE7A;
}

.ingredient:nth-child(3) h2{
  border-bottom: 2px solid #63DBDD;
}

.ingredient:nth-child(4) h2{
  border-bottom: 2px solid #A053B1;
}

.ingredient:nth-child(5) h2{
  border-bottom: 2px solid #ED71A7;
}

.ingredient:nth-child(6) h2{
  border-bottom: 2px solid #2FBBBE;
}

.ingredient:nth-child(7) h2{
  border-bottom: 2px solid #F7EE6C;
}

.ingredient:nth-child(8) h2{
  border-bottom: 2px solid #A053B1;
}

.ingredient:nth-child(9) h2{
  border-bottom: 2px solid #ED71A7;
}

.ingredient:nth-child(10) h2{
  border-bottom: 2px solid #2FBBBE;
}

.ingredient:nth-child(11) h2{
  border-bottom: 2px solid #F7EE6C;
}

#cookies .ingredient h2 {
  font-size: 3em;
  font-weight: 700;
  max-width: 100px;
  padding-top: 10px;
  display: inline;
}

#recipe {
  clear: both;
  margin: 0 auto;
  width: 80%;
  max-width: 350px;
  padding-top: 30px;
}

#recipe .step {
  text-align: left;
  margin-bottom: 30px;
  border-left: 4px solid #B2F3D8;
  padding-left: 20px;
}

#recipe .step h2 {
  text-align: left;
  padding-top: 10px;
  font-weight: 300;
  font-size: 1.3em;
}

.container #recipe:after {
  content: '';
  background-image: url('./resources/monster.png');
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 70%;
  width: 200px;
  height: 116px;
  z-index: 299;
  position: absolute;
  right: 50%;
  bottom: -70px;
}

#recipe .step:last-of-type {
  margin-bottom: 90px;
}

#cookies .subtitle {
  display: block;
  text-align: right;
  z-index: 99;
  margin-bottom: 120px;
  padding-right: 10px;
  padding-bottom: 40px;
}

#cookies .subtitle a{
  font-weight: 700;
  line-height: 3em;
}

