

    /* ====== IMAGEN GRANDE ====== */
    .img-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.9);
        z-index: 10000;
        align-items: center;
        justify-content: center;
    }

    .img-modal img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
    }

    .img-close {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }


    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: Arial, Helvetica, sans-serif;
    }

    body {
        background-color: #c9c2c2;
        color: #333;
        /*line-height: 1.6;*/
    }

    /*body {
    background:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.45)
        ),
        url("Imagenes/crital.jpg");

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;

        color: #c23232;
        line-height: 1.6;
    }*/


    header {
        background-color: #2c2c2c;
        color: #fff;
        padding: 20px 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    /*section {
        padding: 40px 40px;
        max-width: 1100px;
        margin: auto;
        margin-top: 0px;
        margin-bottom: 0;
    }*/

    /*section {
    padding: 40px 40px;
    width: 100%;
    max-width: none;
    margin: 0;
    }*/

    section h2 {
        text-align: center;
        margin-bottom: 15px;
        font-size: 32px;
    }

    .services {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 30px;
    }

    .service {
        background-color: #fff; /*background de las tarjetas*/
        padding: 30px;
        padding: 20px;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    .service h3 {
        margin-bottom: 15px;
        font-size: 20px;
    }

    .img {
        margin-bottom: 5px;
    }

    .about {
        background-color: #f5f0f0;
        border-radius: 6px;
        padding: 25px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 0px;
        margin-top: 0px;
    }

    /*
    .contact-form {
        background-color: #fff;
        padding: 40px;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .contact-form form {
        display: grid;
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

    .contact-form button {
        background-color: #2c2c2c;
        color: #fff;
        border: none;
        padding: 12px;
        font-size: 16px;
        cursor: pointer;
    }

    .contact-form button:hover {
        background-color: #444;
    }
    */

    #contacto {
        padding: 30px 20px;
        /*background: #f5f5f5;*/
        display: flex;
        justify-content: center;
    }

    .contact-box {
        background: #ffffff;
        max-width: 700px;
        width: 100%;
        padding: 45px;
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        transition: all 0.35s ease;
    }

    .contact-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 22px 45px rgba(0,0,0,0.15);
        border-left: 6px solid #f4b400;
        border-left: 6px solid #ffcf4c;
    }

    .contact-box h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 15px;
        color: #222;
    }

    .contact-text {
        text-align: center;
        color: #666;
        margin-bottom: 30px;
        font-size: 1.05rem;
    }

    .contact-form {
        display: grid;
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px;
        font-size: 15px;
        border: 1px solid #ccc;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        outline: none;
        border-color: #f4b400;
        box-shadow: 0 0 0 2px rgba(244,180,0,0.2);
    }

    .contact-form button {
        background: #2c2c2c;
        color: #fff;
        border: none;
        padding: 14px;
        font-size: 16px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

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


    .hero {
        background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c") center/cover no-repeat;
        height: 82vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #fff;
        color: #000000;
        padding: 0px;
        margin: 3px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .hero h2 {
        font-size: 50px;
        margin-bottom: 15px;
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: #ac5625c7;
    }

    .hero p {
        font-size: 19px;
        font-weight: bold;
        max-width: 600px;
        margin: auto;
        -webkit-text-stroke-width: 0.5px;
        -webkit-text-stroke-color: #ac5625c7;
    }

    .tit {
        background-color: #ffffff9a;
        padding: 25px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .p1 p{
        font-size: 15px;
        margin-top: 0;
        -webkit-text-stroke-color: rgb(0, 0, 0);
        font-weight: 300;
        color: rgb(0, 0, 0);
    }

    footer {
        background-color: #242323;
        color: #fff;
        text-align: center;
        padding: 20px;
        font-size: 14px;
    }

            /* ====== SERVICIOS DINÁMICOS ====== */
    .service {
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .service img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 6px;
    }

    .service:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }

    /* ====== MODAL GALERÍA ====== */
    .modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.85);
        z-index: 9999;
        overflow-y: auto;   /*HABILITA SCROLL */
    }


    .modal-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
        padding: 40px;
        
    }
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }


    .modal-content img {
        width: 100%;
        height: 350px;              /*TODAS MISMO ALTO */
        object-fit: cover;          /*RECORTA SIN DEFORMAR */
        object-position: center;    /*CENTRA LA IMAGEN */
        border-radius: 8px;
        transition: transform 0.3s;
    }


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

    .close {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 40px;
        color: white;
        cursor: pointer;
    }

    .img-modal img {
    max-width: 90vw;        /* AJUSTE INICIAL */
    max-height: 90vh;
    width: auto;
    height: auto;
    transform: scale(1);
    transition: transform 0.15s ease;
    cursor: zoom-in;
}

#nosotros .about {
max-width: 900px;
margin: auto;
padding: 40px;
}

#nosotros h2 {
    text-align: left;
    font-size: 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#nosotros p {
    margin-bottom: 20px;     /*SEPARACIÓN ENTRE PÁRRAFOS */
    line-height: 1.8;        /*MEJOR LECTURA */
    font-size: 16px;
    color: #333;
}

#nosotros {
padding: 80px 20px;
/*background: #f7f7f7;*/
display: flex;
justify-content: center;
}

