/* 1) Reset y box model consistente + cortar overflow horizontal */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* evita slider horizontal */
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000000; /* Negro predominante */
  color: #ffffff;
}

/* 2) Fondo */
body::before {
  content: '';
  position: fixed;
  inset: 0; /* shorthand top/right/bottom/left:0 */
  background: radial-gradient(circle, #31406a, #000000); /* Usando un color de marca con negro */
  z-index: -1;
}

/* 3) Header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  margin: 0;
  padding: 0;
}

.image-container {
  width: 275px;
  height: 275px;
  display: inline-block;
  z-index: 1;
  margin-bottom: 0;
  margin-top: -20px;
  max-width: 100%;
}

.top-left-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

h1.entry-title {
  font-size: 50px;
  color: #e1c7ea; /* Color de marca */
  text-shadow: 0 0 10px #8f5498, 0 0 20px #8f5498, 0 0 30px #8f5498; /* Sombra con color de marca */
  font-family: 'Russo One', sans-serif;
  font-style: italic;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  text-align: center;
  opacity: 0;
  margin-top: 0;
  letter-spacing: 3px;
  animation: fadeIn 1.5s ease-out, slideIn 1.5s ease-out forwards;
}

h1.entry-title span {
  opacity: 0;
  transform: translateX(150px);
  animation: slideIn 1.5s ease-out forwards;
  margin: 0 5px;
}

