/* =========================================
   1. VARIABLES GLOBALES & RESETEO
   ========================================= */
:root {
  --primary-color: #0d2137;   /* Deep Navy */
  --accent-color: #d4af37;    /* Elegant Gold */
  --accent-hover: #b89628;
  --bg-light: #f8f9fa;
  --text-dark: #222222;
  --text-muted: #666666;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Contenedor & Títulos Globales */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 70;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 40px;
}

/* Botones Principales */
.btn-primary {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.logo-placeholder {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-placeholder span {
  color: var(--accent-color);
}

/* colores logo paginas del menu */

.log-placeholder{
   font-size: 1.8rem;
  font-weight: 700;
  
  letter-spacing: 1px;
  color: #1d0e51;
}
.log-placeholder span {
  color: var(--accent-color);
}
/* =========================================
   2. PRELOADER SCREEN
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1d2e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.loader-logo {
  max-width: 150px;
  height: auto;
}

.loader-phrase {
  color: #c99e66;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================
   3. HEADER, TOP BAR & NAVIGATION
   ========================================= */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.top-bar {
  background-color: #0d2137;
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 25px;
  background-color: (blue);
 
}

.navbar-logo-link {
  display: flex;
  align-items: center;
  margin-left: 25px;
}

.navbar-logo-img {
  height: 25px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  
}

.nav-links a {
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
 
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 5px;
  width: 220px;
  display: none;
  flex-direction: column;
  padding: 10px 0;
  z-index: 1001;
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--accent-color);
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* =========================================
   4. HERO SLIDER
   ========================================= */
.hero-slider {
  position: relative;
  height: clamp(450px, 75vh, 700px);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-text {
  position: relative;
  color: var(--white);
  text-align: center;
  max-width: 700px;
  padding: 20px;
}

.hero-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-text p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 25px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 5;
}

.slider-btn:hover {
  background: var(--accent-color);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* =========================================
   5. SERVICES & PROCESS SECTIONS
   ========================================= */
.services-highlight {
  background-color: var(--bg-light);
}

.services-grid, 
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card, 
.step {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

/* =========================================
   6. PRODUCTS & SHOWCASE GALERÍA
   ========================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.category-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.card-btn {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 2px;
}

.sub-products {
  background: var(--bg-light);
  padding: 15px 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-products span {
  background: var(--white);
  border: 1px solid #ddd;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 15px;
  color: var(--text-dark);
}

/* Showcase Gallery */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.showcase-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 280px;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.85));
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

/* =========================================
   7. REVIEWS, CONTACT & FOOTER
   ========================================= */
.reviews-section {
  background-color: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.review-card {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.google-icon {
  font-size: 1.8rem;
  color: #4285F4;
}

.stars {
  color: #f39c12;
  font-size: 0.85rem;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
}

.contact-info h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.info-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}



.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}




           


/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: var(--white);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  color: var(--white);
  margin-bottom: 10px;
}

/* =========================================
   8. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================= */
@media (max-width: 992px) {
  .top-bar-content {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 20px;
  }

  /* Menú desplegable móvil */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 0;
    display: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
    text-align: center;
    background: var(--bg-light);
  }

  .menu-toggle {
    display: block;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    padding: 10px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .navbar-logo-img {
    height: 45px;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}