/*-----------------------------------*\
 * #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --middle-blue-green: #edc796;
  --sonic-silver: hsl(0, 0%, 44%);
  --eerie-black: hsl(0, 0%, 9%);
  --eerie-white: hsl(0, 0%, 100%);
  --ocean-green: hsl(148, 45%, 58%);
  --candy-pink: hsl(356, 65%, 63%);
  --cultured: hsl(0, 0%, 96%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);

  /**
   * typography
   */

  --ff-jost: "Jost", sans-serif;

  --fs-1: 2.5rem;
  --fs-2: 1.75rem;
  --fs-3: 1.625rem;
  --fs-4: 1.5rem;
  --fs-5: 1.375rem;
  --fs-6: 1.25rem;
  --fs-7: 1.125rem;
  --fs-8: 0.938rem;
  --fs-9: 0.875rem;
  --fs-10: 0.813rem;

  --fw-500: 500;
  --fw-600: 600;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.75s ease;
  --cubic-out: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-in: cubic-bezier(0.33, 0.85, 0.56, 1.02);

  /**
   * spacing
   */

  --section-padding: 60px;

}

/*-----------------------------------*\
 * #RESET
\*-----------------------------------*/

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

li { list-style: none; }

a { text-decoration: none; }

a,
img,
span,
input,
button,
ion-icon { display: block; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

button {
  text-align: left;
  cursor: pointer;
}

input {
  width: 100%;
  outline-color: var(--middle-blue-green);
}

img { height: auto; }

ion-icon { pointer-events: none; }

html {
  font-family: var(--ff-jost);
  color: var(--sonic-silver);
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  padding-block: 70px;
  overflow-x: hidden;
}

/*-----------------------------------*\
 * #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

a,
button { transition: var(--transition-1); }

h3 > a { color: inherit; }

.h1,
.h2,
.h3,
.h4 {
  color: var(--eerie-black);
  font-weight: var(--fw-600);
}

.h1 {
  font-size: var(--fs-1);
  line-height: 1;
}

.h2 { font-size: var(--fs-2); }

.h3 { font-size: var(--fs-6); }

.h4 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.btn {
  background: var(--background, var(--eerie-black));
  color: var(--color, var(--white));
  font-weight: var(--fw-600);
  height: var(--height, 60px);
  padding-inline: 50px;
  border: 1px solid var(--border-color, var(--eerie-black));
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:is(:hover, :focus) {
  --background: var(--white);
  --color: var(--eerie-black);
  --border-color: var(--eerie-black);
}

.btn-secondary {
  --height: 50px;
  --background: var(--white);
  --color: var(--eerie-black);
  --border-color: var(--white);
}

.btn-secondary:is(:hover, :focus) {
  --background: var(--eerie-black);
  --color: var(--white);
  --border-color: var(--eerie-black);
}

.btn-outline {
  --height: 50px;
  --background: var(--white);
  --color: var(--eerie-black);
  --border-color: var(--eerie-black);
  padding-inline: 40px;
}

.btn-outline:is(:hover, :focus) {
  --background: var(--eerie-black);
  --color: var(--white);
  --border-color: var(--eerie-black);
}

.section { padding-block: var(--section-padding); }

.w-100 { width: 100%; }

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

/*-----------------------------------*\
 * #HEADER
\*-----------------------------------*/

.header-search { display: none; }

.header {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--white);
  width: 100%;
  padding-block: 20px;
  z-index: 4;
  transition: var(--transition-1);
}

