@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --padding-container: 100px 0;
    --color-title: #001A49;
}

body {
    font-family: "Poppins", sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);

}

.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;
    --hero-bg: url('../images/bandeja_comida.webp');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--hero-bg) center/cover no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
    transition: background 1.5s ease;
}


/* Nav */

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__title {
    font-weight: 300;
    
}

.nav__logo a {
    text-decoration: none;
}

.nav__items {
    list-style: none;
}

.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}


.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;

}


.nav__img {
    display: block;
    width: 30px;
}

.nav__close {
    display: var(--show, none);
}

.nav__links {
    color: #fff;
    text-decoration: none;
}

.nav__links--negro {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.nav__title--mobile {
    display: none;
}

/* Hero container */

.hero__container {
    
    max-width: 800px;
    --padding-container: 0;
    display:grid;  
    grid-auto-rows: max-content;
    align-content: center;
    gap:1em;
    padding-bottom: 100px;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
}

.hero__paragraph {
    margin-bottom: 20px;
}

.cta {
    display: inline-block;
    background-color: #2091f9;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    border-radius: 32px;
    padding: 13px 30px;
    transition: background-color .3s;
}

.cta:hover {
    background-color: #1a75c7;
}


/* ABOUT */

.about {
    text-align: center;
}

.subtitle {
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}

.about__paragraph {
    line-height: 1.7;
}

.about__main{
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}

.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about__icon {
    width: 40px;
}





/* Knoledge */

.knowledge {
    background-color: #1D293F; /* Harmonized background color */
    color: #fff; /* Set default text color for the section */
}

.knowledge__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em; /* Increased gap for better spacing */
    align-items: center;
}

/* Override default subtitle color */
.knowledge .subtitle {
    color: #fff;
}

.knowledge__picture {
    max-width: 500px;
    justify-self: center; /* Center the figure */
    position: relative;
}

/* Adding a decorative shape behind the image */
.knowledge__picture::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.07); /* A subtle, lighter circular background */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}


.knowledge__paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
    color: #fff; /* Adjusted for better contrast */
}

.knowledge__img{
    width: 100%;
    display: block;
    position: relative; /* To appear above the pseudo-element */
    z-index: 1;
}

/* PRICE */ 

.price {
    text-align: center;
}

.price__table {
    padding-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;
    justify-content: center;
    align-items: center;
}

.price__element {
  background-color: #1D293F; /* Fallback color */
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  padding: 30px;
  width: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: left;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.price__element::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(29, 41, 63, 0.7); /* Dark overlay */
  z-index: 1;
}

.price__element > * {
  position: relative;
  z-index: 2;
}

.price__element:hover {
    transform: scale(1.03);
}

/* Card-specific background images */
.price__element--panaderia {
  background-image: url('../images/marraquetas.webp');
}

.price__element--cafeteria {
  background-image: url('../images/dispensador.webp');
}

.price__element--restaurante {
  background-image: url('../images/bandeja_comida.webp');
}

.price__name {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
}

.price__price { /* This is now the main title, e.g., "Panaderia y reposteria" */
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: auto; /* Pushes everything else down */
}

.price__items {
  margin-top: 20px;
  margin-bottom: 30px;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  padding: 0;
}

.price__features {
    padding-left: 15px;
    position: relative;
    list-style: none; /* Remove default list bullets */
}

.price__features::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2091f9;
}

.price__cta {
  display: block;
  padding: 15px 0;
  border-radius: 10px;
  text-decoration: none;
  background-color: #2091f9; /* Match main CTA */
  color: #fff;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s;
}

.price__cta:hover {
    background-color: #1a75c7;
}


/* TESTIMONY */

.testimony{
    background-color: #1D293F;
}

.testimony__container {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 1em;
    align-items: center;
}

.testimony__body {
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
    
    /* New card styles */
    background-color: rgba(255, 255, 255, 0.08); /* Subtle glass-like effect */
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    padding: 2.5em;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Add border for glass effect */
}

.testimony__body--show {
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.testimony__img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
    border: 5px solid #2091f9;
}

.testimony__texts{
    max-width: 700px;
    position: relative; /* For quote positioning */
}

