/* ================ VARIABLES CSS ================ */
:root {
  /* Colores principales según especificaciones */
  --primary-color: #FFFFFF; /* Blanco */
  --secondary-color: #FFD700; /* Amarillo Security */
  
  /* Colores complementarios */
  --black-color: #000000;
  --dark-gray-color: #333333;
  --light-gray-color: #F5F5F5;
  --blue-security-color: #1E3A8A;
  
  /* Colores de estado */
  --success-color: #10B981;
  --error-color: #EF4444;
  --warning-color: #F59E0B;
  
  /* Tipografía */
  --body-font: 'Open Sans', sans-serif;
  --title-font: 'Montserrat', sans-serif;
  
  /* Pesos de fuente */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Tamaños */
  --biggest-font-size: 3rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Pesos */
  --weight-300: 300;
  --weight-400: 400;
  --weight-500: 500;
  --weight-600: 600;
  --weight-700: 700;
  
  /* Espaciados */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  --mb-4: 4rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Sombras */
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transiciones */
  --transition: all 0.3s ease;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --biggest-font-size: 2rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.875rem;
    --small-font-size: 0.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--weight-400);
  background-color: var(--primary-color);
  color: var(--black-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--title-font);
  font-weight: var(--weight-600);
  line-height: 1.2;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea, select {
  border: none;
  outline: none;
}

/* ================ REUSABLE CSS CLASSES ================ */
.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mb-1);
  padding-right: var(--mb-1);
}

.section {
  padding: var(--mb-4) 0;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--black-color);
  text-align: center;
  margin-bottom: var(--mb-1);
}

.section__subtitle {
  text-align: center;
  color: var(--dark-gray-color);
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-3);
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-4);
}

/* ================ BUTTONS ================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mb-0-5);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: var(--weight-500);
  font-size: var(--normal-font-size);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

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

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

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

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

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.btn--small {
  padding: 0.75rem 1.5rem;
  font-size: var(--small-font-size);
}

/* ================ HEADER & NAVIGATION ================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  box-shadow: var(--shadow-light);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--mb-0-75);
}

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

.nav__logo-text {
  font-family: var(--title-font);
  font-weight: var(--weight-700);
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--mb-2);
}

.nav__item {
  position: relative;
}

.nav__link {
  color: var(--black-color);
  font-weight: var(--weight-500);
  padding: var(--mb-0-5) 0;
  transition: var(--transition);
}

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

.nav__link i {
  margin-left: var(--mb-0-25);
  font-size: var(--small-font-size);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  box-shadow: var(--shadow-medium);
  border-radius: 0.5rem;
  padding: var(--mb-1) 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: var(--z-modal);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--mb-0-75) var(--mb-1);
  color: var(--black-color);
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: var(--light-gray-color);
  color: var(--secondary-color);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--mb-1);
}

.nav__quote {
  background-color: var(--secondary-color);
  color: var(--black-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--weight-600);
  transition: var(--transition);
}

.nav__quote:hover {
  background-color: #E6C200;
  transform: translateY(-2px);
}

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

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

/* ================ HERO SECTION ================ */
.hero {
  padding-top: calc(5rem + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-gray-color) 100%);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-4);
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--mb-2);
}

.hero__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--weight-700);
  color: var(--black-color);
  line-height: 1.1;
}

.hero__description {
  font-size: 1.2rem;
  color: var(--dark-gray-color);
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mb-1);
  margin-bottom: var(--mb-2);
}

.hero__btn {
  flex: 1;
  min-width: 250px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mb-2);
  margin-top: var(--mb-2);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  color: var(--dark-gray-color);
  font-weight: var(--weight-500);
}

.feature i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.hero__image {
  position: relative;
}

.hero__img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-heavy);
}

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

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-4);
  align-items: center;
}

.about__image {
  position: relative;
}

.about__img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-medium);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--mb-1-5);
}

.about__description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--dark-gray-color);
}

