@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap");

/* Optimización de fuentes para mejorar CLS */
@font-face {
  font-family: montserrat;
  font-display: swap;
}

:root {
  /* Colores principales */
  --color-primary: #e27123;
  --color-primary-dark: #c85a11;
  --color-secondary: #414141;
  --color-accent: #ffb703;

  /* Colores de texto */
  --color-title: #f77419;
  --color-title-alternative: #472810;
  --color-title-brown: #695a50;
  --color-title-brownie: #ab6d42;
  --color-title-light: #ead7ca;
  --color-title-light-70: #ead7caae;
  --color-text-dark: #503924;
  --color-text-dark-30: #50392470;
  --color-black-light: #00000080;
  --color-black: #000000;
  --color-gray: #333333;
  --color-text-light: #ebe0d8;

  --color-text-white: #ffffff;
  --color-text-white-90: #ffffff90;
  --color-text-white-70: #ffffff70;

  --color-text-masterchef: #cffbf9;
  --color-text-newpyme: #e7fccc;

  /* Fondos */
  --color-body-bg: #fffaf6;
  --color-background-light: #ffddc6;
  --color-background-alternative-light: #d6e5c3;
  --color-background-dark: #6e3b16;
  --color-background-alternative-dark: #83aa50;
  --color-background-card-dark: #ab6d42;
  --color-background-card-light: #feefe5;
  --color-background-masterchef: #4caca9;
  --color-background-masterchef-newpyme: #5ebd8f;
  --color-background-newpyme: #83aa50;

  /* Header */
  --color-header-bg: #ddd0c4;
  --color-header-btn: #5376a4;
  --color-header-nav: #b8a18c;
  --color-header-submenu: #c5b5a5;

  /* Hero */
  --color-hero-overlay: #e2e2e299;

  /* Footer */
  --color-footer-bg: #3e1f0b;
  --color-footer-cta-subtext: #ffe6d5;
  --color-footer-link: #ebe0d8d0;
  --color-footer-bottom-bg: rgba(0, 0, 0, 0.25);
  --color-badge-bg: rgba(255, 183, 3, 0.15);
  --color-badge-border: rgba(255, 183, 3, 0.4);

  /* Caratulas */
  --color-empresarial-dark: #5d1504;
  --color-empresarial-light: #cb8282;

  --color-profesional-dark: #cc5718;
  --color-profesional-light: #e2b59c;

  --color-industrial-dark: #032453;
  --color-industrial-light: #92b2d7;

  /* Aside */
  --color-whatsapp: #67c15e;
  --color-email: #dd312c;

  /* Bordes */
  --color-border: #ffffff;
  --color-border-transparent: rgba(255, 255, 255, 0.12);

  /* Sombras */
  --color-shadow-black-60: #00000060;
  --color-shadow-black-70: #00000070;
  --color-shadow-cta: rgba(0, 0, 0, 0.3);
  --color-shadow-btn: rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: montserrat, sans-serif;
  background-color: var(--color-body-bg);
}

hr {
  height: 3px;
  margin: 20px;
  background-color: var(--color-text-dark-30);
}

/* ------- HEADER SECTION ------- */

header {
  background-color: var(--color-header-bg);
  position: fixed;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  width: 100vw;
  min-height: 60px;
  justify-content: space-between;
  align-items: center;
  container-type: inline-size;
  container-name: header;
  text-align: center;
  font-size: 20px;
  z-index: 20;
}

.header__menu-checkbox {
  display: none;
}

.header__open-nav-button {
  color: var(--color-header-btn);
  font-size: 3rem;
  font-weight: 600;
  position: absolute;
  right: 50px;
  z-index: 20;
}

.header__nav {
  display: none;
  background-color: var(--color-header-nav);
  position: absolute;
  width: 100vw;
  top: 60px;
  border-radius: 0 0 20px 20px;
  z-index: -1;
}