/* Big quote icon */
.testimony__texts::before {
    content: '\201C';
    position: absolute;
    top: -40px;
    left: -30px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.08);
    font-family: serif;
    line-height: 1;
}


/* Overriding default subtitle color */
.testimony .subtitle {
    color: #fff;
}

.testimony__course{
    background-color: royalblue;
    color: #fff;
    display: inline-block;
    padding: 5px;
}

.testimony__arrow{
    width: 90%;
    cursor: pointer;
    filter: invert(1); /* Make arrows white */
    transition: transform 0.3s;
}

.testimony__arrow:hover {
    transform: scale(1.1);
}

/* QUESTIONS */

.questions {
    text-align: center;

}

.questions__container {
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 100px;

}

.questions__padding {
    padding:0;
    transition: padding .3s;
    border: 1px solid #5454D4;
    border-radius: 6px;
}

.questions__padding--add {
    padding-bottom: 30px;
}

.questions__answer {
    padding: 0 30px 0;
    overflow: hidden;
}

.questions__title{
    text-align: left;
    display: flex;
    padding: 30px 0 30px;
    cursor: pointer;
    font-size: 20px;
    color: var(--color-title);
    justify-content: space-between;
}

.questions__arrow{
    border-radius: 50%;
    background-color: var(--color-title);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition: transform .3s;

}


.questions__arrow--rotate{
    transform: rotate(180deg);
}

.questions__show{
    text-align: left;
    height: 0;
    transition: height .3s;
}

.questions_img{
    display: block;
}

