/* Header y Navegación */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-img {
  height: 70px;
  width: auto;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.main-nav ul {
  display: flex;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  font-weight: 600;
  position: relative;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.main-nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #333;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.language-selector {
  display: flex;
  align-items: center;
}

.language-selector a {
  margin: 0 5px;
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.language-selector a.active {
  color: #333;
  text-decoration: underline;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 20px;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  display: block;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu ul li a {
  font-weight: 600;
  display: block;
  padding: 10px 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.mobile-language-selector {
  margin-top: 20px;
  text-align: center;
}

/* Hero Section - Nuevo estilo minimalista */
.hero {
  background-color: #fff;
  padding: 100px 0 20px;
  margin-top: 70px;
  border-bottom: 1px solid #000;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
  color: #000;
}

.hero-button {
  background-color: #000;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.hero-button:hover {
  background-color: #333;
}

.breadcrumb {
  display: flex;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #666;
  margin: 0 5px;
}

.breadcrumb a:first-child {
  margin-left: 0;
}

.breadcrumb span {
  margin: 0 5px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.service-item {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.service-content p {
  color: #777;
  margin-bottom: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Portfolio Section */
.portfolio {
  padding: 80px 0;
  background-color: #f9f9f9;
  overflow: hidden; /* Asegura que no haya desbordamiento */
}

.portfolio .container {
  max-width: 100%; /* Hace que el contenedor ocupe todo el ancho */
  padding: 0; /* Elimina el padding para que las imágenes lleguen al borde */
}

.portfolio .section-header {
  padding: 0 20px; /* Añade padding solo al encabezado */
  margin-bottom: 30px;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px; /* Añade padding al filtro */
  margin-bottom: 30px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 20px;
  margin: 0 5px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 30px;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #333;
  color: #fff;
}

/* Modificado: Estilo masonry con tamaños irregulares - 4 columnas */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Tamaños de elementos - 4 columnas */
.portfolio-item.size-1x1 {
  width: 25%; /* Elemento estándar (1/4 del ancho) */
  aspect-ratio: 1 / 1;
}

.portfolio-item.size-2x1 {
  width: 50%; /* Elemento doble de ancho (1/2 del ancho) */
  aspect-ratio: 2 / 1;
}

.portfolio-item.size-1x2 {
  width: 25%; /* Ancho estándar pero doble de alto */
  aspect-ratio: 1 / 2;
}

.portfolio-item.size-2x2 {
  width: 50%; /* Elemento doble de ancho y alto */
  aspect-ratio: 1 / 1;
}

/* Nuevos tamaños para más flexibilidad */
.portfolio-item.size-3x1 {
  width: 75%; /* Elemento triple de ancho */
  aspect-ratio: 3 / 1;
}

.portfolio-item.size-3x2 {
  width: 75%; /* Elemento triple de ancho y doble de alto */
  aspect-ratio: 3 / 2;
}

.portfolio-item.size-4x1 {
  width: 100%; /* Elemento que ocupa todo el ancho */
  aspect-ratio: 4 / 1;
}

.portfolio-item.size-4x2 {
  width: 100%; /* Elemento que ocupa todo el ancho y doble de alto */
  aspect-ratio: 2 / 1;
}

@media (max-width: 1200px) {
  .portfolio-item.size-1x1,
  .portfolio-item.size-1x2 {
    width: 33.333%;
  }

  .portfolio-item.size-2x1,
  .portfolio-item.size-2x2 {
    width: 66.666%;
  }

  .portfolio-item.size-3x1,
  .portfolio-item.size-3x2,
  .portfolio-item.size-4x1,
  .portfolio-item.size-4x2 {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .portfolio-item.size-1x1,
  .portfolio-item.size-1x2 {
    width: 50%;
  }

  .portfolio-item.size-2x1,
  .portfolio-item.size-2x2,
  .portfolio-item.size-3x1,
  .portfolio-item.size-3x2,
  .portfolio-item.size-4x1,
  .portfolio-item.size-4x2 {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .portfolio-item.size-1x1,
  .portfolio-item.size-1x2,
  .portfolio-item.size-2x1,
  .portfolio-item.size-2x2,
  .portfolio-item.size-3x1,
  .portfolio-item.size-3x2,
  .portfolio-item.size-4x1,
  .portfolio-item.size-4x2 {
    width: 100%;
  }
  
  .logo-img {
      height: 50px;
      width: auto;
    }
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-links {
  display: flex;
  margin-bottom: 15px;
}

.portfolio-links a {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  color: #333;
  transition: all 0.3s ease;
}

.portfolio-links a:hover {
  background-color: #333;
  color: #fff;
}

.portfolio-info {
  text-align: center;
  color: #fff;
}

.portfolio-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

/* Testimonials Section */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial-item {
  background-color: #fff;
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  text-align: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 5px solid #f9f9f9;
}

.testimonial-content p {
  font-style: italic;
  color: #777;
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.testimonial-content h3 {
  margin-bottom: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.stars {
  color: #ffc107;
  margin-bottom: 10px;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.contact-info {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 5px;
}

.info-item {
  margin-bottom: 20px;
}

.info-item i {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.info-item h3 {
  margin-bottom: 5px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.info-item p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.social-links {
  display: flex;
  margin-top: 30px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.a2 {
  color: #1DA1F2; /* Azul típico de Twitter */
  background-color: #fff; /* si deseas cambiar fondo solo de ese ícono */
  border: 2px solid #1DA1F2;
}

.a2:hover {
  background-color: #1DA1F2;
  color: #fff;
}

.social-links a:hover {
  background-color: #555;
  transform: translateY(-3px);
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: block;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#form-message.success {
  background-color: #d4edda;
  color: #155724;
}

#form-message.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-info h3,
.footer-social h3,
.footer-nav h3 {
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
  padding-bottom: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.footer-info h3::after,
.footer-social h3::after,
.footer-nav h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: #fff;
  bottom: 0;
  left: 0;
}

.footer-info p {
  margin-bottom: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.footer-info p i {
  margin-right: 10px;
}

.footer-social .social-icons {
  display: flex;
}

.footer-social .social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-social .social-icons a:hover {
  background-color: #fff;
  color: #333;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: #fff;
  transition: all 0.3s ease;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.footer-nav ul li a:hover {
  color: #ddd;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Service Detail Page */
.service-detail {
  margin-top: 100px;
}

.service-header {
  text-align: center;
  margin-bottom: 40px;
}

.service-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.service-breadcrumb {
  display: flex;
  justify-content: center;
  color: #777;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.service-breadcrumb a {
  color: #333;
  margin: 0 5px;
}

.service-breadcrumb span {
  margin: 0 5px;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.service-main-image img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-description h3 {
  font-size: 28px;
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.service-description p {
  margin-bottom: 20px;
  color: #777;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.service-features {
  margin: 30px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.service-features h4 {
  margin-bottom: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.service-features ul li {
  margin-bottom: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.service-features ul li i {
  color: #333;
  margin-right: 10px;
}

.service-gallery {
  margin-bottom: 50px;
}

.service-gallery h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.related-services h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .service-content {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .services-grid,
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .testimonials-slider {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-item {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 16px;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-button {
    margin-top: 20px;
  }
}

@media (max-width: 576px) {
  .services-grid,
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
  }

  .breadcrumb {
    flex-wrap: wrap;
  }

  .btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}





/* Process Steps Styling */
.process-steps {
    margin: 60px 0;
}

.process-steps h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.steps-container {
    display: flex;
    flex-direction: column; /* Cambio principal: los pasos siempre estarán en columna */
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.step-number {
    background-color: #f5f5f5;
    color: #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.step-content p {
    margin: 0;
    line-height: 1.6;
}

/* FAQ Styling - Mantenemos igual ya que ya es responsive */
.faq-section {
    margin: 60px 0;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #f9f9f9;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

/* Ajustes adicionales para responsividad en dispositivos muy pequeños */
@media (max-width: 480px) {
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
    
    .faq-question h4 {
        font-size: 16px;
    }
}