.about-box {
background: #ffffff;
max-width: 900px;
padding: 45px;
border-radius: 14px;
box-shadow: 0 12px 30px rgba(0,0,0,0.08);
transition: all 0.35s ease;
cursor: default;
}

.about-box:hover {
transform: translateY(-10px);
box-shadow: 0 20px 45px rgba(0,0,0,0.15);
border-left: 6px solid #f4b400;
}

.about-box h2 {
font-size: 2rem;
margin-bottom: 25px;
color: #222;
}

.about-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 18px;
}

#servicios-detalle {
padding: 80px 40px;
max-width: 1100px;
margin: auto;
}

#servicios-detalle h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 20px;
}

#servicios-detalle .intro {
    text-align: center;
    font-size: 17px;
    margin-bottom: 40px;
    color: #444;
}

.servicios-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
justify-items: center;
}

.servicio-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left: 6px solid transparent;
}

.servicio-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #2c2c2c;
    color: #2c2c2c;
}

.servicio-box ul {
    padding-left: 15px;
}

.servicio-box li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.porque-elegirnos {
    margin-top: 50px;
    background: #2c2c2c;
    color: #fff;
    padding: 35px;
    border-radius: 12px;
}

.porque-elegirnos h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.porque-elegirnos ul {
    padding-left: 0;
    list-style: none;
}

.porque-elegirnos li {
    margin-bottom: 10px;
    font-size: 16px;
}

.servicio-box {
    width: 100%;
    max-width: 350px;
}

.servicio-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.servicio-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
    border-left: 6px solid #ffcf4c;

}

.servicio-box h3 {
    transition: color 0.3s ease;
}

.servicio-box:hover h3 {
    color: #f4b400;
    color: #ac5625c7;

}

#porque-elegirnos {
    padding: 25px 20px;
    /*background: #f7f7f7;*/
    display: flex;
    justify-content: center;
}

.why-box {
    background: #ffffff;
    max-width: 900px;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    cursor: default;
}

.why-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    border-left: 6px solid #f4b400;
}

.why-box h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #222;

}

.why-list {
    list-style: none;
    padding: 0;
}

.why-list li {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.why-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #f4b400;
    font-weight: bold;
}

    /*
    responsivo para moviles 700px
    */

@media (max-width: 700px) {

    header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .hero {
        height: auto;
        padding: 40px 15px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    section {
        padding: 40px 15px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .service img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .about,
    .contact-box {
        padding: 25px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }

    /*#footer {
    background: #8a7b77;
    color: #f5f5f5;
    padding: 30px 20px;
    text-align: center;
    font-family: Arial, sans-serif;*/
}

    /* Animación general */
    #footer,
    #footer a {
        transition: all 0.3s ease;
    }

    /* Texto hover */
    #footer:hover {
        color: #FFD369;
    }

    /* Links */
    #footer a {
        color: #4FC3F7;
        text-decoration: none;
        font-weight: 500;
    }

    #footer a:hover {
        color: #FFD369;
        transform: translateY(-2px);
    }


    /* WhatsApp */
    .whatsapp-link {
        display: inline-block;
        margin-top: 10px;
        color: #25D366 !important;
        font-weight: bold;
    }

    .whatsapp-link:hover {
        color: #fff !important;
        transform: scale(1.05);
        text-shadow: 0 0 6px rgba(37, 211, 102, 0.8);
    }

    #footer {
        background: #1f1f1f;
        padding: 40px 60px;
    }

    .footer-container {
        display: flex;
        align-items: flex-start; /* 🔥 MISMA ALTURA */
        gap: 200px;
    }

    .footer-logo img {
        width: 175px;
        height: auto;
        display: block;
    }

    .footer-content p {
        margin-top: 0;
    }


    

   /* =========================
   RESPONSIVO – CELULARES
   0 – 700px
========================= */
@media (max-width: 700px) {

    .hero h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 15px;
    }

    section {
        padding: 50px 20px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 10px;
    }

    .about,
    .contact-box {
        padding: 25px;
    }

    /* FOOTER: logo arriba del texto */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-logo img {
        width: 110px;
        height: auto;
    }
}


/* =========================
   RESPONSIVO – TABLETS
   701 – 1000px
========================= */
@media (min-width: 701px) and (max-width: 1000px) {

    .hero h2 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 60px 30px;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .service img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 10px;
    }

    .about,
    .contact-box {
        padding: 35px;
    }

    /* Footer tablets */
    .footer-container {
        align-items: flex-start;
        text-align: left;
    }
}


/* =========================
RESPONSIVO – LAPTOP / DESKTOP
1001px +
========================= */
@media (min-width: 1001px) {

    .hero h2 {
        font-size: 50px;
    }

    .hero p {
        font-size: 18px;
    }

    section {
        padding: 80px 40px;
        padding-bottom: 10px;
    }

    section .s2 {
        padding: 80px 40px;
        padding-bottom: 30px;
    }

    .services {
        grid-template-columns: repeat(3, 1fr);
    }

    .service img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 10px;
    }

    .about,
    .contact-box {
        padding: 45px;
    }
}


/* =========================
REGLAS GENERALES
========================= */
img {
    max-width: 100%;
    height: auto;
}


