:root {
--primary: #3498db;
--primary-dark: #2980b9;
--secondary: #e74c3c;
--dark: #2c3e50;
--light: #ecf0f1;
--gray: #95a5a6;
--light-gray: #f8f9fa;
--dark-gray: #7f8c8d;
--white: #ffffff;
--black: #000000;
--nav-bg: rgba(43, 48, 49, 0.7);
--footer-bg: #2b3031;
--font-primary: 'Poppins', sans-serif;
--font-secondary: 'Playfair Display', serif;
--transition: all 0.3s ease;
--shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
--shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
--section-bg: #f9f9f9;
--card-bg: #ffffff;
--text-color: #333333;
}

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

body {
font-family: var(--font-primary);
color: var(--text-color);
line-height: 1.6;
overflow-x: hidden;
background-color: var(--light-gray);
background-image: 
  url('data:image/svg+xml;utf8,<svg xmlns="https://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="rgba(0,0,0,0.02)" d="M0 0h100v100H0z"/><path fill="none" stroke="rgba(0,0,0,0.05)" stroke-width="1" d="M0 0l100 100M0 100l100-100"/></svg>'),
  linear-gradient(to bottom, #ffffff, #f5f5f5);
background-size: 100px 100px, 100% 100%;
}

h1, h2, h3, h4, h5, h6 {
font-family: var(--font-secondary);
font-weight: 700;
line-height: 1.2;
color: var(--dark);
position: relative;
padding-bottom: 15px;
}

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

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

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

.navbar {
padding: 10px 0;
transition: var(--transition);
background-color: var(--nav-bg) !important;
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
}

.navbar.scrolled {
padding: 8px 0;
background-color: rgba(43, 48, 49, 0.9) !important;
}

.navbar-brand {
font-weight: 700;
font-size: 22px;
display: flex;
align-items: center;
}

.navbar-logo {
height: 90px;
width: auto;
margin-right: 15px;
transition: var(--transition);
}

.navbar.scrolled .navbar-logo {
height: 75px;
}

.brand-name {
color: var(--white);
}

.navbar .nav-link {
color: var(--white);
font-weight: 500;
padding: 8px 15px;
margin: 0 5px;
position: relative;
font-size: 0.95rem;
}

.navbar .nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 15px;
width: 0;
height: 2px;
background-color: var(--primary);
transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
width: calc(100% - 30px);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
color: var(--primary);
}

.hero-section {
height: 100vh;
min-height: 800px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
color: var(--white);
text-align: center;
overflow: hidden;
padding-top: 70px;
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(52, 152, 219, 0.2), rgba(231, 76, 60, 0.2));
z-index: 1;
}

.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
padding: 0 20px;
}

.hero-title {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 20px;
text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
color: var(--white);
}

.hero-subtitle {
font-size: 1.5rem;
margin-bottom: 40px;
font-weight: 400;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
color: var(--white);
}

.hero-buttons {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}

.btn-whatsapp {
background-color: rgba(37, 211, 102, 0.9);
border-color: rgba(37, 211, 102, 0.9);
color: white;
transition: var(--transition);
}

.btn-whatsapp:hover {
background-color: rgba(26, 180, 85, 0.9);
border-color: rgba(26, 180, 85, 0.9);
transform: translateY(-2px);
}

.btn-call {
background-color: rgba(231, 76, 60, 0.9);
border-color: rgba(231, 76, 60, 0.9);
color: white;
transition: var(--transition);
}

.btn-call:hover {
background-color: rgba(192, 57, 43, 0.9);
border-color: rgba(192, 57, 43, 0.9);
transform: translateY(-2px);
}

.btn-contact {
background-color: rgba(52, 152, 219, 0.9);
border-color: rgba(52, 152, 219, 0.9);
color: white;
transition: var(--transition);
}

.btn-contact:hover {
background-color: rgba(41, 128, 185, 0.9);
border-color: rgba(41, 128, 185, 0.9);
transform: translateY(-2px);
}

.call-btn {
transition: var(--transition);
}

.call-btn:hover {
color: var(--secondary) !important;
border-color: var(--secondary) !important;
}