.header.active {
  position: fixed;
  box-shadow: 0 2px 20px hsla(0, 0%, 0%, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-open-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav-open-btn span {
  width: 20px;
  height: 2px;
  background: var(--black);
  transition: var(--transition-1);
}

.nav-open-btn span:nth-child(2) {
  transform: scaleX(0.5);
  transform-origin: right;
}

.nav-open-btn:is(:hover, :focus) span:nth-child(2) { transform: scaleX(1); }

.header-actions {
  background: var(--white);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 5px;
  padding-block: 16px 10px;
  box-shadow: 0 -2px 20px hsla(0, 0%, 0%, 0.1);
  z-index: 1;
}

.header-action-btn {
  position: relative;
  width: 50px;
  text-align: center;
}

.header-action-btn ion-icon {
  margin-inline: auto;
  font-size: 22px;
  margin-bottom: 3px;
}

.header-action-label {
  color: var(--sonic-silver);
  font-size: var(--fs-10);
  transition: var(--transition-1);
}

.header-action-btn:is(:hover, :focus) .header-action-label { color: var(--eerie-black); }

.header-action-btn .btn-badge {
  position: absolute;
  top: -5px;
  right: 0;
  background: var(--background, var(--eerie-black));
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  line-height: 0;
  font-size: 13px;
  color: var(--white);
  border-radius: 50%;
}

.header-action-btn .btn-badge.green { --background: var(--middle-blue-green); }

.navbar {
  background: var(--white);
  position: fixed;
  top: 0;
  right: -300px;
  max-width: 300px;
  width: 100%;
  height: 100%;
  padding: 30px 25px;
  z-index: 3;
  visibility: hidden;
  transition: 0.25s var(--cubic-out);
}

.navbar.active {
  visibility: visible;
  transform: translateX(-300px);
  transition: 0.5s var(--cubic-in);
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.nav-close-btn ion-icon { font-size: 23px; }

.navbar-link{
  padding-block: 10px;
  color: var(--black);
}

.navbar-list > li:not(:last-child) { border-bottom: 1px solid var(--cultured); }

.overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
  z-index: 2;
}

.overlay.active {
  opacity: 0.7;
  pointer-events: all;
}

/*-----------------------------------*\
 * #HERO
\*-----------------------------------*/
/* Hero Section */
.hero {
  display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
height: 100vh; 
box-sizing: border-box;
position: relative;
background-image: url(../images/Catalogo/fondo2.webp);
background-size: cover; 
background-position: center; 
background-repeat: no-repeat;
}

.hero::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.39);  
  z-index: 1;
}

