/* ===================================
   VARIABLES & ROOT
   =================================== */
:root {
  /* Colors */
  --primary: #e21c19;
  --primary-dark: #e21c19;
  --primary-light: #e21c19;
  --secondary: #1a1a1a;
  --dark: #0d0d0d;
  --light: #f5f5f5;
  --white: #ffffff;
  --gray-100: #f8f8f8;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Typography */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --section-padding-mobile: 60px 0;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===================================
   RESET & BASE
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  padding: 15px 0;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  height: 50px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.brand-highlight {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.navbar.scrolled .brand-text {
  color: var(--secondary);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 8px 16px;
  margin: 0 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar.scrolled .nav-link {
  color: var(--gray-700);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-toggler {
  border: none;
  padding: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 26, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--secondary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url("/images/hero.jpg") center center / cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 168, 83, 0.2);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 24px;
  max-width: 700px;
}

.text-highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--white);
  animation: bounce 2s infinite;
}

.hero-scroll a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===================================
   SECTION COMMON STYLES
   =================================== */
.section-badge {
  display: inline-block;
  background: rgba(212, 168, 83, 0.15);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
  padding: var(--section-padding);
  background: var(--gray-100);
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card.featured {
  background: var(--secondary);
  border-color: var(--secondary);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
  color: var(--white);
}

.service-card.featured .service-icon {
  background: var(--primary);
  color: var(--secondary);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(212, 168, 83, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon i {
  font-size: 1.75rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.service-features li i {
  color: var(--primary);
}

.service-card.horizontal {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
}

.service-card.horizontal .service-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-card.horizontal .service-content h3 {
  margin-bottom: 8px;
}

.service-card.horizontal .service-content p {
  margin-bottom: 0;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
  padding: var(--section-padding);
  background: var(--white);
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  background: var(--gray-100);
  padding: 20px;
}

.about-badge {
  position: absolute;
  bottom: -30px;
  right: 30px;
  background: var(--primary);
  color: var(--secondary);
  padding: 20px 30px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge .years {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge .text {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content {
  padding-left: 40px;
}

.about-text {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item i {
  width: 40px;
  height: 40px;
  background: rgba(212, 168, 83, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.feature-item span {
  font-weight: 500;
  color: var(--gray-700);
}

/* ===================================
   PROCESS SECTION
   =================================== */
.process-section {
  padding: var(--section-padding);
  background: var(--secondary);
}

.process-section .section-badge {
  background: rgba(212, 168, 83, 0.2);
  color: var(--primary);
}

.process-section .section-title {
  color: var(--white);
}

.process-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.process-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.process-card h4 {
  color: var(--white);
  margin-bottom: 12px;
}

.process-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-section {
  padding: var(--section-padding);
  background: var(--gray-100);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  background: var(--gray-300);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

#galleryCarousel .carousel-control-prev {
  left: 20px;
}

#galleryCarousel .carousel-control-next {
  right: 20px;
}

#galleryCarousel .carousel-control-prev:hover,
#galleryCarousel .carousel-control-next:hover {
  background: var(--primary-dark);
}

#galleryCarousel .carousel-indicators {
  position: relative;
  margin-top: 30px;
}

#galleryCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-400);
  border: none;
  margin: 0 5px;
}

#galleryCarousel .carousel-indicators button.active {
  background: var(--primary);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  padding: var(--section-padding);
  background: var(--white);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateX(8px);
  border-color: var(--primary);
}

.contact-card .card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card .card-icon i {
  font-size: 1.4rem;
  color: var(--white);
}

.contact-card.whatsapp .card-icon {
  background: #25d366;
}

.contact-card.instagram .card-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-card.email .card-icon {
  background: var(--primary);
}

.contact-card.location .card-icon {
  background: var(--secondary);
}

.contact-card .card-content h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.contact-card .card-content p {
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 500;
  margin: 0;
}

.contact-card > i:last-child {
  margin-left: auto;
  color: var(--gray-400);
}

.contact-card:hover > i:last-child {
  color: var(--primary);
}

.contact-form-wrapper {
  background: var(--gray-100);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.contact-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-subtitle {
  color: var(--gray-500);
  margin-bottom: 30px;
}

.form-label {
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--secondary);
  padding: 50px 0 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-logo {
  height: 50px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
}

.footer-brand .brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}

.footer-brand .brand-highlight {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-tagline {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 30px 0 20px;
}

.footer-copyright,
.footer-credits {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin: 0;
}

.footer-credits a {
  color: var(--primary);
  font-weight: 600;
}

.footer-credits a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ===================================
   FLOATING BUTTONS
   =================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  color: var(--white);
}

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 15px;
    box-shadow: var(--shadow-md);
  }

  .navbar-nav .nav-link {
    color: var(--gray-700);
    padding: 12px 16px;
  }

  .navbar .btn-primary {
    width: 100%;
    margin-top: 10px;
  }

  .about-content {
    padding-left: 0;
    margin-top: 60px;
  }

  .footer-social {
    justify-content: center;
    margin-top: 20px;
  }

  .footer-contact {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    background-attachment: scroll;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .services-section,
  .about-section,
  .process-section,
  .gallery-section,
  .contact-section {
    padding: var(--section-padding-mobile);
  }

  .about-image img {
    height: 350px;
  }

  .about-badge {
    bottom: -20px;
    right: 20px;
    padding: 15px 20px;
  }

  .about-badge .years {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .gallery-item {
    aspect-ratio: 16 / 10;
  }

  #galleryCarousel .carousel-control-prev,
  #galleryCarousel .carousel-control-next {
    display: none;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .back-to-top {
    bottom: 85px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 575.98px) {
  .stat-item {
    width: calc(50% - 20px);
  }

  .process-card {
    padding: 24px 20px;
  }

  .process-number {
    font-size: 2.5rem;
  }
}



/* ============================================
   HERO - OCULTAR BADGE EN MOBILE
============================================ */
@media (max-width: 767px) {
  .hero-badge {
    display: none;
  }
}
