/* Estilos generales */

section {
    min-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    background-color: #000;
}

/**SCROLLBAR**/

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c0c3c2 90%, rgba(192, 195, 194, 0));
    border-radius: 10px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #a5a8a7 90%, rgba(165, 168, 167, 0));
}


/** HEADER **/

header {
    position: relative;
    width: 100%;
    height: 110vh;
    background-image: url('FONDOHEADER.jpg'), linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    /* Gradiente con fondo */
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.header-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

.logo {
    width: 300px;
}

.logo {
    /*PARA QUE NO SE DESCARGUE LAS IMAGENES CON CLICK DERECHO*/
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f1c40f;
}

header img.logo {
    position: absolute;
    top: 1.5rem;
    left: 80px;
    z-index: 10;
    height: 110px;
}



nav ul {
    position: absolute;
    top: 72px;
    right: 99px;
    z-index: 10;
}

/** PORTAFOLIO **/

nav a span {
    text-decoration: none;
}

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

.portafolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    margin-top: 0rem;
}

.portafolio-text {
    text-align: left;
    flex: 1;
    padding-left: 5.5%;
    max-width: 65%;
    text-decoration: none;
}

.logo-portafolio-link {
    position: absolute;
    top: 5px;
    right: 5%;
    width: 255px;
    height: 100px;
    /* Ajusta según el alto de tu logo real */
    background-image: url('LOGO.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}


.portafolio-header h2 {
    font-size: 58px;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -3px;
}


.portafolio-categories {
    display: flex;
    justify-content: left;
    gap: 15px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    padding-top: 0rem;
    /* Ajuste esto para que las categorías se alineen mejor */
    text-decoration: none;
}



.portafolio-categories span {
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.portafolio-categories span:hover {
    color: #f1c40f;
    text-decoration: none;
}

.portafolio-images {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: -1rem;

}

.portafolio-image {
    width: 30%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.portafolio-image img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}

.portafolio-image3 img {
    width: 100%;
    height: 85.7vh;
    display: block;
}

/**
.portafolio-image  {                                           PARA QUE NO SE DESCARGUE LAS IMAGENES CON CLICK DERECHO
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
} **/

.portafolio-image3 {
    /*PARA QUE NO SE DESCARGUE LAS IMAGENES CON CLICK DERECHO*/
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
}


/**ABOUT US**/


.nosotros {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px;
    gap: 40px;
    max-height: 100vh;
    background-color: #fff;
}

.contenido {
    flex: 1;
}

.bloque-texto {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.titulo h2 {
    font-size: 40px;
    font-weight: 900;
    color: #000;
    letter-spacing: -2.3px;
    margin: 0;
    margin-top: -11rem;
    font-family: Arial, Helvetica, sans-serif
}

.descripcion {
    max-width: 600px;
    position: relative;
}

.descripcion p {
    font-size: 18px;
    line-height: 1.4;
    color: #333;
    text-align: justify;
    letter-spacing: 0.5px;
    margin: 0;
    margin-top: 80px;
}

.contactanos {
    position: absolute;
    bottom: -60px;
    right: 0;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.contactanos:hover {
    color: #555;
    cursor: pointer;
}

.imagen-about {
    position: relative;
}

.personaje {
    max-width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
    display: block;
}

.logo-about {
    position: absolute;
    top: 40px;
    right: 15%;
    max-width: 90rem;
    height: auto;
    user-select: none;
}

/**SERVICIOS**/

.servicios {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px;
    background-color: black;
    color: white;
    height: 120vh;
    width: 100%;
}

.servicios__texto {
    flex: 1 1 50%;
    max-width: 600px;
}

.servicios__titulo {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 40px;
    margin-top: -0.2rem;
    margin-left: 3rem;
    letter-spacing: -2.5px;
}

.servicios__bloque {
    margin-bottom: 27px;
    margin-left: 7rem;
}

.servicios__subtitulo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: -1px;
}

.servicios__parrafo {
    font-size: 15px;
    line-height: 1.2;
}

.servicios__lista {
    padding-left: 20px;
    margin: 10px 0;
}

.servicios__lista li {
    font-size: 13px;
    line-height: 1.6;
}

.servicios__imagen {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    justify-content: flex-end;
}

.servicios__imagen-contenido {
    position: relative;
    width: 100%;
}

.servicios__imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 0px;
    display: block;
    margin-top: 3rem;
    margin-left: 7rem;
}

.servicios__logo {
    position: absolute;
    top: -7rem;
    right: 5%;
    width: 255px;
    height: 100px;
    /* Ajusta según el alto de tu logo real */
    background-image: url('LOGO.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}


.servicios__footer {
    position: absolute;
    bottom: -50px;
    right: 3.5rem;
    display: flex;
    gap: 50px;
}

.servicios__footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.3s;
}

.servicios__footer a:hover {
    opacity: 0.7;
}

/**CLIENTES**/
.clientes-section {
    background-color: white;
    padding: 40px 20px;
    height: 100vh;
}

.clientes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.clientes-header h2 {
    letter-spacing: -3px;
    font-size: 45px;
    font-weight: 900;
    margin: 0;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    margin-left: 15rem;
    margin-top: 2rem;

}

.logo-link img {
    margin-top: 2.5rem;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-right: 18rem;
}

.clientes-logos img {
    width: auto;
    max-width: 1000px;
    display: block;
    margin: 0 auto;
    height: 500px;
}

/**CONTACTO**/


.contacto {
    width: 100%;
    padding: 40px 0;
    background: #eaeaea;
    max-height: 100vh;
    position: relative;
}

.contacto-contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1400px;
    /* NO crece más de esto */
    margin: auto;
    flex-wrap: wrap;
}

.contacto-imagen img {
    max-width: 320px;
    width: 100%;
}

.contacto-logo img {
    max-width: 220px;
    width: 100%;
}

.contacto-form {
    flex: 1;
    min-width: 350px;
    max-width: 550px;
    /* evita que se estire demasiado */
}

.contacto-form h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.info p {
    font-size: 16px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info i {
    color: #000;
}

form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
}

form textarea {
    min-height: 120px;
    resize: none;
}

form button {
    background: #000;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

form button:hover {
    background: #333;
}

.social-icons a {
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons {
    position: absolute;
    /* ✅ pegado a la sección */
    right: 20px;
    /* esquina derecha */
    top: 50%;
    /* centrado vertical */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    /* columna en escritorio */
    gap: 15px;
    font-size: 2em;
}

.social-icons .whatsapp {
    color: #25D366;
}

.social-icons .youtube {
    color: #FF0000;
}

.social-icons .linkedin {
    color: #0077B5;
}

.social-icons .instagram {
    color: #E1306C;
}

.social-icons .tiktok {
    color: #010101;
}

.social-icons .facebook {
    color: #1877F2;
}


#formMessage {
    display: block;
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 20px;
    /* 👈 Empuja lo que viene después */

}

#formMessage.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formMessage.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.telefono-group {
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.country-select {
    position: relative;
    width: 120px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.country-select .selected {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.country-select .selected img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

.country-select .options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 160px;
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: none;
    z-index: 100;
}

.country-select.open .options {
    display: block;
}

.country-select .option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.country-select .option:hover {
    background: #f0f0f0;
}

.country-select .option img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

#telefono {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/**FOOTER**/
footer {
    background-color: #000;
    color: #fff;
    padding: 2rem 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin-top: 1rem;
}

.footer-left p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

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

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.footer-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.footer-row span {
    color: #aaa;
    font-weight: bold;
}

.footer-row a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-row a:hover {
    color: #f1c40f;
}

.footer-right {
    text-align: right;
    font-size: 0.85rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.footer-right .dev {
    margin-top: 8px;
    font-size: 0.8rem;
}

.footer-right .dev a {
    color: #b5b6b5;
    text-decoration: none;
}

.footer-right .dev a:hover {
    text-decoration: underline;
}

/**RESPONSIVE**/

@media (max-width: 1400px) {


    .header-container {
        padding: 20px 60px;
    }

    .logo {
        width: 220px;
    }

    nav ul {
        gap: 25px;
        right: 60px;
    }

    .portafolio-header h2 {
        font-size: 56px;
    }

    .logo-about {
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 160px;
    }

    .servicios {
        height: 120vh;
    }

    .servicios__titulo {
        margin-top: 3rem;
        margin-bottom: 6rem;
    }

    .servicios__imagen img {
        max-width: 100%;
        height: auto;
        margin-left: 2rem;
    }



    .servicios__footer {
        bottom: -30px;
        right: 3rem;
        gap: 30px;
    }



    .contacto-contenido {
        margin-top: 3rem;
        gap: 30px;
        max-width: 1200px;
    }

    #formMessage {
        font-size: 15px;
        padding: 10px 16px;
    }


}

@media (max-width: 1370) {
    .servicios {
        min-height: 100vh;
    }
}



@media(max-width:1300px) {
    .servicios {
        min-height: 125vh;
    }

    .nosotros .titulo {
        margin-top: 3rem;
    }
}


@media (max-width: 1200px) {

    html,
    body {
        overflow-x: hidden;
    }

    .header-container {
        padding: 20px 40px;
    }

    .logo {
        width: 200px;
    }

    nav ul {
        gap: 20px;
        right: 40px;
    }

    .portafolio-header h2 {
        font-size: 50px;
    }

    .nosotros {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 60px 40px;
        gap: 1rem;
    }


    .imagen-about {
        max-width: 45%;
        height: auto;
        object-fit: contain;
        align-self: flex-end;
        margin-top: -30rem;
        z-index: 0;
    }

    .bloque-texto {
        max-width: 50%;
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;

    }

    .bloque-texto h2,
    .bloque-texto h1 {
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .bloque-texto p {
        font-size: 1rem;
    }

    .logo-about {
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 140px;
    }

    .servicios {
        min-height: 125vh;
    }


    .servicios__logo {
        top: -4rem;
        right: 4%;
        width: 200px;
        height: auto;
    }

    .servicios__footer {
        bottom: -30px;
        right: 3rem;
        gap: 30px;
    }

    .contacto-contenido {
        margin-top: 1rem;
        flex-wrap: nowrap;
        gap: 25px;
    }

    .contacto-imagen img {
        max-width: 290px;
    }

    .contacto-logo img {
        max-width: 200px;
    }

    #formMessage {
        font-size: 15px;
        max-width: 90%;
        margin: 10px auto 0;
    }


    .footer-content {
        font-size: 0.9rem;
    }

    .social-icons {
        right: 0.5rem;
    }
}

@media(max-width:1010px) {
    .servicios__footer {
        position: relative;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .servicios__imagen img {
        margin-left: -2rem;
    }
}

@media(max-width:920px) {
    .servicios {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .servicios__bloque {
        margin-left: 0;
        text-align: left;
    }

    .servicios__titulo {
        margin-left: 0;
        font-size: 40px;
        text-align: center;
        margin-bottom: 30px;
    }

    .servicios__imagen img {
        margin-left: 0;
    }

    .servicios__logo {
        position: static;
        margin: 20px auto 0;
        width: 200px;
        height: 80px;
        align-items: center;
    }

    .servicios__footer {
        position: static;
        justify-content: center;
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        position: static;
    }

    .logo {
        margin-bottom: 20px;
        left: auto;
        top: auto;
        margin-right: 20rem;
    }

    header img.logo {
        position: static;
        height: auto;
        margin-bottom: 1rem;
        left: auto;
        top: auto;
    }

    nav ul {
        position: static;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        right: auto;
        top: auto;
    }

    .portafolio-header {
        flex-direction: column;
        align-items: center;
    }

    .portafolio-text {
        max-width: 100%;
        text-align: center;
        padding-left: 0;
    }

    .logo-portafolio-link {
        position: static;
        margin-top: 20px;
    }

    .portafolio-categories {
        justify-content: center;
    }

    .portafolio-images {
        flex-direction: column;
        align-items: center;
    }

    .portafolio-image,
    .portafolio-image3 {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .portafolio-image3 img {
        width: 100%;
        height: auto;
        display: block;
    }

    .nosotros {
        padding: 40px 5%;
        max-height: none;
        height: auto;
    }




    .imagen-about {
        position: static !important;
        max-width: 80%;
        height: auto;
        object-fit: contain;
        align-self: flex-end;
        margin-top: -30rem;
        z-index: auto;
        margin-right: -5rem;
    }

    .logo-about {
        margin-top: 170rem;
        margin-left: 12rem;
    }




    .bloque-texto {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .titulo h2 {
        margin-top: 0;
        z-index: 10;
        font-size: 40px;
        margin-right: 10rem;
    }

    .descripcion {
        max-width: 100%;
    }

    .contactanos {
        position: static;
        margin-top: 20px;
    }

    .imagen-about {
        max-width: 80%;
    }

    .personaje {
        max-width: 100%;
        height: auto;
    }

    .servicios {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 40px 20px;
    }

    .servicios__texto {
        max-width: 100%;
        text-align: center;
    }

    .servicios__bloque {
        margin-left: 0;
        text-align: left;
    }

    .servicios__titulo {
        margin-left: 0;
        font-size: 40px;
        text-align: center;
        margin-bottom: 30px;
    }

    .servicios__imagen img {
        margin-left: 0;
    }

    .servicios__logo {
        position: static;
        margin: 20px auto 0;
        width: 200px;
        height: 80px;
        align-items: center;
    }

    .servicios__footer {
        position: static;
        justify-content: center;
        margin-top: 20px;
        flex-direction: column;
    }

    .clientes-section {
        height: auto;
    }

    .clientes-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .clientes-header h2 {
        margin-left: 0;
        margin-top: 0;
    }

    .logo-link img {
        margin-right: 0;
        margin-top: 1rem;
    }

    .clientes-logos img {
        max-width: 90%;
        height: auto;
    }

    .contacto {
        max-height: 100vh;
    }

    .contacto-contenido {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Reordenamiento */
    .contacto-logo {
        order: 1;
        margin: 15px 0;
    }

    .contacto-form {
        order: 2;
        max-width: 90%;
    }

    .contacto-imagen {
        order: 3;
        margin-top: 20px;
        max-width: 180px;
    }

    #formMessage {
        font-size: 14px;
        max-width: 95%;
        margin: 10px auto 0;
    }

    .social-icons {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 20px;
        font-size: 1.8em;
    }




    .info p {
        justify-content: center;
    }

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

    .footer-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        height: 45px;
    }

    .footer-left p {
        font-size: 0.85rem;
        max-width: 250px;
    }

    .footer-center {
        gap: 12px;
    }

    .footer-row {
        gap: 8px;
    }

    .footer-row a {
        font-size: 0.9rem;
    }

    .footer-right {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {

    html,
    body {
        overflow-x: hidden;
    }

    .header-container {
        flex-direction: column;
        padding: 20px;
        gap: 1rem;
    }

    .logo {
        width: 180px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        right: 0;
        position: static;
    }

    .nosotros {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px;
        position: relative;
    }

    .imagen-about {
        position: relative;
        width: 100%;
        max-width: 300px;
        margin-top: -2rem;
        margin-right: 3.6rem;
        z-index: 0;
        height: auto;
    }

    .imagen-about img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
        object-fit: contain;
    }

    .bloque-texto {
        position: relative;
        z-index: 10;
        padding: 1rem;
        text-align: center;
        max-width: 100%;
        box-sizing: border-box;
        color: white;
    }

    .bloque-texto h1,
    .bloque-texto h2 {
        font-size: 1.5rem;
        margin-bottom: -10rem;
    }

    .bloque-texto p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .logo-about {
        max-width: 150px !important;
        height: auto;
        margin-top: 25.3rem;
        margin-left: 5rem;
    }

    .portafolio-header h2 {
        font-size: 2rem;
        text-align: center;
    }

    .portafolio-galeria {
        flex-direction: column;
        gap: 1rem;
    }

    .portafolio-galeria a img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }


    .servicios {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
    }

    .servicios__imagen img {
        width: 100%;
        margin: 0 auto;
    }

    .servicios__logo {
        width: 180px;
        top: -2rem;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 12rem;
    }

    .servicios__footer {
        position: static;
        margin-top: 2rem;
    }

    .clientes {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1rem;
    }

    .clientes img {
        max-width: 80%;
        height: auto;
    }

    .contacto-imagen img {
        max-width: 250px;
    }

    .contacto {
        max-height: 200vh;
    }

    .contacto-logo img {
        max-width: 180px;
    }

    .contacto-form h2 {
        font-size: 22px;
    }

    form input,
    form textarea {
        font-size: 14px;
        padding: 10px;
    }

    form button {
        font-size: 14px;
        padding: 10px;
    }

    #formMessage {
        font-size: 13px;
        padding: 8px 12px;
        line-height: 1.3;
    }

    .social-icons {
        bottom: -300rem;
        right: 5rem;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-left p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-row {
        gap: 6px;
    }

    .footer-row a {
        font-size: 0.85rem;
    }

    .footer-right {
        font-size: 0.75rem;
    }

    .footer-right .dev {
        font-size: 0.7rem;
    }
}

@media(max-width:435px) {


    #formMessage {
        font-size: 13px;
        padding: 8px 10px;
    }

    .social-icons {
        bottom: -308rem;
    }

}

@media(max-width:415px) {
    .social-icons {
        bottom: -302rem;
    }

    #formMessage {
        font-size: 12px;
        padding: 8px 10px;
    }
}

@media(max-width:400px) {


    .social-icons {
        bottom: -288rem;
        right: 3rem;
    }

    #formMessage {
        font-size: 12px;
        line-height: 1.3;
        margin-top: 8px;
    }
}


@media (max-width: 390px) {
    .logo {
        width: 120px;
    }

    nav a {
        font-size: 12px;
    }

    .portafolio-header h2 {
        font-size: 30px;
    }

    .portafolio-categories {
        font-size: 12px;
    }

    .portafolio-image3 img {
        height: auto;
    }

    .titulo h2 {
        font-size: 25px;
    }

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

    .personaje {
        max-width: 100%;
        height: auto;
    }

    .servicios__titulo {
        font-size: 20px;
        align-items: center;
    }

    .servicios__subtitulo {
        font-size: 16px;
    }

    .logo-about {
        margin-top: 23rem;
    }

    .servicios__imagen {
        max-width: 300px;
    }

    .servicios__parrafo {
        font-size: 10px;
    }

    .clientes-header h2 {
        font-size: 30px;
    }

    .contacto-imagen img {
        max-width: 200px;
    }

    .contacto-logo img {
        max-width: 150px;
    }

    .contacto-form {
        min-width: 100%;
    }

    form input,
    form textarea {
        font-size: 13px;
    }

    form button {
        font-size: 13px;
    }

    #formMessage {
        font-size: 12px;
        padding: 6px 10px;
    }

    .social-icons {
        bottom: -260rem;
        right: 3rem;
    }

}

@media(max-width: 345px) {

    #formMessage {
        font-size: 11px;
        padding: 6px 8px;
    }

    .social-icons {
        bottom: -286rem;
    }
}


@media (max-width: 1024px) {

    /* Header */
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 200px 30px;
    }

    nav ul {
        align-items: center;
        gap: 1rem;
        position: static;
    }

    .logo {
        margin-left: 21rem;
    }

    /* Nosotros */
    .nosotros {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .bloque-texto {
        max-width: 90%;
        text-align: center;
    }

    .logo-about {
        max-width: 140px;
    }

    /* Portafolio */
    .portafolio-galeria {
        flex-direction: column;
        gap: 1.5rem;
    }

    .portafolio-galeria a img {
        width: 100%;
        height: auto;
    }

    /* Servicios */
    .servicios {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
        min-height: 125vh;
    }

    .servicios__imagen img {
        width: 100%;
        max-width: 400px;
    }

    .servicios__logo {
        width: 160px;
        top: -2rem;
    }

    /* Clientes */
    .clientes {
        flex-direction: column;
        gap: 2rem;
    }

    /* Contacto */

    .contacto {
        min-height: 180vh;
    }

    .contacto-contenido {
        margin-top: 5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contacto-form h2 {
        font-size: 24px;
    }

    .contacto-logo {
        order: 1;
    }

    .contacto-form {
        order: 2;
    }

    .contacto-imagen {
        order: 3;
    }

    #formMessage {
        font-size: 14px;
        padding: 10px 15px;
    }

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

    .footer-left {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-left p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .footer-center {
        gap: 14px;
    }

    .footer-row {
        grid-template-columns: auto auto auto;
        gap: 10px;
    }

    .footer-right {
        text-align: center;
    }


}