/* Estilos Generales */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  
  --primary: #6e6ef1;
  --primary-dark: #FFA000;
  --dark: #1E1E1E;
  --darker: #121212;
  --light: #F5F5F5;
  --gray: #2D2D2D;
  --light-gray: #E0E0E0;
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Contenedores principales */
.main-container,
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-container {
  color: black;
  background-color: white;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: var(--shadow-sm);
  min-width: 200px;
  margin: 10px;
}

.btn-primary,
.btn-secondary {
  background-color: var(--secondary-color);
  color: black;
  font-weight: bold;
  border: 2px solid white;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: white;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-accent {
  background-color: #e74c3c;
  color: white;
  background-image: linear-gradient(to bottom, #e74c3c, #c0392b);
}

.btn-accent:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-success {
  background-color: #2ecc71;
  color: white;
  background-image: linear-gradient(to bottom, #2ecc71, #27ae60);
}

.btn-success:hover {
  background-color: #27ae60;
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-lg {
  padding: 20px 40px;
  font-size: 1.2rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Secciones */
.section-title {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
  text-align: center;
  scroll-margin-top: 200px;
  padding-top: 50px;
  color: var(--primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
}

.section-light {
  background-color: white;
  padding: 5rem 0;
}

.section-dark {
  background-color: white;
  color: black;
  padding: 5rem 0;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  max-width: 600px;
  padding: 0 2rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.slider-prev, .slider-next {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
  opacity: 1;
  transform: scale(1.2);
}


/* Noticias y Promociones */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.image-container {
  width: 100%;
  height: 200px; /* Altura reducida */
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mantiene proporción dentro del contenedor */
  max-width: 100%;
  max-height: 100%;
}

.news-content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  color: var(--dark);
  text-align: center;
}

.news-date {
  font-size: var(--text-sm);
  color: #666;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.product-description {
  color: #555;
  margin-bottom: var(--space-md);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.news-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: black;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 2;
}

.news-card.promo .news-badge {
  background: #C41E3A;
  color: white;
}

.news-card.event .news-badge {
  background: #4CAF50;
  color: white;
}

.news-card.highlight .news-badge {
  background: #FFA000;
  color: white;
}

.product-features {
  margin: var(--space-md) 0;
  padding: var(--space-sm);
  background-color: #FFF9E6;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.product-features h4 {
  color: #C41E3A;
  margin-bottom: var(--space-sm);
  text-align: center;
  font-size: 1.1rem;
}

.product-features ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.product-features li {
  padding: 3px 0;
  color: #555;
  text-align: left;
  font-size: 0.9rem;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
  text-align: center;
  width: 100%;
  margin-top: var(--space-md);
  font-size: 0.95rem;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

.price-highlight {
  color: #C41E3A;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Términos y condiciones en tarjetas */
.terms-conditions {
  margin: var(--space-sm) 0;
  padding: var(--space-sm);
  background-color: #f8f9fa;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary-color);
}

.terms-conditions h4 {
  color: var(--secondary-color);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.terms-conditions ul {
  padding-left: var(--space-sm);
}

.terms-conditions li {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 4px;
  position: relative;
  padding-left: var(--space-sm);
}

.terms-conditions li:before {
  content: "•";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
}

/* Sección de noticias con encuesta */
.encuesta-full-card {
  background: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
  color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(26, 35, 126, 0.3);
  margin-bottom: 30px;
}

.encuesta-header {
  padding: 30px 30px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.encuesta-badge {
  background: linear-gradient(135deg, #ff4081 0%, #ff6b6b 100%);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}

.encuesta-badge i {
  margin-right: 8px;
}

.encuesta-header h2 {
  color: white;
  margin: 10px 0;
  font-size: 2rem;
}

.encuesta-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.encuesta-content {
  padding: 30px;
}

.encuesta-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.encuesta-btn-small {
  display: inline-block;
  background: linear-gradient(135deg, #ff4081 0%, #ff6b6b 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  margin-top: var(--space-md);
  transition: all 0.3s ease;
}

.encuesta-btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

/* Sección de encuesta en tarjeta pequeña */
.news-card.highlight {
  border: 2px solid #FFA000;
}

/* Servicios */
.services-tabs {
  margin-top: 3rem;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 12px 24px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
  color: black;
}

.tab-btn.active {
  background-color: var(--secondary-color);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: black;
}

.service-info p {
  margin-bottom: 1.5rem;
  color: rgba(0, 0, 0, 0.9);
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: black;
}

.feature i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.service-materials {
  margin: 2rem 0;
}

.service-materials h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: black;
}

.service-materials ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.service-materials li {
  position: relative;
  padding-left: 1.2rem;
  color: rgba(0, 0, 0, 0.9);
}

.service-materials li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.service-gallery {
  position: relative;
}

.gallery-main {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 300px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-thumbs img {
  height: 80px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-thumbs img:hover {
  border-color: var(--secondary-color);
}

/* Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  height: 200px; /* Altura reducida */
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-details {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  display: inline-block;
  padding: 3px 8px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-details h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-details p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  flex: 1;
}

/* Testimonios */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
}

.testimonial {
  display: none;
  animation: fadeIn 0.5s ease;
}

.testimonial.active {
  display: block;
}

.testimonial-content {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  color: black;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: rgba(0, 0, 0, 0.9);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
}

.author-info h4 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.author-info span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.3rem;
}

.rating {
  color: var(--warning-color);
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-dots {
  display: flex;
  gap: 10px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background-color: white;
}

.testimonial-prev, .testimonial-next {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.testimonial-prev:hover, .testimonial-next:hover {
  opacity: 1;
}

/* Cotizar */
.quote-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.quote-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: white;
  color: var(--text-color);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-submit {
  text-align: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.quote-info {
  color: var(--text-color);
}

.quote-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.quote-info ul {
  margin: 1.5rem 0;
}

.quote-info li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.quote-info i {
  color: var(--secondary-color);
  margin-top: 3px;
}

.quote-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.benefit-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.benefit-item h4 {
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* WhatsApp Alert */
.whatsapp-alert {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-alert-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.whatsapp-alert-content i {
  font-size: 2.5rem;
}

.whatsapp-alert-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.whatsapp-alert-content p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  width: 100%;
}

.btn-whatsapp-large:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-form-container {
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ */
.faq-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  color: black;
  background-color: white;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  color: black;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: black;
  background-color: #f8f9fa;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1rem;
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  color: black;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
  background-color: white;
}

.faq-answer p, .faq-answer ul {
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.9);
}

.faq-answer ul {
  margin-left: 1rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.faq-answer li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.faq-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Contacto */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-card i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-top: 5px;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.contact-card p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.contact-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.map-container {
  margin-top: 3rem;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.footer-column p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column ul a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p:first-child {
  margin-bottom: 0.5rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

/* Header y navegación */
#header {
  background-color: white;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--dark-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-links a:hover {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--secondary-color);
}

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 0.5rem 0;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  padding: 0.75rem 1rem;
  width: 100%;
  justify-content: flex-start;
}

.submenu-icon {
  font-size: 0.8rem;
  margin-left: auto;
}

.menu-title {
  display: none;
  font-weight: 700;
  color: var(--secondary-color);
  padding: 1rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1rem;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
  .service-detail,
  .quote-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .main-container, 
  .section-container {
    padding: 0 15px;
    width: 100%;
  }

  .hero {
    height: 80vh;
  }

  .hero-content {
    padding: 0 15px;
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .hero-buttons a {
    width: 100%;
    max-width: none;
  }

  .hero-slider-controls {
    bottom: 20px;
    width: 100%;
    justify-content: center;
  }

  /* Header responsive */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    align-items: flex-start;
    gap: 0;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-title {
    display: block;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-links a {
    padding: 1rem;
    width: 100%;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .has-submenu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding-left: 1rem;
    display: none;
  }

  .has-submenu.active .submenu {
    display: block;
  }

  .submenu-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
  }

  .has-submenu.active .submenu-icon {
    transform: rotate(180deg);
  }

  /* Otros ajustes */
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .service-features {
    grid-template-columns: 1fr;
  }
  
  .faq-container {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-content {
    padding: 1.5rem;
  }

  .image-container {
    height: 180px;
  }

  .project-image {
    height: 180px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }

  .image-container {
    height: 150px;
  }

  .project-image {
    height: 150px;
  }

  .news-content {
    padding: 1rem;
  }

  .news-content h3 {
    font-size: 1.1rem;
  }
}