.about__stats {
  display: flex;
  justify-content: space-between;
  gap: var(--mb-2);
  margin: var(--mb-2) 0;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: var(--weight-700);
  color: var(--secondary-color);
  font-family: var(--title-font);
}

.stat__text {
  font-size: var(--small-font-size);
  color: var(--dark-gray-color);
  font-weight: var(--weight-500);
}

/* ================ SERVICES SECTION ================ */
.services__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--mb-2-5);
}

.service__card {
  background-color: var(--primary-color);
  padding: var(--mb-2-5);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.service__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--secondary-color);
}

.service__icon {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1-5);
  font-size: 2rem;
  color: var(--black-color);
}

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

.service__description {
  color: var(--dark-gray-color);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
}

.service__link {
  color: var(--secondary-color);
  font-weight: var(--weight-600);
  display: inline-flex;
  align-items: center;
  gap: var(--mb-0-5);
  transition: var(--transition);
}

.service__link:hover {
  gap: var(--mb-1);
}

.service__link i {
  font-size: var(--small-font-size);
}

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

.featured-products__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--mb-2-5);
  margin-bottom: var(--mb-3);
}

.product__card {
  background-color: var(--primary-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.product__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.product__image {
  position: relative;
  overflow: hidden;
}

.product__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.product__badge {
  position: absolute;
  top: var(--mb-1);
  left: var(--mb-1);
  padding: var(--mb-0-25) var(--mb-0-75);
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--weight-600);
  text-transform: uppercase;
}

.badge--residencial {
  background-color: #10B981;
  color: white;
}

.badge--comercial {
  background-color: var(--blue-security-color);
  color: white;
}

.badge--industrial {
  background-color: var(--error-color);
  color: white;
}

.product__content {
  padding: var(--mb-1-5);
}

.product__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-75);
  color: var(--black-color);
}

.product__description {
  color: var(--dark-gray-color);
  margin-bottom: var(--mb-1);
  line-height: 1.5;
}

.product__price {
  font-size: 1.25rem;
  font-weight: var(--weight-700);
  color: var(--secondary-color);
  margin-bottom: var(--mb-1);
}

.featured-products__actions {
  text-align: center;
}

/* ================ TESTIMONIALS SECTION ================ */
.testimonials__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--mb-2-5);
}

.testimonial__card {
  background-color: var(--primary-color);
  padding: var(--mb-2-5);
  border-radius: 1rem;
  box-shadow: var(--shadow-light);
  border: 2px solid transparent;
  transition: var(--transition);
}

.testimonial__card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-3px);
}

.testimonial__content {
  margin-bottom: var(--mb-1-5);
}

.testimonial__text {
  font-style: italic;
  color: var(--dark-gray-color);
  line-height: 1.6;
  font-size: 1.1rem;
}

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

.testimonial__info {
  display: flex;
  flex-direction: column;
  gap: var(--mb-0-25);
}

.testimonial__name {
  font-weight: var(--weight-600);
  color: var(--black-color);
  font-size: var(--normal-font-size);
}

.testimonial__role {
  color: var(--dark-gray-color);
  font-size: var(--small-font-size);
}

.testimonial__rating {
  display: flex;
  gap: var(--mb-0-25);
  color: var(--secondary-color);
}

/* ================ CTA SECTION ================ */
.cta {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #E6C200 100%);
  color: var(--black-color);
}

.cta__container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--weight-700);
}

.cta__description {
  font-size: 1.2rem;
  margin-bottom: var(--mb-2-5);
  line-height: 1.6;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--mb-1);
  margin-bottom: var(--mb-2-5);
}

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

.cta__buttons .btn--primary:hover {
  background-color: var(--dark-gray-color);
}

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

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

.cta__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--mb-2);
}

.cta__feature {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  font-weight: var(--weight-600);
}

.cta__feature i {
  font-size: 1.2rem;
}

/* ================ FOOTER ================ */
.footer {
  background-color: var(--black-color);
  color: var(--primary-color);
  padding: var(--mb-4) 0 var(--mb-1);
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: var(--mb-3);
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--mb-0-75);
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  width: 40px;
  height: 40px;
}

