
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      scroll-behavior: smooth;
    }

    html {
      scroll-padding-top: 70px;
    }

    body {
      font-family: 'Segoe UI', sans-serif;
    }

    header {
      background-color: #000;
      color: white;
      padding: 1rem 2rem;
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .header-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      gap: 1rem;
    }

    /* Logo y texto juntos */
    .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      color: white;
    }

    .logo img {
      height: 40px;
    }

    .logo span {
      font-weight: bold;
      font-size: 1.1rem;
    }

    /* Botón menú hamburguesa al final, visible solo en móvil */
    .menu-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
      background: none;
      border: none;
      color: white;
      font-size: 1.5rem;
      z-index: 1010;
      gap: 4px;
    }

    .menu-toggle span {
      height: 3px;
      width: 25px;
      background: white;
      border-radius: 2px;
      display: block;
    }

    /* Mostramos botón hamburguesa solo en móviles */
    @media (max-width: 768px) {
      nav.desktop-menu {
        display: none;
      }

      .menu-toggle {
        display: flex;
      }
    }

    /* Menú móvil desplegable */
    .mobile-menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      right: 0;
      background-color: #000;
      width: 200px;
      padding: 1rem;
      border-radius: 0 0 0 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      z-index: 1005;
    }

    .mobile-menu.show {
      display: flex;
    }

    .mobile-menu ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .mobile-menu ul li a {
      color: white;
      text-decoration: none;
      font-weight: 500;
    }

    .mobile-menu ul li a:hover {
      text-decoration: underline;
    }

    /* Menú desktop */
    nav.desktop-menu ul {
      list-style: none;
      display: flex;
      gap: 2rem;
    }

    nav.desktop-menu ul li a {
      color: white;
      text-decoration: none;
      font-weight: 500;
    }

    nav.desktop-menu ul li a:hover {
      text-decoration: underline;
    }

    section {
      padding: 2rem 2rem;
      min-height: 100vh;
    }

    #inicio {
      background-image: url("inicio4.png");
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      color: white;
    }

    .inicio-container {
      max-width: 600px;
      margin: 0 auto 0 2rem;
      padding: 4rem 2rem;
      text-align: center;
    }

    .inicio-container h1 {
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
    }

    .inicio-container p {
      margin-bottom: 1.5rem;
      line-height: 1.6;
      font-size: 1.1rem;
      color: white;
    }

    .contact-btn {
      display: block;
      margin: 2rem auto 0;
      padding: 0.75rem 1.5rem;
      background-color: #942c20;
      color: white;
      border-radius: 4px;
      font-weight: bold;
      text-decoration: none;
      width: fit-content;
      cursor: pointer;
      transition: background-color 0.3s ease;
      border: none;
    }

    .contact-btn:hover {
      background-color: #c04133;
    }
    #about {
      background-color: #ffffff;
    }

    .about-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      padding: 4rem 2rem;
      max-width: 1200px;
      margin: 0 auto;
      flex-wrap: wrap;
    }

    .carousel {
      flex: 1;
      position: relative;
      height: 500px;
      overflow: hidden;
      border-radius: 8px;
      min-width: 300px;
    }

    .carousel img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }

    .carousel img.active {
      opacity: 1;
    }

    .about-text {
      flex: 1;
      min-width: 300px;
    }

    #servicios{
      background-color: #efefef;
      text-align: center;
    }

.services-container {
  display: flex;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  padding: 2rem 2rem;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 400px;
  border: none; /* quitamos borde exterior */
  border-collapse: collapse;
}


.service-item {
  display: flex;
  flex-direction: column;      /* para que icono y subtitulo queden vertical */
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  font-size: 2rem;
  color: #555;
  cursor: pointer;
  transition: background-color 0.4s ease, color 0.4s ease;
  padding: 1rem;
  border-radius: 0;            /* sin bordes redondeados por defecto */
}

.service-subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: inherit;              /* hereda color del ítem */
}

/* Cuando está activo */
.service-item.active {
  background-color: #d32f2f;
  color: white;       /* bordes redondeados en activo */
}

/* Bordes redondeados solo en las esquinas exteriores cuando está activo */
.service-item.active:nth-child(1) {
  border-top-left-radius: 12px;
}

.service-item.active:nth-child(2) {
  border-top-right-radius: 12px;
}

.service-item.active:nth-child(3) {
  border-bottom-left-radius: 12px;
}

.service-item.active:nth-child(4) {
  border-bottom-right-radius: 12px;
}


/* Mostrar solo bordes interiores */
.service-item:nth-child(1) {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.service-item:nth-child(2) {
  border-left: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.service-item:nth-child(3) {
  border-right: 1px solid #ccc;
  border-top: 1px solid #ccc;
}

.service-item:nth-child(4) {
  border-left: 1px solid #ccc;
  border-top: 1px solid #ccc;
}
/* Estilo cuando está activo */
.service-item.active {
  background-color: #d32f2f;
  color: white;
}


.service-description {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  margin-left: 2rem;
  padding: 1rem;
  border-left: 2px solid #ccc;
}

.service-description h3 {
  color: #d32f2f;
  margin-bottom: 1rem;
  text-align: left;
}

.service-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}
@media (max-width: 768px) {
  .service-description {
    border-left: none;
    border-top: 2px solid #ccc;
    margin-left: 0;
    margin-top: 1.5rem;
  }
  }



    #contacto {
      background-color: #ffffff;
      text-align: center;
    }

    .contact-container {
      display: flex;
      gap: 3rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
      align-items: flex-start;
    }

    .contact-form {
      flex: 1;
      display: flex;
      max-width: 700px;
      flex-direction: column;
      gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
      padding: 0.5rem;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 4px;
      resize: vertical;
    }

    .contact-info {
      width: 300px;
      display: flex;
      flex-direction: column;
      gap: 2rem;
      color: #333;
    }

    .contact-info h3 {
      margin-bottom: 0.5rem;
      color: #d32f2f;
    }

    .section-separator {
      width: 150px;
      height: 2px;
      background-color: #aaa;
      margin: 1rem auto;
      border-radius: 1px;
    }

    footer {
      background-color: #000;
      color: white;
      text-align: center;
      padding: 2rem;
    }

    /* Responsividad */

    @media (max-width: 768px) {
      .header-container {
        gap: 1rem;
      }

      nav.desktop-menu {
        display: none;
      }

      .menu-toggle {
        display: flex;
      }

      .inicio-container {
        margin-left: 1rem;
        max-width: 90%;
        padding: 2rem 1rem;
        text-align: center;
      }

      .about-container {
        flex-direction: column;
        padding: 2rem 1rem;
      }

      .carousel {
        min-height: 300px;
        height: 300px;
        width: 100%;
        position: relative;
      }

      .carousel img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
      }

      .carousel img.active {
        opacity: 1;
      }

      .about-text {
        min-width: auto;
        margin-top: 1rem;
        text-align: center;
      }

      #contacto {
        padding: 2rem 1rem;
      }

      .contact-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
      }

      .contact-form {
        max-width: 100%;
        width: 100%;
      }

      .contact-info {
        width: 100%;
      }

      .contact-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
      }
    }

    section h2 {
      color: #d32f2f;
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 1rem;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .about-text p {
      font-size: 1.1rem;
      line-height: 1.7;
      color: #333333; /* Gris oscuro para mejor lectura */
      margin-top: 1rem;
      margin-bottom: 1.25rem;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      text-align: justify;
    }

    .about-text {
      max-width: 600px;
    }