﻿.contact-image {
    background-image: url('/content/images/top_pages/servicios.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    width: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

.services-container {
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* Fade-in effect */
.fade-in {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.title-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.services-description {
    flex: 1;
    font-size: 1.1rem;
    color: #555;
    opacity: 0.9;
    /* margin-top: -0.2rem; */
}


@media (max-width: 768px) {
    .title-description {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .services-description {
        text-align: justify;
        margin-top: 0.5rem;
        padding-right: 1rem;
        padding-left: 0rem;
    }
}



.servicio-escalera-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    justify-items: stretch;
    align-items: start;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}


.lista-servicios,
.descripcion-servicio {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.lista-servicios {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.servicio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
    color: #aaa;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1.5rem;
}

    .servicio-item .flecha {
        flex-shrink: 0;
        font-size: 40px;
        margin-left: 10px;
    }

    .servicio-item.activo {
        color: #000;
        font-weight: bold;
    }

    .servicio-item:hover {
        color: #000;
    }

.descripcion-servicio {
    width: 100%;
}

    .descripcion-servicio p {
        font-size: 1.1rem;
        color: #333;
        text-align: justify;
    }

/* ✅ Pantallas medianas (tablets, < 900px) */
@media (max-width: 900px) {
    .servicio-escalera-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "lista"
            "imagen"
            "descripcion";
        text-align: center;
    }

    .lista-servicios {
        grid-area: lista;
    }

    .imagen-stack-container {
        grid-area: imagen;
        margin: 0 auto;
        height: 350px;
    }

    .descripcion-servicio {
        grid-area: descripcion;
        border-top: 2px solid #ddd;
        max-width: 100%;
        margin-top: 50px;
    }

    .servicio-item {
        font-size: 1.3rem;
    }

        .servicio-item .flecha {
            font-size: 30px;
        }
}

/* ✅ Pantallas pequeñas (móviles, < 600px) */
@media (max-width: 600px) {
 
    .servicio-item {
        font-size: 1.1rem;
    }

        .servicio-item .flecha {
            font-size: 24px;
        }

    .descripcion-servicio p {
        font-size: 1.2rem;
        line-height: 1.4;
        padding: 0 10px;
        margin-top: 10px;
    }
}



.contacto-image {
    background-image: url('../assets/images/top_pages/contacto.png');
    background-size: cover;
    background-position: center;
    height: 70vh;
    width: 100%;
    object-fit: cover;
    filter: brightness(50%);
}

/* Scroll fade-in effect */
.fade-in {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Content layout */
.contact-content {
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* Title and description */
.title-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .title-description {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* .contact-title {
  font-size: 2.5rem;
  font-weight: bold;
  background-color: red;
} */

.contact-description {
    flex: 1;
    font-size: 1.1rem;
    color: #555;
    opacity: 0.9;
}


/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        background: transparent;
        border: none;
        border-bottom: 1px solid #aaa;
        padding: 0.5rem 0;
        font-size: 1rem;
        color: #000;
    }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(0, 0, 0, 0.4);
            /* font-family: 'Courier New', Courier, monospace; */
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            box-shadow: none;
        }


/* Submit button */
.submit-btn {
    align-self: flex-end;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .submit-btn:hover {
        background: #000;
        color: #fff;
        transform: scale(1.05);
    }



@media (max-width: 768px) {


    .contact-description {
        flex: 1;
        font-size: 1.1rem;
        color: #555;
        opacity: 0.9;
        line-height: 1.6;
        text-align: justify;
        margin-top: 0.5rem;
        padding-right: 1rem;
        padding-left: 0rem;
    }
}