.item--productos {
  display: flex;
  text-decoration: underline;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.header__menu-checkbox:checked ~ .header__nav {
  display: flex;
  z-index: 10;
}

.header__nav-list {
  display: flex;
  padding: 20px 0;
  gap: 50px;
  flex-direction: column;
  margin: auto;
  align-items: stretch;
}

.header__logo-container {
  max-width: 100%;
  min-width: 120px;
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 50px;
  z-index: 20;
  cursor: pointer;
}

.header__logo-container h2 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

.header__logo-container img {
  width: 50px;
}

.header__nav-item {
  list-style: none;
}

.header__nav-item a {
  color: var(--color-black);
}

.header__nav-item a:not(:is(:hover, :active)) {
  text-decoration: none;
}

.item--productos:not(:is(:hover, :active)) {
  text-decoration: none;
}

.header__dropdown {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header__submenu-checkbox {
  display: none;
}

.header__submenu {
  display: none;
  background-color: var(--color-header-submenu);
  position: static;
  border-radius: 0;
  top: 100%;
  width: 100vw;
  padding: 10px 0;
  margin: 0;
}

.header__submenu li {
  list-style: none;
  margin: 8px 0;
}

/* Mostrar submenu al marcar checkbox */
.header__submenu-checkbox:checked ~ .header__submenu {
  display: block;
}

/* ------- HEADER QUERIES ------- */

@container header (min-width: 600px) {
  .header__nav {
    display: flex;
    position: static;
    background-color: transparent;
    flex-direction: row;
    margin: 0;
    z-index: 20;
    height: 60px;
    justify-content: space-between;
  }

  .header__nav-list {
    flex-direction: row;
    align-items: center;
    padding: 0;
    height: 100%;
    width: auto;
    gap: 20px;
    margin-right: 40px;
  }

  .header__open-nav-button {
    display: none;
  }

  .header__dropdown {
    height: 100%;
  }

  .header__submenu-checkbox {
    display: none;
  }

  .header__submenu {
    position: absolute;

    border-radius: 0 0 20px 20px;
    top: 100%;
    width: 100%;
    padding: 10px 0;
  }
}

/* ------- ASIDE SECTION ------- */
.aside-buttons {
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 10px;
  padding: 10px;
  flex-direction: column;
  gap: 20px;
  z-index: 30;
}

.aside-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0px 2px 10px var(--color-shadow-black-60);
}

.mail-button {
  background-color: var(--color-email);
}

.whatsapp-button {
  background-color: var(--color-whatsapp);
}

.aside-buttons a svg {
  width: 2rem;
  color: var(--color-text-white);
}

/* ------- ASIDE QUERIES ------- */

/* ------- HERO SECTION ------- */

.hero {
  container-type: inline-size;
  container-name: hero;
}

.hero__wrapper {
  background-image: linear-gradient(var(--color-hero-overlay)), url("../images/desarrollo.jpg");
  display: flex;
  padding: 70px 20px 0 20px;

  opacity: .9;

  background-position: center;
  background-size: cover;

  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100%;
  height: 300px;
}

.hero h1 {
  color: var(--color-gray);
  text-align: center;
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
}

.hero h3 {
  color: var(--color-black-light);
  text-align: center;
  font-size: 0.7rem;
}

.hero img {
  max-width: 100%;
  width: 100px;
}

.hero__logo-name {
  font-size: 50px;
  color: var(--color-primary);
  line-height: 1;
}

.hero__wrapper button {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  font-size: 1.3rem;
  margin-top: 20px;
  padding: 10px 30px;
  border-radius: 10px;
  border: none;
  box-shadow: 0 1px 10px var(--color-shadow-black-60);
  cursor: pointer;
}

/* ------- HERO QUERIES ------- */

@container hero (min-width: 600px) {
  .hero__wrapper {
    padding: 80px 50px 0 50px;
    height: 650px;
  }

  .hero__logo-name {
    font-size: 80px;
  }

  .hero .hero__logo-subtitle {
    font-size: 1.1rem;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: 2rem;
  }

  .hero h3 {
    text-align: center;
    font-size: 1.2rem;
  }

  .hero img {
    margin-top: 30px;
    width: 250px;
  }
}

/* ------- INTRODUCTION SECTION ------- */

.introduction {
  container-type: inline-size;
  container-name: introduction;
}

.introduction__wrapper {
  display: flex;
  flex-direction: column;
  padding: 50px 30px;
}

.introduction__title {
  font-size: 2rem;
  color: var(--color-title);
  font-weight: 300;
  margin-bottom: 30px;
}

.introduction__title span {
  font-weight: 700;
}

.introduction__container-list-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
  gap: 30px;
}

