.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
}

header {
    position: fixed;            
    top: 0;                    
    left: 0;                    
    width: 97%;               
    background-color: #2d75a7;
    color: white;
    padding: 0rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;      
}

header.scrolled {
  background-color: #145491;
  transition: background-color 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

.logo-img {
  height: 50px;
  transition: height 0.3s ease;
}

.logo-small {
  height: 35px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 450;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color:#2d75a7;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

.footer {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.3em;
  text-decoration: none;
}

.social-icons a:hover {
  color:#2d75a7;
}

.proveedores {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
}

.proveedores span {
  font-weight: bold;
  margin-bottom: 5px;
}

.proveedores a {
  display: inline-block;
  margin: 0 10px;
}

.proveedor-logo {
  height: 40px;
  width: auto;
  filter: brightness(0.3) invert(1);
  transition: transform 0.5s;
}

.proveedor-logo:hover {
  transform: scale(1.3);
  filter: brightness(1);
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  padding: 10px;
  z-index: 1000;
  text-decoration: none;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.whatsapp-icon {
  font-size: 35px;
}

.inicio-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fefefe;
}

.inicio-titulo {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2d75a7;
  margin-bottom: 20px;
  text-align: center;
}

.inicio-titulo::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #54a7c5;;
  margin: 10px auto 0;
  border-radius: 2px;
}

.inicio-texto {
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-align: justify;
}

@media (max-width: 600px) {
  .inicio-titulo {
    font-size: 2rem;
  }

  .inicio-texto {
    font-size: 1rem;
  }
}

.slider-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.slider-titulo {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #54a7c5;
}

.slider-card {
  background-color: #f5f5f5;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.slider-card h3 {
  font-size: 1.5rem;
  color: #2e2e2e;
}

.slider-card p {
  font-size: 1rem;
  color: #555;
}

.ubicacion-section {
  padding: 50px 20px;
  background-color: #f7f7f7;
  text-align: center;
}

.ubicacion-titulo {
  font-size: 2rem;
  color: #2d75a7;
  margin-bottom: 30px;
}

.ubicacion-mapa {
  width: 100%;
  max-width: 900px;
  height: 400px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.servicios-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background-color: #e8f4ff;
  padding: 60px 20px;
}

.servicios-container2 {
  max-width: 80%;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.servicios-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInTop 1s ease forwards;
  opacity: 0;
  transform: translateY(-30px);
}

.servicios-titulo {
  font-size: 2.5rem;
  color: #2d75a7;
  margin-bottom: 10px;
}

.servicios-descripcion {
  font-size: 1.1rem;
  margin: 0 auto;
  color: #555;
  line-height: 1.6;
}


.servicio-item {
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.servicio-item.invertido {
  flex-direction: row-reverse;
}

.servicio-item:hover {
  transform: translateY(0px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.servicio-img-wrapper {
  flex: 1;
  transition: transform 0.3s ease;
}

.servicio-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.servicio-texto {
  flex: 1;
  text-align: left;
}

.servicio-texto h2 {
  font-size: 1.8rem;
  color: #6ec0f9;
  margin-bottom: 10px;
}

.servicio-linea {
  width: 80%;
  height: 4px;
  background-color:#7ad7e5;
  border: none;
  border-radius: 2px;
  margin-bottom: 20px;
}

.servicio-texto p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
}

.servicio-link {
  display: inline-block;
  color: #2d75a7;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #2d75a7;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.servicio-link:hover {
  background-color:#2d75a7;
  color: white;
}

@media (max-width: 768px) {
  .servicio-item {
    flex-direction: column !important;
    text-align: center;
  }

  .servicio-texto {
    text-align: center;
  }

  .servicio-linea {
    margin-left: auto;
    margin-right: auto;
  }

  .servicios-titulo {
    font-size: 2.0rem;
    color: #2d75a7;
    margin-bottom: 10px;
  }
}

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

@keyframes fadeInTop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inicio-texto-wrapper {
  flex: 1;
  min-width: 300px;
}

.inicio-parrafos {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  max-width: 700px;
}

.inicio-parrafos p {
  margin-bottom: 15px;
}

.inicio-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: #2d75a7;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.inicio-btn:hover {
  background-color:#145491;
  transform: scale(1.05);
}

.inicio-imagen-wrapper {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.inicio-imagen-wrapper img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .inicio-parrafos {
    font-size: 1rem;
  }
}

.galeria-section {
  padding: 60px 20px;
  background-color: #f3f7f4;
  text-align: center;
}

.galeria-titulo {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #2d75a7;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.galeria-item {
  overflow: hidden;
  border-radius: 10px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(20px);
  opacity: 0;
  animation: aparecer 0.7s ease forwards;
}

.galeria-item figure {
  margin: 0;
}

.galeria-item img {
  width: 100%;
  height: 263px;
  transition: transform 0.4s ease;
  display: block;
}

.galeria-item:hover img {
  transform: scale(1.08);
}

.galeria-item figcaption {
  padding: 12px;
  font-weight: 500;
  font-size: 1rem;
  color: #444;
  background-color: #fefefe;
}

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

.titulo-destacado {
  font-size: 2.6rem;
  color: #2d75a7;
  text-align: center;
  margin-bottom: 30px;
  animation: aparecerTitulo 1s ease forwards;
  opacity: 0;
  transform: scale(0.95);
}

.titulo-destacado span {
  position: relative;
  display: inline-block;
}

.titulo-destacado span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background-color: #7ad7e5;
  border-radius: 4px;
  z-index: -1;
}



@keyframes aparecerTitulo {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #e74c3c;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.2s ease, color 0.3s;
}

.like-button:hover {
  transform: scale(1.1);
  color: #c0392b;
}

.like-button .material-icons {
  font-size: 20px;
}

.like-button.liked {
  color: #999;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color:#145491;
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.4s ease, bottom 0.4s ease;
  pointer-events: none;
  z-index: 9999;
}

.toast.active {
  opacity: 1;
  bottom: 50px;
}



.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel {
  position: relative;
  max-width: 100%;
  height: 760px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel-slide img {
  object-fit: cover;
}

.carousel-text {
  position: absolute;
  top: 590px;
  background: rgb(18 21 22 / 70%);
  color: white;
  padding: 10px;
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(45,117,167,0.6);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.carousel-btn:hover {
  background-color: rgba(20,84,145,0.8);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.carousel-dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.carousel-dots span {
  display: inline-block;
  height: 12px;
  width: 12px;
  background-color: #bbb;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots .active {
  background-color: #2d75a7;
}


.car-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px;
  margin: auto;
}

.car-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.car-item.invertido {
  flex-direction: row-reverse;
}

.car-img-wrapper {
  flex: 1 1 65%;
}

.car-img {
  width: 100%;
/*  height: auto;*/
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 15px;
}

.car-texto {
  flex: 1 1 60%;
}

.car-linea {
  border: none;
  border-top: 2px solid #555;
  width: 50px;
  margin: 10px auto;
}

.car-link {
  margin-top: 10px;
  color: #007BFF;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.car-link:hover {
  text-decoration: underline;
}

.car-img {
  transition: transform 0.3s ease;
}

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

.car-texto h2 {
  background: linear-gradient(to right, #007BFF, #00c3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; 
  color: transparent;
  margin-bottom: 10px;
}

.car-descripcion{
  text-align: justify;
}

.car-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #007BFF;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.car-link:hover::after {
  transform: scaleX(1);
}

@media screen and (max-width: 768px) {
  .car-item {
    flex-direction: column !important;
    text-align: center;
  }

  .car-texto {
    padding-top: 10px;
  }
}

@media screen and (max-width: 1024px) {
  .car-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .car-section {
    grid-template-columns: 1fr;
  }
}


#menu-btn {
  display: none;
}

#overlay{
  display: none;
}


@media screen and (max-width: 768px) {
  
  #menu-btn {
    display: flex;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    position: fixed;
    top: 3px;
    right: 20px;
    z-index: 1001;
  }


  #nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background-color: #2d75a7;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  #nav-menu.active {
    right: 0;
  }

  #nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
  }

  #overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  #overlay.active {
    display: block;
  }
}

