/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #1a1a1a;
  --secondary-color: #ffffff;
  --accent-color: #d4af37;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #f8f9fa;
  --border-color: #e9ecef;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  
  /* Font Sizes */
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 1.75rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 800;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 1rem;
  --element-margin: 2rem;
  
  /* Border Radius */
  --border-radius: 0.5rem;
  --border-radius-large: 1rem;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 768px) {
  :root {
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --section-padding: 3rem 0;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--primary-color);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

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

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: var(--h2-font-size);
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  position: relative;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section__description {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 26, 26, 0.3);
}

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

.btn--secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

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

.btn--outline:hover {
  background: var(--accent-color);
  color: var(--secondary-color);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--secondary-color);
}

.btn--whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: var(--z-fixed);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.header.scroll-header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px var(--shadow-color);
}

.nav {
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  position: relative;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--accent-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-accent);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: var(--h1-font-size);
  font-family: var(--font-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__title--accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-black);
  color: var(--accent-color);
  font-family: var(--font-secondary);
}

.hero__stat-text {
  font-size: var(--small-font-size);
  color: var(--text-light);
  font-weight: var(--font-medium);
}

.hero__image-container {
  position: relative;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero__image-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-medium);
  color: var(--primary-color);
}

.hero__image-badge i {
  color: #22c55e;
}

/* ===== PRODUCTS SECTION ===== */
.products {
  background: var(--secondary-color);
}

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

.product__card {
  background: var(--secondary-color);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
}

.product__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product__image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.product__card:hover .product__image img {
  transform: scale(1.05);
}

.product__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product__card:hover .product__overlay {
  opacity: 1;
}

.product__content {
  padding: 1.5rem;
}

.product__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product__description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product__features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product__feature {
  background: var(--background-color);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--background-color);
}

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

.about__text {
  margin-bottom: 2rem;
}

.about__text p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.about__features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary-color);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--shadow-color);
  font-weight: var(--font-medium);
  color: var(--primary-color);
}

.about__feature i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.about__image {
  position: relative;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about__image-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(212, 175, 55, 0.95);
  backdrop-filter: blur(10px);
  color: var(--secondary-color);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-medium);
}

/* ===== DIFFERENTIALS SECTION ===== */
.differentials {
  background: var(--secondary-color);
}

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

.differential__card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--background-color);
  border-radius: var(--border-radius-large);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.differential__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.differential__icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--secondary-color);
}

.differential__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.differential__description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== CLIENTS SECTION ===== */
.clients {
  background: var(--background-color);
}

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

.client__card {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
}

.client__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.client__logo {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  transition: var(--transition);
}

.client__card:hover .client__logo {
  filter: grayscale(0%);
}

.segments__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.segments__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.segment__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--secondary-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--shadow-color);
  font-weight: var(--font-medium);
  color: var(--primary-color);
  transition: var(--transition);
}

.segment__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.segment__item i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--secondary-color);
}

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

.service__card {
  background: var(--background-color);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
}

.service__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service__image {
  height: 200px;
  overflow: hidden;
}

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

.service__card:hover .service__image img {
  transform: scale(1.05);
}

.service__content {
  padding: 2rem;
}

.service__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service__description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service__benefits {
  margin-bottom: 2rem;
}

.service__benefits li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.service__benefits i {
  color: #22c55e;
  font-size: 0.875rem;
}

/* ===== PROCESS SECTION ===== */
.process {
  background: var(--background-color);
}

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

.process__step {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
}

.process__number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  font-family: var(--font-secondary);
}

.process__content {
  background: var(--secondary-color);
  padding: 3rem 1.5rem 2rem;
  border-radius: var(--border-radius-large);
  box-shadow: 0 5px 20px var(--shadow-color);
  transition: var(--transition);
}

.process__step:hover .process__content {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.process__icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.process__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.process__description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta {
  background: var(--gradient-primary);
  color: var(--secondary-color);
}

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

.cta__title {
  font-size: var(--h2-font-size);
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.cta__description {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.cta__form {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: var(--normal-font-size);
  transition: var(--transition);
  background: var(--secondary-color);
  color: var(--text-color);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.cta__alternative {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.cta__alternative span {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--background-color);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.contact__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact__text {
  color: var(--text-light);
  line-height: 1.6;
}

.contact__text a {
  color: var(--accent-color);
  font-weight: var(--font-medium);
}

.contact__text a:hover {
  text-decoration: underline;
}

.contact__map {
  background: var(--secondary-color);
  border-radius: var(--border-radius-large);
  box-shadow: 0 5px 20px var(--shadow-color);
  overflow: hidden;
}

.map__placeholder {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.map__placeholder i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.map__placeholder p {
  font-size: var(--h3-font-size);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 3rem 0 1rem;
}

.footer__container {
  margin-bottom: 2rem;
}

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

.footer__logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--accent-color);
}

.footer__contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact i {
  color: var(--accent-color);
  width: 16px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.footer__legal {
  display: flex;
  gap: 1rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__legal a:hover {
  color: var(--accent-color);
}

/* ===== FLOATING ELEMENTS ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: var(--z-tooltip);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.2);
  z-index: var(--z-tooltip);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

.scroll-top.show-scroll {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(26, 26, 26, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1024px) {
  .hero__container,
  .about__container,
  .cta__container,
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero__image {
    order: -1;
  }
  
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .products__grid,
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .differentials__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .process__timeline {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--secondary-color);
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
    z-index: var(--z-modal);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav__link {
    font-size: 1.2rem;
  }
  
  .nav__close,
  .nav__toggle {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
  
  .nav__actions .btn {
    display: none;
  }
  
  .hero {
    padding-top: 6rem;
    text-align: center;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .products__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .differentials__grid {
    grid-template-columns: 1fr;
  }
  
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .segments__list {
    grid-template-columns: 1fr;
  }
  
  .process__timeline {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .scroll-top {
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .clients__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: fadeInUp 1s ease-out;
  }
  
  .hero__description {
    animation: fadeInUp 1s ease-out 0.2s both;
  }
  
  .hero__actions {
    animation: fadeInUp 1s ease-out 0.4s both;
  }
  
  .hero__stats {
    animation: fadeInUp 1s ease-out 0.6s both;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav__link:focus,
.form__input:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #000000;
  }
}

