    img {
      width: 100%;
    }

    a, i, p, h2, address {
      text-decoration: none;
      color: #fff;
    }

    a, i, address {
       font-size: 1.2em;
    }

    body {
      display: flex;
      flex-direction: column;
    }

    header {
      display: flex;
      flex-wrap: wrap;
      background-color: #000;
      align-items: center;
      padding: 40px 20px;
      gap: 20px;
      border-radius: 10px 10px 0 0;
      text-align: center;
    }

    header figure {
      margin: 0;
      width: 300px;
      height: auto;
      flex-shrink: 0;
    }

    header figure img {
      width: 100%;
      height: auto;
      display: block;
      margin-left: 5%;
    }   
 
    .head {
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: center;
      align-items: center; 
      margin-left: 2%;
      text-shadow: 2px 2px 5px #FFD700;
    }

    header h1 {
      color: #fff;
      margin: 0;
      font-size: 3.5rem;
      padding: 2%;
      

    }

    main {
      background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(../../imag_serv/loren4.jpg);
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      width: 100%;   
      min-height: auto; 
      padding-bottom: 0;
      margin-bottom: 0;
      flex: 1;
    }

    main section {
      display: flex;
      flex-wrap: wrap; 
      justify-content: center;
      align-items: stretch;
      gap: 20px;
      padding: 20px;
      margin-bottom: 0;
    }

    main section figure ,
    main section p {
      flex: 1 1 300px; 
      max-width: 32%;
      height: 300px;
      box-shadow: 1px 1px 5px #fff;
      border-radius: 10px;
      overflow: hidden;
      min-width: 300px;
    }

    main section img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    main section p {
      background-color: #ffffff88;
      color: #8B5E3C;
      padding: 10px;
      display: flex;
      height: 280px;
      align-items: center;
      justify-content: center;
      text-align: center;
      line-height: 1.5;
    }

    main article figure img{
      height: 600px;
      border-radius: 10px;
      margin-bottom: 20px;
      box-shadow: 1px 1px 5px #fff;
    }

    .contact-button {
      background-color: #f00;
      color: #fff;
      padding: 10px 20px;
      text-decoration: none;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 15px;
      margin-bottom: 20px;
      font-size: 16px;
      transition: background-color 0.3s ease;
      box-shadow: 1px 1px 1px #fff;
    }

    .contact-button:hover {
        background-color: #FFD700;
        color: #000;
    }

    .service-item {
        text-align: center;
        padding: 10px;
        flex: 1 1 100px;
        max-width: 150px;
    }

    .service-item i {
        font-size: 2.5rem;
        color: #fff;
        margin-bottom: 10px;
    }

    .about-me {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        margin: 20px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .about-me img {
        width: 150px;
        margin-bottom: 20px;
    }

    .about-text {
        text-align: center;
    }

    .contact {
        text-align: center;
        padding: 20px;
        margin: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-top: 0;
    }

    .contact i {
        margin-right: 10px;
    }

    footer {
      background-color: #000;
      margin-top: 0;
      padding-top: 0;
      border-radius: 0 0 10px 10px;
    }

    footer address {
      margin-bottom: 2%;
    }

    .btn-subir {
      position: fixed;
      bottom: 20px;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      border: none;
      color: white;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 999;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
      transition: background-color 0.3s ease, opacity 0.4s ease, transform 0.3s ease;
    }

    .btn-subir {
      right: 20px;
      background: linear-gradient(90deg, #c0c0c0 0%, #e0f7f4 50%, #b2dfec 100%);
      opacity: 0;
      color: #f00;
    }

    .btn-subir.visible {
      opacity: 1;
      transform: scale(1.1);
    }

    .btn-subir:hover {
      background: linear-gradient(90deg, #fff 0%, #e0f7f4 50%, #ffdfff 100%);
      color: #000;
    }

    @media (max-width: 768px) {
       header {
         flex-direction: column;
         align-items: center;
         text-align: center;
       }

       header h1 {
         font-size: 2.2rem;
       }

       main section figure,
       main section p {
         flex: 1 1 100%;
         max-width: 100%;
         padding: 1%;
       }

       .contact-button {
         width: 90%;
       }

       .about-me, .contact {
         margin: 10px 5px;
       }
     }