.introduction__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  list-style-type: circle;
  justify-content: space-evenly;
  font-size: 1rem;
  color: var(--color-text-dark);
}

.introduction__list li {
  margin-bottom: 10px;
}

.introduction__image {
  flex: 1;
  max-width: 100%;
  min-width: 100px;
  transform: scaleX(-1);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 1px 5px var(--color-shadow-black-70);
}

/* ------- INTRODUCTION SECTION ------- */

@container introduction (min-width: 700px) {
  .introduction__wrapper {
    padding: 50px;
  }

  .introduction__title {
    font-size: 3rem;
  }

  .introduction__list {
    font-size: 1.5rem;
  }

  .introduction__container-list-image {
    justify-content: space-between;
    padding: 0 70px;
    flex-direction: row;
  }
}

/* ------- CHARACTERISTICS SECTION ------- */

.characteristics {
  container-type: inline-size;
  container-name: characteristics;
}

.characteristics__wrapper {
  background-color: var(--color-background-light);
  padding: 50px;
}

.characteristics__wrapper h2 {
  color: var(--color-title-alternative);
  text-align: center;
  font-size: 1.8rem;
  font-weight: 400;
}

.characteristics__wrapper h2 span {
  font-weight: 700;
}

.characteristics__cards {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 200px;
  margin-top: 20px;
  flex-direction: row;
  gap: 30px;
  justify-content: space-around;
}

.characteristics__card {
  flex: 1 1 250px;

  max-width: 500px;
  background-color: var(--color-background-card-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  padding: 50px 10px 20px 10px;
  box-shadow: 0 2px 5px var(--color-shadow-black-60);
}

.characteristics__alternative-card {
  background-color: var(--color-background-card-light);
}

.characteristics__card h3 {
  font-size: 1.5rem;
  text-align: center;
  color: var(--color-title-light);
}

.characteristics__alternative-card h3 {
  color: var(--color-title-brown);
}

.characteristics__card p {
  margin-top: 30px;
  text-align: center;
  color: var(--color-title-light);
}

.characteristics__alternative-card p {
  color: var(--color-title-brown);
}

.characteristics__card img {
  width: 100%;
  margin-top: 10px;
  height: 170px;
  object-fit: cover;
  object-position: bottom;
  border-radius: 20px;
}

.characteristics__extra-info {
  font-size: 1.2rem;
  opacity: 50%;
  text-align: center;
  margin-top: 30px;
}

/* ------- CHARACTERISTICS QUERIES ------- */

@container characteristics (min-width: 600px) {
  .characteristics__wrapper h2 {
    font-size: 2.5rem;
  }

  .characteristics__cards {
    margin-top: 50px;
  }
}

/* ------- EXCEL SECTION ------- */
.excel {
  container-type: inline-size;
  container-name: excel;
}

.excel__wrapper {
  padding: 50px 20px;
}

.excel__wrapper h2 {
  color: var(--color-title-alternative);
  font-size: 2rem;
  font-weight: 300;
}

.excel__wrapper h2 span {
  font-weight: 700;
}

.excel__data-wrapper {
  display: flex;
  flex-direction: column;
  background-color: var(--color-background-light);
  border-radius: 0 20px 20px 20px;
  padding: 20px;
}

.excel__data-wrapper img {
  position: relative;
  width: 100%;
  max-width: 300px;
  grid-row: span 2;
}

.excel__data-wrapper p {
  color: var(--color-text-dark);
  font-size: 1rem;
  padding-top: 20px;
}

.excel__data-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px;
  font-size: 1rem;
  color: var(--color-text-dark);
}

