/*
 * Bazze Paraguay - Estilos Premium
 * Desarrollado con CSS Vanilla para máxima velocidad, accesibilidad y SEO/GEO local.
 */

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

:root {
  --color-primary: #CC272B;      /* Rojo Bazze */
  --color-secondary: #93C145;    /* Verde Bazze */
  --color-accent: #F2944C;       /* Naranja Bazze */
  --color-cyan: #2AC4EA;         /* Azul Claro Salient */
  --color-text-dark: #231F20;    /* Negro/Gris Oscuro */
  --color-text-muted: #5e5e5e;   /* Gris Cuerpo */
  --color-bg-light: #f6f6f6;     /* Fondo Claro */
  --color-bg-white: #ffffff;
  --color-border: #e2e2e2;
  
  --font-body: 'Open Sans', 'Roboto', sans-serif;
  --font-heading: 'Roboto Slab', serif;
  
  --header-height: 125px;
  --header-height-shrunk: 80px;
  --container-max-width: 1245px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset y Estilos Globales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  background-color: var(--color-bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Componente: Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: var(--color-text-dark);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-white {
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
}

.btn-white:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Componente: Header (Navegación) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

/* Header Transparente solo para Home en desktop */
body.home-page header.transparent-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

body.home-page header.transparent-header .nav-links a {
  color: var(--color-bg-white);
}

body.home-page header.transparent-header .nav-links a:hover {
  color: var(--color-accent);
}

body.home-page header.transparent-header.shrunk {
  background-color: var(--color-bg-white);
  height: var(--header-height-shrunk);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

body.home-page header.transparent-header.shrunk .nav-links a {
  color: var(--color-text-dark);
}

body.home-page header.transparent-header.shrunk .nav-links a:hover {
  color: var(--color-primary);
}

/* Header regular encogido */
header.shrunk {
  height: var(--header-height-shrunk);
  box-shadow: var(--shadow-subtle);
}

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

header .logo img {
  height: 60px;
  width: auto;
  transition: var(--transition-normal);
}

header.shrunk .logo img {
  height: 45px;
}

header .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

header .nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

header .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-normal);
}

header .nav-links a:hover::after,
header .nav-links li.active a::after {
  width: 100%;
}

header .mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

header .mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--color-text-dark);
  margin-bottom: 5px;
  transition: var(--transition-normal);
}

header .mobile-menu-btn span:last-child {
  margin-bottom: 0;
}

body.home-page header.transparent-header .mobile-menu-btn span {
  background-color: var(--color-bg-white);
}

body.home-page header.transparent-header.shrunk .mobile-menu-btn span {
  background-color: var(--color-text-dark);
}

/* Mobile Slide-out Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow-premium);
  z-index: 1100;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-dark);
  line-height: 1;
}

.mobile-drawer .nav-links-mobile {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 1.5rem;
}

.mobile-drawer .nav-links-mobile a {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-bg-white);
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(35, 31, 32, 0.8) 0%, rgba(35, 31, 32, 0.4) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--color-bg-white);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Secciones Generales */
section {
  padding: 6rem 0;
}

.section-bg-light {
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4.5rem auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Grid de Tarjetas */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-bg-white);
  padding: 3rem 2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-subtle);
  border-top: 4px solid transparent;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-top-color: var(--color-primary);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: flex;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* Columnas de Texto e Imagen */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.split-text p {
  margin-bottom: 1.5rem;
}

.split-img img {
  border-radius: 4px;
  box-shadow: var(--shadow-medium);
}

/* Product Cards */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.product-item {
  background-color: var(--color-bg-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.product-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-item:hover .product-img img {
  transform: scale(1.05);
}

.product-info {
  padding: 2rem;
}

.product-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.product-info p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-trigger::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: var(--transition-normal);
}

.faq-item.active .faq-trigger::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 2rem;
  color: var(--color-text-muted);
}

.faq-item.active .faq-content {
  padding-bottom: 1.5rem;
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.contact-form-container {
  background-color: var(--color-bg-white);
  padding: 3.5rem;
  border-radius: 4px;
  box-shadow: var(--shadow-medium);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(204, 39, 43, 0.1);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.file-upload-wrapper {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  background-color: var(--color-bg-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.file-upload-wrapper:hover {
  border-color: var(--color-primary);
  background-color: rgba(204, 39, 43, 0.02);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.file-upload-text strong {
  color: var(--color-primary);
}

.file-name-display {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.info-block h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.info-block p {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-bg-light);
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  transform: translateY(-3px);
}

/* Stats Counter Section */
.stats-bar {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  color: var(--color-bg-white);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.stat-item p {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: #1a1718;
  color: #a3a3a3;
  padding: 5rem 0 2rem 0;
  border-top: 4px solid var(--color-primary);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--color-bg-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: #a3a3a3;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-bg-white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Modal Form Feedback */
.form-feedback {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
  font-weight: 600;
  text-align: center;
}

.form-feedback.success {
  background-color: rgba(147, 193, 69, 0.15);
  color: #558022;
  border: 1px solid #93C145;
  display: block;
}

.form-feedback.error {
  background-color: rgba(204, 39, 43, 0.1);
  color: #9c1c1f;
  border: 1px solid #CC272B;
  display: block;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 1000px) {
  header {
    height: 90px;
  }
  
  header .nav-links {
    display: none;
  }
  
  header .mobile-menu-btn {
    display: block;
  }
  
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .split-layout.reverse {
    direction: ltr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 690px) {
  section {
    padding: 4rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content p {
    font-size: 1.05rem;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .contact-form-container {
    padding: 2rem 1.5rem;
  }
}