form {
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
  resize: vertical;
  transition: border 0.3s ease;
}

form input:focus,
form textarea:focus {
  border-color: #2d75a7;
  outline: none;
}

form button {
  padding: 0.75rem 1.5rem;
  background-color: #2d75a7;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #145491;
}

/* ✅ Responsive design */
@media screen and (max-width: 768px) {
  form {
    padding: 1.5rem;
  }

  form input,
  form textarea {
    font-size: 0.95rem;
  }

  form button {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  form {
    padding: 1rem;
  }

  form label {
    font-size: 0.95rem;
  }
}

/* Estilo para mensaje de éxito */
.form-success-message {
  max-width: 600px;
  margin: 1rem auto;
  padding: 1rem;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s ease-out;
  display: none;
}

/* Animación suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de salida */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-5px);
  }
}

.contact-section {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Formulario ocupa más espacio que ubicación */
  gap: 2rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
}

.form-container,
.office-info {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
  margin-bottom: 1rem;
  color: #2d75a7;
}

.contact-section label {
  font-weight: bold;
  margin-top: 1rem;
  display: block;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease;
}

.contact-section input:focus,
.contact-section textarea:focus {
  border-color: #2d75a7;
  outline: none;
}

.contact-section button {
  margin-top: 1.5rem;
  background-color: #2d75a7;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-section button:hover {
  background-color: #145491;
}

