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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Colores Paraguay */
:root {
  --paraguay-red: #e30613;
  --paraguay-blue: #012677;
  --paraguay-white: #FFFFFF;
  --dark-gray: #2c2c31;
  --light-gray: #f8f9fa;
  --accent-color: #005bc5;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--paraguay-blue), #005bc5);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

/* Alto fijo del contenido del header */
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 72px;
}

.logoimg img {
  height: 72px;
  max-height: calc(72px - 8px);
  width: auto;
  display: block;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.header-contact {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-contact a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.header-contact a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero {
  position: relative;
  margin-top: 72px;
  background: #fff;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 85%;
  height: auto;
  display: block;
}

/* CTA centrado sobre la imagen */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--paraguay-blue);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}

/* Responsive */
@media (max-width:768px) {
  .header-content {
    height: 64px;
  }

  .logoimg img {
    height: 48px;
  }

  .cta-button {
    padding: 12px 22px;
    font-size: 1rem;
  }
}

/* Carrusel – contenedor y título */
.product-carousel {
  margin: 24px auto 60px;
  max-width: 1200px;
  padding: 0 1rem;
}

.carousel-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: 1rem;
}

/* Tarjeta – partes internas */
.product-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f6f7f9;
}

.product-info-mini {
  padding: 10px 12px 14px;
  display: grid;
  gap: 6px;
}

.product-name {
  font-size: .95rem;
  font-weight: 700;
  color: #2c2c2c;
  line-height: 1.2;
  min-height: 2.3em;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--paraguay-blue);
}

/* Viewport */
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

/* Track en FLEX */
.carousel-track {
  display: flex;
  gap: 16px;
  padding: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
  will-change: scroll-position;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Cada card con ancho fijo */
.product-card-mini {
  flex: 0 0 auto;
  width: 280px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.carousel-btn {
  display: none;
}

/* Responsive del ancho de tarjeta */
@media (max-width: 1024px) {
  .product-card-mini {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .product-card-mini {
    width: 220px;
  }
}

@media (max-width: 520px) {
  .product-card-mini {
    width: 85vw;
  }
}

/* Servicios */
.services {
  padding: 80px 0;
  background: var(--light-gray);
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border-top: 4px solid var(--paraguay-red);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--paraguay-blue);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

/* Responsive para móviles - 3 columnas */
@media (max-width: 768px) {
  .services {
    padding: 40px 0;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .service-card {
    padding: 1rem 0.5rem;
    border-radius: 10px;
  }

  .service-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .service-card h3 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .service-card p {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}
.section-title-CONTAC {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .services-grid {
    gap: 0.5rem;
  }

  .service-card {
    padding: 0.8rem 0.4rem;
    border-radius: 8px;
  }

  .service-icon {
    font-size: 1.5rem;
  }

  .service-card h3 {
    font-size: 0.7rem;
  }

  .service-card p {
    font-size: 0.6rem;
  }
}

/* Ventajas */
.advantages {
  padding: 80px 0;
  background: white;
}

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

.advantage-item {
  text-align: center;
  padding: 2rem;
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--paraguay-red);
  margin-bottom: 1rem;
}

.advantage-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

/* Contacto */
.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 10px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--paraguay-blue);
  margin-right: 1rem;
  width: 30px;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--paraguay-blue);
}

.submit-btn {
  background: var(--paraguay-blue);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.submit-btn:hover {
  background: var(--paraguay-red);
}

/* Mapa */
.map-section {
  padding: 60px 0;
  background: var(--dark-gray);
  color: white;
  text-align: center;
}

.map-container {
  margin-top: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  aspect-ratio: 21/9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 1.8rem;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.whatsapp-float:hover {
  background: #128c7e;
  color: white;
}

/* Footer */
footer {
  background: var(--dark-gray);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .header-contact {
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== NAV unificada ===== */
.main-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .45rem .9rem;
  border-radius: 999px;
  opacity: .95;
  transition: background .2s, opacity .2s;
}

.main-nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .12);
}

.main-nav a.active {
  background: rgba(255, 255, 255, .22);
}

/* Responsive: apilar si el header se comprime */
@media (max-width: 768px) {
  .header-content {
    gap: .5rem;
  }

  .main-nav a {
    padding: .35rem .7rem;
    font-weight: 600;
  }
}

/* ====== HEADER UNIFICADO (INDEX) ====== */
.site-header {
  background: var(--paraguay-blue);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.site-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
}

.header-left nav {
  display: flex;
  gap: 2rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav {
  gap: 10px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .45rem .9rem;
  border-radius: 999px;
  opacity: .95;
  transition: background .2s, opacity .2s;
}

.main-nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .12);
}

.main-nav a.active {
  background: rgba(255, 255, 255, .22);
}

.header-actions a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: .95;
  padding: .35rem .6rem;
  border-radius: 10px;
  transition: background .2s, opacity .2s;
}

.header-actions a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .12);
}

/* Compensación del header fijo */
.hero,
main,
.content {
  margin-top: 72px;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .header-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 12px;
    height: auto;
    min-height: 64px;
  }

  .header-left {
    width: 100%;
  }

  .header-left nav {
    justify-content: center;
    gap: 1rem;
  }

  .main-nav a {
    padding: .4rem .8rem;
    font-weight: 700;
    font-size: 0.9rem;
  }

  .header-right {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .header-actions a {
    padding: .3rem .5rem;
    font-size: 0.85rem;
  }
}

/* ===== SECCIÓN DE CATEGORÍAS - NUEVO DISEÑO ===== */
.home-categories {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.home-categories .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-categories .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
  font-weight: 400;
}

/* Grid de categorías */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  max-height: none;
  overflow: visible;
  transition: max-height 0.5s ease;
}

.cat-grid[data-collapsed="true"] {
  max-height: 800px;
  overflow: hidden;
}

/* Tarjeta de categoría */
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.cat-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #f0f0f0;
}

.cat-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-thumb img {
  transform: scale(1.1);
}

.cat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cat-card:hover .cat-overlay {
  opacity: 1;
}

.cat-info {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.cat-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.cat-arrow {
  font-size: 1.5rem;
  color: #007bff;
  font-weight: 600;
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-arrow {
  transform: translateX(5px);
}

/* Botón toggle */
.cat-toggle-container {
  text-align: center;
  margin-top: 50px;
}

#toggleCats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#toggleCats:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

#toggleCats:active {
  transform: translateY(0);
}

.btn-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}

#toggleCats[aria-expanded="true"] .btn-icon {
  transform: rotate(180deg);
}

/* Responsive - Categorías */
@media (max-width: 1200px) {
  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .home-categories {
    padding: 60px 0;
  }

  .home-categories .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 35px;
  }

  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }

  .cat-grid[data-collapsed="true"] {
    max-height: 600px;
  }

  .cat-info {
    padding: 14px;
  }

  .cat-name {
    font-size: 0.95rem;
  }

  .cat-arrow {
    font-size: 1.2rem;
  }

  #toggleCats {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .home-categories .section-title {
    font-size: 1.75rem;
  }
}

/* Ocultar categorías después de la 8va cuando está colapsado */
.cat-grid[data-collapsed="true"] .cat-card:nth-child(n+9) {
  display: none;
}