h1.entry-title span:nth-child(1) { animation-delay: 0.1s; }
h1.entry-title span:nth-child(2) { animation-delay: 0.2s; }
h1.entry-title span:nth-child(3) { animation-delay: 0.3s; }
h1.entry-title span:nth-child(4) { animation-delay: 0.4s; }
h1.entry-title span:nth-child(5) { animation-delay: 0.5s; }
h1.entry-title span:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideIn {
  0% { opacity: 0; transform: translateX(150px); }
  50% { opacity: 0.5; transform: translateX(30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* 4) Layout principal */
.container {
  text-align: center;
  width: 80%;
  max-width: 100%;
  margin: 25px auto;
  padding: 10px;
  overflow: hidden; /* por si algún hijo intenta salirse */
}

/* 5) Cards */
.group_cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards_item {
  display: flex;
  padding: 1rem;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.card_image {
  max-height: 250px;
  margin-top: -24px;
}

/* Reemplazo CSS plano de reglas anidadas */
.card_image img {
  width: 100%;
  max-width: 800px;
  height: 100%;
  object-fit: cover;
}

.card_image::after {
  content: "";
  display: block;
  width: 100%;
  height: 100px;
  position: relative;
  top: -100px;
  background: linear-gradient(0deg, #000000 10%, rgba(0, 0, 0, 0) 100%); /* Negro */
}

.card {
  background-color: #000000; /* Negro */
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card_content {
  padding: 1rem;
  z-index: 1;
  display: block;
  color: #7dd0e2; /* Color de marca */
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
}

.card_content p {
  max-width: 700px;
}

.card_title {
  font-size: 30px;
  line-height: 52px;
  margin-top: -65px;
  text-shadow: black 1px 0 15px;
  color: #e1c7ea; /* Color de marca */
}

#item_fig .card::after {
  content: "Seasonal";
  font-family: "Raleway', sans-serif;
  color: #8bd38d; /* Color de marca */
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  display: block;
  width: 10ch;
  height: 1.5em;
  padding: 0.2em 0.4em;
  position: relative;
  bottom: calc(100% - 2.5em);
  left: 1em;
}

/* 6) Botón */
.whatsapp_button {
  background-color: #37887e; /* Color de marca */
  border: none;
  color: #ffffff;
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
}
.whatsapp_button:hover { background-color: #2a6229; } /* Color de marca */

/* 7) Tabs: evita overflow estableciendo wrap y sin width fija por botón */
.tab {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #31406a; /* Color de marca */
  padding: 5px 15px;
  border-radius: 10px;
  box-sizing: border-box;
  flex-wrap: wrap;      /* antes: nowrap */
  gap: 10px;            /* en vez de margin en botones */
}

.tab button {
  background-color: #8f5498; /* Color de marca */
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  color: #ffffff;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
  flex: 1 1 auto;       /* crece y se adapta */
  min-width: 120px;     /* evita que se encoja demasiado */
  white-space: nowrap;  /* no cortar texto dentro */
}

.tab button:hover { background-color: #673b7b; } /* Color de marca */
.tab button.active { background-color: #e1c7ea; color: #000000; } /* Color de marca y texto negro */

@media (max-width: 600px) {
  .tab button {
    font-size: 12px;
    padding: 10px 12px;
    min-width: 100px;
  }
}

/* 8) Tabla principal */
#customers {
  width: 80%;
  max-width: 100%;
  margin: auto;
  border-collapse: collapse;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  box-shadow: 0 4px 10px #000000;
  border-radius: 8px;
  overflow: hidden;
}

#customers th,
#customers td {
  padding: 14px;
  text-align: left;
}

#customers th {
  background-color: #31406a; /* Color de marca */
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

#customers tr:nth-child(odd) {
  background-color: #1a1a1a; /* Negro más claro */
  color: #ffffff;
}

#customers tr:nth-child(even) {
  background-color: #000000; /* Negro */
  color: #ffffff;
}

/* 9) Tablas: hacerlas scrollables en pantallas chicas sin romper layout */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  max-width: 100%;
}

th, td {
  border: 1px solid #31406a; /* Color de marca */
  padding: 12px;
  text-align: center;
  color: #ffffff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto; /* si la tabla es ancha, que scrollee dentro de su contenedor */
}

/* 10) Otros bloques */
h3 {
  margin: 0;
  padding: 15px 0;
  font-size: 24px;
  color: #ffffff;
  background-color: #8f5498; /* Color de marca */
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
}

.wishlist-container {
  color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 50px;
}

.wishlist-container .total-table { margin-top: 15px; }
.tool-price { font-size: 18px; font-weight: bold; color: #8bd38d; } /* Color de marca */

/* Contact Container */
.contact-container {
    color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-top: -80px; /* Ajusta según sea necesario */
    background-color: #000000; /* Fondo negro para la sección de contacto */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

#contactUsTitle {
    background-color: #31406a; /* Color de marca para el título */
    color: #ffffff;
    padding: 15px 0;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

#contactList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Columnas responsivas */
    gap: 15px; /* Espacio entre los ítems */
    padding: 10px;
}

.contact-item {
    display: flex; /* Para alinear el emoji y el texto */
    align-items: center;
    justify-content: center; /* Centrar el contenido */
    padding: 15px 20px;
    border: 2px solid #7dd0e2; /* Color de marca para el borde */
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    background-color: #1a1a1a; /* Fondo oscuro para los ítems */
    transition: all 0.3s ease; /* Transición suave para efectos */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.contact-item:hover {
    background-color: #37887e; /* Color de marca al pasar el ratón */
    border-color: #8bd38d; /* Otro color de marca para el borde al pasar el ratón */
    transform: translateY(-5px) scale(1.02); /* Pequeño efecto de elevación */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff; /* Asegura que el texto siga siendo blanco */
}

.contact-item::before {
    margin-right: 8px; /* Espacio entre el emoji y el texto */
}

/* 11) Footer */
footer.footer {
  position: relative;
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background: none;
  color: #ffffff;
  margin-top: 50px;
}

.footer-text {
  font-size: 10px;
  font-family: 'Russo One', sans-serif;
  font-style: italic;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInFooterText 1.5s ease-out forwards;
}

.footer-logo {
  width: 100px;
  height: auto;
  animation: fadeInFooterLogo 1.5s ease-out forwards;
}

.footer-link {
  position: relative;
  display: inline-block;
}

.contact-popup {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-link:hover .contact-popup { display: block; }

@keyframes fadeInFooterText {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInFooterLogo {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 12) SEO box */
.seo-text {
  display: block;
  max-width: 1000px;
  width: 90%;
  margin: 50px auto;
  padding: 40px 50px;
  background: linear-gradient(160deg, #000000 0%, #31406a 50%, #000000 100%); /* Negro con color de marca */
  border: 2px solid #7dd0e2; /* Color de marca */
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  font-family: 'Russo One', sans-serif;
  line-height: 1.8;
  color: #eaeaea;
}

.seo-text h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: center;
  color: #8bd38d; /* Color de marca */
  text-shadow: 0px 0px 6px rgba(139, 211, 141, 0.7); /* Sombra con color de marca */
}

.seo-text h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #e1c7ea; /* Color de marca */
  border-left: 5px solid #8bd38d; /* Color de marca */
  padding-left: 12px;
}

.seo-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #ddd;
}

.seo-text strong { color: #fff; }

.seo-text em {
  color: #8bd38d; /* Color de marca */
  font-style: italic;
}

.seo-text ul {
  margin: 20px 0 25px 25px;
  padding: 0;
  list-style: none;
}

.seo-text ul li {
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
  font-size: 1.05rem;
  color: #f5f5f5;
}

.seo-text ul li::before {
  content: "⚔️";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  color: #7dd0e2; /* Color de marca */
}

/* 13) Media queries */
@media (max-width: 800px) {
  .header-container { flex-direction: column; }
  h1.entry-title { font-size: 40px; text-align: center; margin-top: 0; }
  .image-container { width: 250px; height: 250px; margin-top: -20px; }
}

@media (max-width: 768px) {
  .container { width: 90%; }
  table, th, td { font-size: 14px; padding: 8px; }
}

@media (max-width: 500px) {
  .header-container { flex-direction: column; align-items: center; }
  h1.entry-title { font-size: 35px; margin-top: 0; text-align: center; width: 100%; }
  .image-container { width: 200px; height: 200px; margin-top: -20px; }
}
/* Media queries para ajustar el tamaño de fuente en pantallas pequeñas */
@media (max-width: 768px) {
    #contactUsTitle {
        font-size: 24px;
    }
    .contact-item {
        font-size: 16px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    #contactList {
        grid-template-columns: 1fr; /* Una sola columna en móviles muy pequeños */
    }
}