.call-alert {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 9999;
padding: 20px 30px;
border-radius: 12px;
background: linear-gradient(135deg, #e74c3c, #c0392b);
color: white;
box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
border: none;
font-size: 1.2rem;
animation: fadeIn 0.3s ease;
display: none;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateX(-50%) translateY(20px); }
to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.call-alert .btn-close {
filter: brightness(0) invert(1);
opacity: 0.8;
margin-left: 15px;
}

.section-header {
text-align: center;
margin-bottom: 60px;
}

.section-subtitle {
display: block;
font-size: 1.1rem;
color: var(--primary);
margin-bottom: 10px;
font-weight: 500;
}

.section-title {
font-size: 2.5rem;
margin-bottom: 20px;
position: relative;
display: inline-block;
color: var(--dark);
opacity: 0;
animation: fadeInUp 1s ease forwards;
}

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

.section-title:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 3px;
background: var(--primary);
animation: expandLine 1s ease forwards 0.3s;
}

@keyframes expandLine {
from {
  width: 0;
  left: 50%;
}
to {
  width: 80px;
  left: 50%;
  transform: translateX(-50%);
}
}

.divider {
width: 60px;
height: 3px;
background-color: var(--primary);
margin: 0 auto 20px;
}

.product-card {
transition: var(--transition);
box-shadow: var(--shadow);
border: none;
border-radius: 12px;
overflow: hidden;
background: var(--white);
border: 1px solid rgba(0, 0, 0, 0.05);
cursor: pointer;
}

.product-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card img {
height: 250px;
width: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

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

.product-card .card-body {
padding: 1.5rem;
}

.product-card .card-title {
font-size: 1.4rem;
margin-bottom: 0.75rem;
color: var(--dark);
}

#productModal .modal-dialog {
max-width: 900px;
}

#productModal .carousel-inner {
border-radius: 10px;
overflow: hidden;
}

#productModal .carousel-item img {
height: 400px;
object-fit: cover;
}

.product-thumbnails {
display: flex;
gap: 10px;
}

.product-thumbnails img {
width: 80px;
height: 60px;
object-fit: cover;
border-radius: 5px;
cursor: pointer;
transition: var(--transition);
border: 2px solid transparent;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
border-color: var(--primary);
}

.phone-display {
display: inline-flex;
align-items: center;
padding: 0.5rem 1rem;
background-color: #f8f9fa;
border-radius: 0.375rem;
color: #212529;
font-weight: 500;
border: 1px solid #dee2e6;
pointer-events: none;
}

.phone-display i {
margin-right: 0.5rem;
color: #e74c3c;
}

.service-card {
background: white;
transition: var(--transition);
border: 1px solid rgba(0,0,0,0.05);
}

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

.service-icon {
width: 50px;
height: 50px;
background: rgba(52, 152, 219, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: var(--primary);
}

.about-content {
padding-left: 30px;
}

.about-content h3 {
font-size: 2rem;
margin-bottom: 20px;
color: var(--dark);
}

.about-content p {
margin-bottom: 20px;
color: var(--text-color);
font-size: 1.1rem;
line-height: 1.8;
}

.about-content p.lead {
font-size: 1.2rem;
font-weight: 500;
}

.about-features {
list-style: none;
margin-bottom: 30px;
}

.about-features li {
padding: 8px 0;
display: flex;
align-items: center;
gap: 10px;
font-size: 1.05rem;
}

#faq {
background-color: var(--section-bg);
background-image: linear-gradient(135deg, rgba(52,152,219,0.03) 0%, rgba(241,241,241,0.8) 100%);
}

.accordion-item {
border-radius: 8px !important;
overflow: hidden;
margin-bottom: 15px;
}

.accordion-button:not(.collapsed) {
background-color: rgba(52, 152, 219, 0.1);
color: var(--primary);
}

.accordion-button:focus {
box-shadow: none;
border-color: rgba(52, 152, 219, 0.25);
}

#contact {
position: relative;
overflow: hidden;
background-color: var(--section-bg);
background-image: linear-gradient(135deg, rgba(52,152,219,0.03) 0%, rgba(241,241,241,0.8) 100%);
}

.contact-card {
background: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
border: 1px solid rgba(0,0,0,0.03);
position: relative;
z-index: 1;
overflow: hidden;
}

.contact-card::before {
content: "";
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.03), transparent);
transform: rotate(45deg);
z-index: -1;
}

.contact-info h4 {
font-size: 1.5rem;
margin-bottom: 30px;
color: var(--dark);
}

.contact-item {
margin-bottom: 25px;
display: flex;
align-items: flex-start;
gap: 15px;
}