.office-info p {
  margin: 0.5rem 0;
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

/* 📱 Responsive: pilas verticales en móviles */
@media screen and (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

.office-info {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  animation: fadeInInfo 0.6s ease-out;
}

.office-info h2,
.office-info h3 {
  color: #2d75a7;
  margin-bottom: 0.5rem;
}

.office-info p {
  margin: 0.5rem 0;
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

.office-info .contact-data {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

.office-info .contact-data a {
  font-size: 1.05rem;
}

.office-info a {
  color: #007BFF;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.office-info a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 🎬 Animación de entrada */
@keyframes fadeInInfo {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-loading {
  text-align: center;
  font-size: 1.2em;
  color: #0073e6;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-loading {
  text-align: center;
  font-size: 1.2em;
  color: #0073e6;
  margin-top: 20px;
}

.spinner {
  margin: 0 auto 10px;
  width: 40px;
  height: 40px;
  border: 5px solid #cce4ff;
  border-top: 5px solid #0073e6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid #fff;
  border-top: 2px solid #0073e6;
  border-radius: 50%;
  animation: spinBtn 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spinBtn {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Sección principal */
.product-section {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

/* Contenedor horizontal de paneles */
.acordeon-horizontal {
  display: flex;
  transition: all 0.3s ease;
  justify-content: center;
}

/* Panel individual */
.panel {
  background: #dbd4d4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: flex 0.4s ease;
  display: flex;
  flex-direction: row;
  min-height: 350px;
}

/* Botón de toggle */
.toggle {
  display: flex;
  align-items: center;
  background: #2d75a7;
  color: #fff;
  border: none;
  padding: 16px;
  cursor: pointer;
  font-size: 1rem;
  gap: 16px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle:hover {
  background: #145491;
}

/* Contenido del panel */
.content {
  display: none;
  padding: 16px;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  flex-grow: 1;
}

.panel.active .content {
  display: block;
}

/* Texto vertical */
.span-products {
  writing-mode: sideways-lr;
  text-orientation: upright;
  display: inline-block;
  font-size: 1.2rem;
  padding: 8px;
}

/* Lista de productos */
.lista-productos {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
  text-align: left;
}

.lista-productos li {
  padding: 8px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed #ccc;
}

.lista-productos li:last-child {
  border-bottom: none;
}

/* Colores por categoría */
.prefabricados i { color: #8B4513; }
.acrilicos i { color: #FF69B4; }
.asfalticos i { color: #333333; }
.poliuretanos i { color: #4B0082; }
.repelentes i { color: #1E90FF; }
.cementosos i { color: #708090; }

/* 📱 Media Query para pantallas pequeñas */
@media (max-width: 1679px) {
   .acordeon-horizontal {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .panel {
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0px;
  }

  .panel.active {
    flex: 1 1 auto;
  }

  .toggle {
    width: 100%;
    justify-content: space-between;
  }

  .span-products {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 1rem;
    padding: 4px;
  }
}

@media (max-width: 768px) {
  .acordeon-horizontal {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .panel {
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0px;
  }

  .panel.active {
    flex: 1 1 auto;
  }

  .toggle {
    width: 100%;
    justify-content: space-between;
  }

  .span-products {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    font-size: 1rem;
    padding: 4px;
  }
}


.benefits-section {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.benefits-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

.benefits-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Permite que se acomoden en móviles */
}

.benefit-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  width: 300px;
  transition: transform 0.3s ease;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-card i {
  font-size: 2em;
  color: #0078D7;
  margin-bottom: 10px;
}

.benefit-card h3 {
  font-size: 1.2em;
  color: #0078D7;
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.5;
}


.brands-section {
  background: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.brands-section h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #2c3e50;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.brand-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  max-height: 175px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: center;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.brand-card i {
  font-size: 2rem;
  color: #2d75a7;
  margin-bottom: 10px;
}

.brand-card span {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}


.services-section {
  background: #eef2f7;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.services-section h2 {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.intro-text {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.service-card i {
  font-size: 2.5rem;
  color: #2d75a7;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95em;
  color: #666;
}


.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.text {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
  max-width: 60%;
}

.text h2 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
}

.text p {
  font-size: 1.5rem;
  margin: 0;
}

/* Botones */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Dots */
.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: white;
}