.questions__copy{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.footer {
    background-color: #1D293F;
    padding-top: 80px;
}

.footer__title {
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 30px;
}

.footer__title, .footer__newsletter {
    color: #fff;
}

/* New Contact Section */
.footer__contact-section {
    color: #fff;
    text-align: left;
    border-bottom: 1px solid #444;
    padding-bottom: 30px;
    margin-bottom: 0;
}

.footer__contact-section .footer__newsletter {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: left;
}

.footer__contact-item {
    margin-bottom: 10px;
    line-height: 1.7;
    font-weight: 300;
    font-size: 1rem;
}

.footer__contact-item strong {
    font-weight: 600;
}

.footer__link {
    color: #fff;
    text-decoration: none;
}

.footer__link:hover {
    text-decoration: underline;
}

/* Footer Container for nav and form */
.footer__container{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #fff;
    padding-top: 30px;
    padding-bottom: 60px;
}

.nav--footer {
    padding-bottom: 20px;
    display: grid;
    gap: 1em;
    grid-auto-flow: row;
    height: 100%;
}

.nav__link--footer {
    display: flex;
    margin: 0;
    margin-right: 20px;
    flex-wrap: wrap;
}

.footer__inputs{
    margin-top: 10px;
    display: flex;
    overflow: hidden;
}

.footer__input{
    background-color: #fff;
    height: 50px;
    display: block;
    padding-left: 10px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    border: none;
    margin-right: 16px;

}

.footer__submit{
    margin-left: auto;
    display: inline-block;
    height: 50px;
    padding: 0 20px;
    background-color: #2019f9;
    border: none;
    font-size: 1rem;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.footer__copy{
    --padding-container: 30px 0;
    text-align: center;
    color: #fff;

}

.footer__copyright{
    font-weight: 300;

}

.footer__icons{
    display: inline-flex;
    margin-bottom: 10px;
}

.footer_img{
    width: 30px;
}

/* Media Queries */
/* Se aplica esta configuración cuando el ancho de la pantalla es menor a 800px */

@media (max-width:800px){

    .hero__logo {
        max-width: 200px;
    }

    /* On mobile, show title on home page, logo on others */
    .nav__title--mobile {
        display: block;
        color: #fff;
        font-weight: 300;
    }

    .hero:not(.hero--catalog) .nav__logo-img {
        display: none;
    }

    .hero--catalog .nav__title--mobile {
        display: none;
    }

    .hero--catalog .nav__logo-img {
        display: block;
        height: 40px;
    }

    .nav__menu {
        display: block;
    }

    .nav__link--menu {
        position: fixed;
        background-color: #000;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }

    .nav__link--show{
        --show: block;
        opacity: 1;
        pointer-events: unset;
    }

    .nav__close{
        position: absolute;
        top:30px;
        right: 30px;
        width: 30px;
        cursor:pointer;
    }

    .hero__title{
        font-size: 2.5rem;
    }

    .about__main{
        gap: 2em;
    }

    .about__icons:last-of-type{
        grid-column: 1/-1;
    }

    .knowledge__container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }

    .knowledge__picture{
        grid-row: 1/2;
        justify-self: center;
    }

    .testimony__container{
        grid-template-columns: 30px 1fr 30px;

    }

    .testimony__body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items: center;
    }



    .testimony__img{
        width: 200px;
        height: 200px;
    }

    .questions__copy{
        width: 100%;
    }

    .footer__container{
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav--footer{
        width: 100%;
        justify-items: center;
    }

    .nav__link--footer{
         width: 100%;
         justify-content: space-evenly;
         margin: 0;
    }

    .footer__form{
        width: 100%;
        justify-content: space-between;
    }

    .footer__input{
     flex: 1;
    }
}

@media (max-width: 600px){
    .hero__title{
        font-size: 2rem;
    }

    .hero__paragraph{
        font-size: 1rem;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .price__element{
        width: 90%;
    }

    .price__element--best{
        width: 90%; 
    }

    .price__price{
        font-size: 2rem;
    }

    .testimony{
        --padding-container: 60px 0;
    }

    .testimony__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony__arrow{
        width: 100%;
    }

    .testimony__course{
        margin-top: 15px;
    }

    .questions__title{
        font-size: .9rem;
    }

    .footer__title{
        justify-self: start;
    }

    .nav--footer{
        padding-bottom: 60px;
    }

    .footer__inputs{
        flex-wrap: wrap;
    }

    .nav__link--footer{
        justify-content: space-between;
    }

    .footer__input{
        flex-basis: 100%;
        margin: 0;
        margin-bottom: 19px;
    }

    .footer__submit{
        margin: 0;
        width: 100%;
    }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Catalog Page Styles */
.hero--catalog {
  height: 150px;
  min-height: auto;
  clip-path: none;
}

.nav__title__link {
  text-decoration: none;
  color: inherit;
}

.catalog-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card__image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 10px;
  background-color: #f9f9f9;
}

.product-card__content {
  padding: 20px;
}

.product-card__name {
  font-size: 1.5rem;
  color: var(--color-title);
  margin-bottom: 15px;
}

.product-card__detail {
  font-size: 1rem;
  line-height: 1.6;
  color: #696871;
}

.product-card__detail strong {
  color: #1D293F;
}

/* Product Detail Page Styles */
.product-detail {
  padding-top: 40px;
  padding-bottom: 60px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--color-title);
  text-decoration: none;
  font-weight: 600;
}

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

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
}

@media (min-width: 768px) {
  .product-detail__layout {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.product-detail__main-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}

.product-detail__thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
}

.product-detail__thumbnail {
  width: 100%;
  height: 80px;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.product-detail__thumbnail:hover,
.product-detail__thumbnail--active {
  border-color: var(--color-title);
}

.product-detail__info {
  display: flex;
  flex-direction: column;
}

.product-detail__name {
  font-size: 2.5rem;
  color: var(--color-title);
  margin-bottom: 10px;
}

.product-detail__meta {
  font-size: 1.1rem;
  color: #696871;
  margin-bottom: 20px;
}

.product-detail__description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.product-detail__specs-title {
  font-size: 1.8rem;
  color: var(--color-title);
  margin-bottom: 15px;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.product-detail__specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-detail__specs-list li {
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
}
.product-card-link {
  text-decoration: none;
  color: inherit;
}

/* Logo Styles */
.nav__logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* Hero Logo */
.hero__logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  max-width: 350px;
  margin-bottom: 20px;
}

.social-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.social-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-float__icon {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.whatsapp-float {
    background-color: #25D366;
}

.instagram-float {
    background: #f09433;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}