.contact-icon {
width: 40px;
height: 40px;
background-color: rgba(52, 152, 219, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: var(--primary);
flex-shrink: 0;
}

.contact-text h5 {
font-size: 1rem;
color: var(--dark-gray);
margin-bottom: 5px;
}

.contact-text a, .contact-text p {
color: var(--text-color);
transition: var(--transition);
}

.contact-text a:hover {
color: var(--primary);
text-decoration: none;
}

.social-links {
display: flex;
gap: 15px;
}

.social-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: var(--white);
transition: var(--transition);
}

.social-icon.whatsapp {
background-color: #25D366;
}

.social-icon.instagram {
background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.social-icon:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-hover);
}

.form-control, .form-select {
padding: 12px 15px;
border-radius: 8px;
border: 1px solid rgba(0, 0, 0, 0.1);
transition: var(--transition);
margin-bottom: 15px;
}

.form-control:focus, .form-select:focus {
border-color: var(--primary);
box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

textarea.form-control {
min-height: 120px;
}

footer {
background-color: var(--footer-bg);
color: var(--white);
padding: 20px 0;
}

.text-white-50 {
color: rgba(255, 255, 255, 0.7) !important;
}

.small {
font-size: 0.875rem;
}

.float-buttons {
position: fixed;
bottom: 30px;
right: 30px;
display: flex;
flex-direction: column;
gap: 15px;
z-index: 99;
}

.whatsapp-float {
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
transition: var(--transition);
color: var(--white);
position: relative;
background-color: #25d366;
}

.whatsapp-float:hover {
background-color: #128c7e;
transform: translateY(-5px) scale(1.1);
box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.instagram-float {
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
transition: var(--transition);
color: var(--white);
position: relative;
background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.instagram-float:hover {
transform: translateY(-5px) scale(1.1);
box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
}

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

.rounded-4 {
border-radius: 1rem !important;
}

.scroll-down {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
color: var(--white);
font-size: 24px;
z-index: 3;
animation: bounce 2s infinite;
cursor: pointer;
}

.scroll-down:hover {
color: var(--primary);
}

.hero-features {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 15px;
max-width: 800px;
margin: 0 auto 40px;
}

.feature-item {
background-color: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 50px;
padding: 12px 20px;
display: flex;
align-items: center;
gap: 10px;
transition: var(--transition);
color: var(--white);
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.feature-item:hover {
background-color: rgba(255, 255, 255, 0.3);
transform: translateY(-3px);
}

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

.feature-item span {
font-weight: 500;
font-size: 0.95rem;
}

@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
  transform: translateY(0) translateX(-50%);
}
40% {
  transform: translateY(-20px) translateX(-50%);
}
60% {
  transform: translateY(-10px) translateX(-50%);
}
}

@media (max-width: 991.98px) {
.navbar-logo {
  height: 80px;
}

.navbar.scrolled .navbar-logo {
  height: 70px;
}

.hero-title {
  font-size: 2.8rem;
}

.hero-subtitle {
  font-size: 1.2rem;
}

.section-title {
  font-size: 2rem;
}

.about-content {
  padding-left: 0;
  margin-top: 30px;
}
}

@media (max-width: 767.98px) {
.navbar-logo {
  height: 70px;
}

.navbar.scrolled .navbar-logo {
  height: 65px;
}

.section-title {
  font-size: 1.8rem;
}

.hero-section {
  min-height: 700px;
}

.hero-title {
  font-size: 2.2rem;
}

.hero-subtitle {
  font-size: 1.1rem;
}

.hero-buttons {
  flex-direction: column;
  gap: 15px;
}

.hero-buttons .btn {
  width: 100%;
}

.contact-item {
  flex-direction: column;
  align-items: flex-start;
}

#productModal .modal-dialog {
  margin: 0.5rem;
}

#productModal .modal-body .row {
  flex-direction: column;
}

#productModal .carousel-item img {
  height: 250px;
}
}

@media (max-width: 575.98px) {
.navbar-logo {
  height: 60px;
}

.navbar.scrolled .navbar-logo {
  height: 55px;
}

.section-title {
  font-size: 1.6rem;
}

.hero-title {
  font-size: 2rem;
}

.navbar-brand {
  font-size: 1rem;
}

.hero-features {
  flex-direction: column;
  align-items: center;
}

.feature-item {
  width: 100%;
  justify-content: center;
}

.float-buttons {
  bottom: 15px;
  right: 15px;
}

.whatsapp-float,
.instagram-float {
  width: 50px;
  height: 50px;
  font-size: 24px;
}
}