.footer__logo-text {
  font-family: var(--title-font);
  font-weight: var(--weight-700);
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.footer__description {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: var(--mb-1-5);
}

.footer__social {
  display: flex;
  gap: var(--mb-1);
}

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

.footer__social-link:hover {
  background-color: #E6C200;
  transform: translateY(-3px);
}

.footer__title {
  color: var(--secondary-color);
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1-5);
  font-weight: var(--weight-600);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--mb-0-75);
}

.footer__link {
  color: #cccccc;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--secondary-color);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--mb-0-75);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--mb-0-75);
  color: #cccccc;
}

.footer__contact-item i {
  color: var(--secondary-color);
  width: 20px;
}

.footer__contact-item a {
  color: #cccccc;
  transition: var(--transition);
}

.footer__contact-item a:hover {
  color: var(--secondary-color);
}

.footer__schedule {
  margin-top: var(--mb-1);
  color: #cccccc;
  line-height: 1.5;
}

.footer__bottom {
  border-top: 1px solid #333333;
  padding-top: var(--mb-1-5);
}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--mb-1);
}

.footer__copyright {
  color: #cccccc;
  font-size: var(--small-font-size);
}

.footer__bottom-links {
  display: flex;
  gap: var(--mb-1-5);
  flex-wrap: wrap;
}

.footer__bottom-link {
  color: #cccccc;
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.footer__bottom-link:hover {
  color: var(--secondary-color);
}

/* ================ WHATSAPP FLOAT ================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-tooltip);
}

.whatsapp-float__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float__link:hover {
  transform: scale(1.1);
  background-color: #20B358;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ================ BACK TO TOP ================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--black-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: var(--z-tooltip);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #E6C200;
  transform: translateY(-3px);
}

/* ================ RESPONSIVE DESIGN ================ */

/* Para tablets */
@media screen and (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--mb-3);
  }
  
  .about__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--mb-3);
  }
  
  .about__stats {
    justify-content: center;
  }
  
  .hero__features {
    justify-content: center;
  }
  
  .cta__features {
    justify-content: center;
  }
}

/* Para móviles */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    z-index: var(--z-modal);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--mb-1-5);
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: block;
  }
  
  .nav__toggle {
    display: block;
  }
  
  .nav__actions {
    display: none;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--light-gray-color);
    margin-top: var(--mb-0-5);
    border-radius: 0.5rem;
  }
  
  .hero {
    padding-top: calc(5rem + 1rem);
    text-align: center;
  }
  
  .hero__title {
    font-size: var(--h1-font-size);
  }
  
  .hero__description {
    font-size: var(--normal-font-size);
  }
  
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero__btn {
    min-width: 100%;
    max-width: 300px;
  }
  
  .hero__features {
    flex-direction: column;
    align-items: center;
  }
  
  .about__stats {
    flex-direction: column;
    gap: var(--mb-1);
  }
  
  .featured-products__container {
    grid-template-columns: 1fr;
  }
  
  .services__container {
    grid-template-columns: 1fr;
  }
  
  .testimonials__container {
    grid-template-columns: 1fr;
  }
  
  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta__buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .cta__features {
    flex-direction: column;
    align-items: center;
  }
  
  .footer__bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer__bottom-links {
    justify-content: center;
  }
  
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }
  
  .whatsapp-float__link {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .back-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* Para móviles pequeños */
@media screen and (max-width: 480px) {
  .container {
    padding-left: var(--mb-0-75);
    padding-right: var(--mb-0-75);
  }
  
  .section {
    padding: var(--mb-3) 0;
  }
  
  .hero {
    padding-top: calc(5rem + 0.5rem);
  }
  
  .hero__title {
    font-size: 1.75rem;
  }
  
  .service__card,
  .product__card,
  .testimonial__card {
    padding: var(--mb-1-5);
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--mb-2);
  }
}