/* ------- EXCEL QUERIES ------- */
@container excel (min-width: 600px) {
  .excel__wrapper {
    padding: 50px;
  }

  .excel__wrapper h2 {
    font-size: 3rem;
  }

  .excel__data-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 1fr 4fr;
    border-radius: 0 20px 20px 20px;
    padding: 20px;
  }

  .excel__data-wrapper img {
    max-width: 400px;
  }

  .excel__data-wrapper p {
    font-size: 1.5rem;
  }

  .excel__data-list {
    font-size: 1.5rem;
    gap: 30px;
  }
}

/* ------- PRODUCTS SECTION ------- */

.products {
  container-type: inline-size;
  container-name: products;
}

.products__wrapper {
  padding: 50px 20px;
  background: linear-gradient(
    to right,
    var(--color-background-masterchef),
    var(--color-background-masterchef-newpyme),
    var(--color-background-newpyme)
  );
}

.products__wrapper h2 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text-white);
  text-wrap: pretty;
}

.products__wrapper h2 span {
  font-weight: 700;
}

.products__container {
  margin-top: 50px;
  display: flex;
  flex-direction: row;
}

.product__masterchef {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.product {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.product h3 {
  margin-top: 20px;
  text-align: center;
}

.product__masterchef {
  border-right: 3px solid var(--color-text-white);
}

.product__masterchef h3 {
  color: var(--color-text-masterchef);
}

.product__newpyme h3 {
  color: var(--color-text-newpyme);
}

.product button {
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  padding: 5px 20px;
  box-shadow: 0 2px 10px var(--color-shadow-black-60);
  cursor: pointer;

}

.product__newpyme button {
  color: var(--color-background-newpyme);
  background-color: var(--color-text-newpyme);
}

.product__masterchef button {
  color: var(--color-background-masterchef);
  background-color: var(--color-text-masterchef);
}

.product img {
  width: 100%;
  max-width: 150px;
}

.product__newpyme {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* ------- PRODUCTS QUERIES ------- */
@container products (min-width: 600px) {
  .products__wrapper {
    padding: 50px;
  }

  .products__wrapper h2 {
    font-size: 3rem;
  }

  .products__container {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
  }

  .product img {
    max-width: 300px;
  }

  .product button {
    border-radius: 10px;
    font-size: 1.5rem;
  }
}

/* ------- ABOUT US SECTION------- */

.about-us {
  container-type: inline-size;
  container-name: about-us;
}

.about-us__wrapper {
  padding: 30px 20px;
}

.about-us__wrapper h2 {
  font-size: 3rem;
  text-align: center;
  color: var(--color-title);
}

.info-wrapper {
  display: flex;
  flex-direction: column;
}

.info-container {
  flex: 1;
  order: 2;
  background-color: var(--color-background-light);
  border-radius: 30px;
  margin: 0 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.info-container h2 {
  font-size: 2rem;
  text-align: left;
  color: var(--color-title-brownie);
}

.info-container p {
  color: var(--color-text-dark);
  margin: 10px 0 0 30px;
  font-size: 1.2rem;
  line-height: 35px;
}

.info-wrapper img {
  flex: 1;
  order: 1;
  min-width: 100px;
  position: relative;
  top: 30px;
  z-index: -1;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 1px 5px var(--color-shadow-black-60);
}

.info-container ul {
  margin: 20px 0 0 50px;
  font-size: 1.2rem;
  line-height: 25px;
  list-style-type: circle;
  color: var(--color-text-dark);
}

.info-container ul li {
  margin-bottom: 10px;
}

.info-container ul li span {
  font-weight: 700;
}

.corporate-values__wrapper img {
  transform: scaleX(-1);
  object-position: 25% 50%;
}

/* ------- ABOUT US QUERIES------- */
@container about-us (min-width: 900px) {
  .about-us__wrapper {
    padding: 30px 50px;
  }

  .about-us__wrapper h2 {
    font-size: 4rem;
  }

  .info-wrapper {
    display: flex;
    flex-direction: row;
    padding: 50px;
    gap: 50px;
  }

  .info-container {
    background-color: transparent;
    order: 1;
  }

  .info-container h2 {
    font-size: 3rem;
  }
  .info-container p {
    margin: 30px 0 0 30px;
  }

  .info-wrapper img {
    order: 2;
  }

  .vision-info__container {
    order: 2;
  }

  .vision__wrapper img {
    order: 1;
  }

  .info-wrapper img {
    flex: 1;
    min-width: 100px;
    object-fit: cover;
    border-radius: 30px 0 30px 0;
    box-shadow: 0 1px 5px var(--color-shadow-black-60);
  }
}

/* ------- FOOTER SECTION ------- */

.footer {
  container-type: inline-size;
  container-name: footer;
  background-color: var(--color-footer-bg);
  /* background: linear-gradient(145deg, #2b1709 0%, #cccccc 40%, #6e3b16 100%); */
  color: var(--color-text-white);
  margin-top: 50px;
  position: relative;
  border-top: 3px solid var(--color-primary);
}

/* Pre-footer CTA Card */
.footer__cta {
  max-width: 1150px;
  margin: 0 auto;
  transform: translateY(-35px);
  background-color: var(--color-primary);
  /* background: linear-gradient(135deg, var(--color-primary) 0%, #c85a11 100%); */
  border-radius: 16px;
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 25px var(--color-shadow-cta);
}

.footer__cta-content h3 {
  font-size: 1.4rem;
  color: var(--color-text-white);
  margin-bottom: 6px;
  font-weight: 700;
}

.footer__cta-content p {
  color: var(--color-footer-cta-subtext);
  font-size: 0.95rem;
  margin: 0;
}

.footer__cta-button {
  background-color: var(--color-text-white);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--color-shadow-btn);
}

.footer__cta-button:hover {
  background-color: var(--color-body-bg);
  color: var(--color-primary-dark);
}

/* Main Grid Container */
.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.2fr;
  gap: 40px;
  padding: 10px 40px 50px 40px;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

/* Brand Column */
.footer__brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer__brand-header h3 {
  font-size: 1.6rem;
  color: var(--color-title-light);
  font-weight: 700;
  margin: 0;
}

.footer__brand-desc {
  color: var(--color-title-light-70);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-badge-bg);
  border: 1px solid var(--color-badge-border);
  color: var(--color-accent); 
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Titles with Accent Indicator */
.footer__title {
  font-size: 1.15rem;
  color: var(--color-title-light);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Link Lists */
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__list li a {
  color: var(--color-footer-link);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-block;
}

.footer__list li a:hover {
  color: var(--color-primary);
}

/* Contact List */
.footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-footer-link);
  font-size: 0.92rem;
  line-height: 1.4;
}

.footer__contact-list li a {
  color: var(--color-footer-link);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__contact-list li a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer__icon {
  width: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Footer Bottom Bar */
.footer__bottom {
  border-top: 1px solid var(--color-border-transparent);
  padding: 22px 40px;
  background: var(--color-footer-bottom-bg);
}

.footer__bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer__bottom p {
  color: var(--color-text-white-90);
  font-size: 0.88rem;
  margin: 0;
}

.footer__subtext {
  color: var(--color-text-white-70);
  font-size: 0.82rem;
}

/* Responsive Queries */
@container footer (max-width: 900px) {
  .footer__cta {
    margin: 0 20px;
    transform: translateY(-25px);
    flex-direction: column;
    text-align: center;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
    gap: 35px 25px;
    padding: 10px 30px 40px 30px;
  }
}

@container footer (max-width: 550px) {
  .footer__cta {
    padding: 20px;
  }

  .footer__cta-content h3 {
    font-size: 1.2rem;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 10px 20px 30px 20px;
  }

  .footer__bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