/* Text Section */
.hero-text {
  flex: 1 1 40%;
  max-width: 500px;
  color: white;
  text-align: left;
  z-index: 2;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.hero-text p {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.hero-text a {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #edc796;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.hero-text a:hover {
  background-color: #d4b286;
}

/* Product Wheel */
.outer-circle {
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 2;
}

.outer-circle .products-container-circulo {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: center;
  transition: transform 1s ease-in-out;
}

.outer-circle .productos_circulo {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.outer-circle .productos_circulo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  transform: rotate(0deg);
}

.inner-circle {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: solid 2px #ffffff1a;  
  border-radius: 50%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.inner-circle .selected-product {
  text-align: center;
  color: #fff;
}

.inner-circle .selected-product img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  align-items: center;
}

.inner-circle .selected-product h3 {
  margin: 0;
  font-size: 1.3rem;
}

.inner-circle .selected-product p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Diseño para pantallas grandes (superior a 1024px) */
@media screen and (min-width: 1025px) {
  .hero {
    flex-direction: row; 
    height: 100vh; 
    padding: 0;
  }

  .hero-text {
    flex: 1;
    max-width: 500px;
    color: white;
    text-align: left;
    z-index: 2;
    margin-left: 20px;
  }

  .hero-text h1 {
    font-size: 3rem; 
  }

  .hero-text p {
    font-size: 2rem; 
  }

  .outer-circle {
    width: 850px;
    height: 850px;
    position: relative;
    left: 290px;
    flex-shrink: 0;
  }

  .inner-circle {
    width: 350px;
    height: 350px;
  }

  .outer-circle .productos_circulo {
    width: 120px;
    height: 120px;
  }

  .hero-text a {
    padding: 12px 24px;
    font-size: 1.2rem;
  }
}

/* Diseño para pantallas medianas (tabletas, entre 768px y 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .hero {
    flex-direction: column; /* Los elementos se apilan en vertical */
    height: auto;
    padding: 30px 10px;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.8rem;
  }

  .outer-circle {
    width: 500px;
    height: 500px;
    margin-bottom: 20px; 
  }

  .inner-circle {
    width: 300px;
    height: 300px;
  }

  .outer-circle .productos_circulo {
    width: 100px;
    height: 100px;
  }

  .hero-text a {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* Diseño para pantallas pequeñas (móviles, entre 480px y 768px) */
@media screen and (max-width: 768px) {
  .hero {
    flex-direction: column; /* Los elementos se apilan en vertical */
    height: auto;
    padding: 20px;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-text h1 {
    font-size: 2rem; /* Ajusta el tamaño del título */
  }

  .hero-text p {
    font-size: 1.6rem; /* Ajusta el tamaño del párrafo */
  }

  .outer-circle {
    width: 400px;
    height: 400px;
    margin-bottom: 20px; /* Añade espacio debajo de la rueda */
  }

  .inner-circle {
    width: 250px;
    height: 250px;
  }

  .outer-circle .productos_circulo {
    width: 90px;
    height: 90px;
  }

  .hero-text a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Diseño para pantallas extra pequeñas (móviles muy pequeños o dispositivos con resoluciones menores a 480px) */
@media screen and (max-width: 400px) {
  .hero {
    flex-direction: column; /* Los elementos se apilan en vertical */
    height: auto;
    padding: 20px;
    overflow-x: hidden;
  }

  .hero-text {
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-text h1 {
    font-size: 1.8rem; /* Reduce el tamaño del título */
  }

  .hero-text p {
    font-size: 1.4rem; /* Reduce el tamaño del párrafo */
  }

  .outer-circle {
    width: 450px;
    height: 450px;
    margin-bottom: 20px;
  }

  .inner-circle {
    width: 220px;
    height: 220px;
  }
  
  .inner-circle h3{
    font-size: 0.5rem;
  }

  .outer-circle .productos_circulo {
    width: 80px;
    height: 80px;
  }

  .hero-text a {
    position: absolute;
    left: 60px;
    font-size: 1.5rem;
  }
}

/* Pantallas extremadamente pequeñas (dispositivos con resoluciones menores a 320px, como algunos modelos muy antiguos) */
@media screen and (max-width: 320px) {
  .hero-text h1 {
    font-size: 1.5rem; 
  }

  .hero-text p {
    font-size: 1.2rem; 
  }

  .outer-circle {
    width: 300px;
    height: 300px;
    margin-bottom: 20px;
  }

  .inner-circle {
    width: 180px;
    height: 180px;
  }

  .outer-circle .productos_circulo {
    width: 70px;
    height: 70px;
  }

  .hero-text a {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
}


/*-----------------------------------*\
 * #FOOTER
\*-----------------------------------*/

.footer-top {
  background: var(--cultured);
  padding-block: var(--section-padding);
}

.footer-top .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer .logo { margin-bottom: 20px; }

.footer-text {
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.social-link {
  color: var(--eerie-black);
  font-size: 18px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--sonic-silver);
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.social-link:is(:hover, :focus) {
  background: var(--eerie-black);
  color: var(--white);
  border-color: var(--eerie-black);
}

.footer-list { width: 100%; }

.footer-list-title {
  color: var(--eerie-black);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 15px;
}

.footer-link {
  position: relative;
  color: inherit;
  padding-block: 5px;
}

.footer-link:is(:hover, :focus) {
  color: var(--eerie-black);
  transform: translateX(15px);
}

.footer-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%) scale(var(--scale, 0));
  transform-origin: right;
  background: var(--sonic-silver);
  width: 10px;
  height: 2px;
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus)::before { --scale: 1; }

.footer-bottom { padding-block: 20px; }

.footer-bottom a { color: inherit; }

.copyright {
  margin-bottom: 15px;
  text-align: center;
}

.copyright a {
  display: inline-block;
  color: var(--eerie-black);
  font-weight: var(--fw-600);
}

.footer-bottom-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 15px;
  margin-bottom: 15px;
}

.footer-bottom-link:is(:hover, :focus) { color: var(--eerie-black); }

.payment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}





/*-----------------------------------*\
 * #MEDIA QUARIES
\*-----------------------------------*/

/**
 * responsive for larger than 480px screen
 */

@media (min-width: 480px) {

  :root {
    --fs-1: 3rem;
    --fs-2: 2rem;

  }

  .category-list > li { width: calc(50% - 15px); }

  .product-list > li { width: calc(50% - 12.5px); }

  .footer-brand { width: 100%; }

  .footer-text { max-width: 470px; }

  .footer-list { width: calc(50% - 20px); }

}


/**
 * responsive for larger than 580px screen
 */

@media (min-width: 580px) {
  :root {

    /**
     * typography
     */

    --fs-1: 3.75rem;
    --fs-2: 2.375rem;
    --fs-3: 2.25rem;

  }



  /**
   * REUSED STYLE
   */

  .container {
    max-width: 550px;
    margin-inline: auto;
  }

}

/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .container { max-width: 700px; }



  /**
   * HERO
   */

  .hero {
    background-position: center;
    min-height: 800px;
  }



  /**
   * BLOG
   */

  .blog-list > li { width: calc(50% - 15px); }



  /**
   * NEWSLETTER
   */

  .newsletter-card > * {
    max-width: 480px;
    margin-inline: auto;
  }

  .newsletter-card .card-form { position: relative; }

  .newsletter-card .input-wrapper { margin-bottom: 0; }

  .newsletter-card .btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: max-content;
    padding-inline: 35px;
    border-radius: 0 6px 6px 0;
  }



  /**
   * FOOTER
   */

  .footer-list { width: calc(33.33% - 26.66px); }

  .copyright,
  .footer-bottom-list { margin-bottom: 0; }

  .footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px 50px;
  }

}