/* Ajustes para el navbar y logo */
.navbar {
  min-height: 70px; /* Reducimos la altura del navbar */
  padding: 5px 0; /* Menos padding vertical */
}

.navbar-logo {
  height: 80px; /* Aumentamos el tamaño del logo */
  width: auto;
  transition: var(--transition);
  margin-right: 10px; /* Menos espacio a la derecha */
}

.navbar.scrolled .navbar-logo {
  height: 70px; /* Tamaño cuando se hace scroll */
}

.navbar-brand {
  display: flex;
  align-items: center;
  height: 70px; /* Altura fija para el contenedor del logo */
}

.brand-name {
  font-size: 1.4rem; /* Tamaño de texto ajustado */
  white-space: nowrap;
}

.navbar .nav-link {
  padding: 8px 12px; /* Menos padding horizontal en los links */
  font-size: 0.9rem; /* Tamaño de fuente ligeramente más pequeño */
}

.navbar .navbar-toggler {
  margin-right: 0; /* Eliminar margen derecho del botón móvil */
}

/* Ajustes para dispositivos móviles */
@media (max-width: 991.98px) {
  .navbar-logo {
      height: 70px; /* Tamaño para móviles */
  }
  
  .navbar.scrolled .navbar-logo {
      height: 60px;
  }
  
  .brand-name {
      font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .navbar-logo {
      height: 60px;
  }
  
  .navbar.scrolled .navbar-logo {
      height: 50px;
  }
  
  .brand-name {
      font-size: 1rem;
  }
}

/* Alerta de llamada - Nuevo diseño */
.call-alert-container {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 9999;
  animation: slideInRight 0.4s ease;
  max-width: 280px;
  display: none;
}

.call-alert-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  border-left: 4px solid var(--primary);
}

.call-alert-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
}

.call-alert-icon {
  font-size: 24px;
  margin-right: 12px;
  color: var(--primary);
}

.call-alert-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark);
  flex-grow: 1;
}

.call-alert-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.call-alert-close:hover {
  color: var(--secondary);
}

.call-alert-body {
  padding: 15px;
  text-align: center;
  background: white;
}

.call-alert-phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.call-alert-phone:hover {
  color: var(--primary);
}

.call-alert-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

@keyframes slideInRight {
  from {
      opacity: 0;
      transform: translateX(20px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* Alerta de éxito - Nuevo diseño */
.custom-alert {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  padding: 20px;
  display: flex;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 350px;
  border-left: 4px solid;
}

.custom-alert-success {
  border-left-color: #2ecc71;
}

.custom-alert-icon {
  font-size: 28px;
  margin-right: 15px;
}

.custom-alert-success .custom-alert-icon {
  color: #2ecc71;
}

.custom-alert-content {
  flex-grow: 1;
}

.custom-alert-title {
  margin: 0 0 5px 0;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.custom-alert-message {
  margin: 0;
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.custom-alert-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 16px;
  margin-left: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.custom-alert-close:hover {
  color: var(--secondary);
}

@media (max-width: 767px) {
  .call-alert-container,
  .custom-alert {
      right: 15px;
      left: 15px;
      max-width: calc(100% - 30px);
  }
  
  .call-alert-container {
      top: 80px;
  }
}

/* Estilos para la alerta personalizada */
.custom-alert {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 20px;
  display: flex;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 350px;
  border-left: 5px solid;
}

.custom-alert-success {
  border-left-color: #2ecc71;
}

.custom-alert-error {
  border-left-color: #e74c3c;
}

.custom-alert-icon {
  font-size: 28px;
  margin-right: 15px;
}

.custom-alert-success .custom-alert-icon {
  color: #2ecc71;
}

.custom-alert-error .custom-alert-icon {
  color: #e74c3c;
}

.custom-alert-content {
  flex-grow: 1;
}

.custom-alert-title {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.custom-alert-message {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.custom-alert-close {
  background: none;
  border: none;
  color: #95a5a6;
  font-size: 16px;
  margin-left: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.custom-alert-close:hover {
  color: #e74c3c;
}

@media (max-width: 767px) {
  .custom-alert {
      right: 15px;
      left: 15px;
      max-width: none;
  }
}

/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
}