/**
 * responsive for larger than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 5rem;

  }



  /**
   * RESET
   */

  body { padding-block: 0; }



  /**
   * REUSED STYLE
   */

  .container { max-width: 950px; }



  /**
   * HEADER
   */

  .header {
    position: relative;
    padding-block: 15px;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
    margin-bottom: 67px;
  }

  .header.active {
    position: relative;
    box-shadow: none;
  }

  .header .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .header-search {
    display: block;
    position: relative;
    width: max-content;
  }

  .header-search .input-field {
    border: 1px solid hsla(0, 0%, 0%, 0.1);
    width: 280px;
    padding: 12px 30px;
    border-radius: 6px;
    transition: var(--transition-1);
  }

  .header-search .input-field:focus { outline: 1px solid var(--eerie-black); }

  .header-search .search-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--eerie-black);
  }

  .header-search .search-btn ion-icon { --ionicon-stroke-width: 30px; }

  .header .logo { margin-inline: auto; }

  .nav-open-btn,
  .header-action-btn:nth-child(2),
  .navbar-top,
  .overlay { display: none; }

  .header-actions {
    all: unset;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
  }

  .navbar {
    all: unset;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 100%;
    background: var(--white);
  }

  .header.active .navbar {
    position: fixed;
    top: 0;
    box-shadow: 0 2px 20px hsla(0, 0%, 0%, 0.1);
  }

  .navbar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .navbar-list > li:not(:last-child) { border-bottom: none; }

  .navbar-link {
    font-size: var(--fs-7);
    font-weight: var(--fw-500);
    padding-block: 20px;
  }

  .navbar-link:is(:hover, :focus) { color: var(--middle-blue-green); }

  .activa a{
    color: #edc796;
  }



  /**
   * CATEGORY
   */

  .category-list > li:not(:first-child, :nth-child(2)) { width: calc(25% - 22.5px); }



  /**
   * PRODUCT
   */

  .product-list > li { width: calc(33.33% - 16.66px); }

  .product-card .card-actions {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: translateY(100px);
    visibility: hidden;
    transition: var(--transition-1);
  }

  .product-card .card-banner { overflow: hidden; }

  .product-card .card-banner:hover .card-actions {
    visibility: visible;
    transform: translateY(0);
  }

  .product-card .card-action-btn:first-child { border-radius: 6px 0 0 6px; }

  .product-card .card-action-btn:last-child { border-radius: 0 6px 6px 0; }



  /**
   * BLOG
   */

  .blog-list > li { width: calc(33.33% - 20px); }



  /**
   * NEWSLETTER
   */

  .newsletter-card .card-form { max-width: 650px; }

}





/**
 * responsive for larger than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 6.25rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1150px; }



  /**
   * HEADER
   */

  .header-search .input-field { width: 350px; }



  /**
   * PRODUCT
   */

  .product-list > li { width: calc(25% - 18.75px); }



  /**
   * FOOTER
   */

  .footer-brand { width: calc(40% - 30px); }

  .footer-text { max-width: 340px; }

  .footer-list { width: calc(20% - 30px); }

  .footer-bottom .container { justify-content: space-between; }

}


