body {
    background-color: #FAF8F4;
    margin: 0;
    overflow-x: clip;
}


/* ========================= */
/* CARRUSEL */
/* ========================= */

.imagen-carousel {
    height: 555px;
    object-fit: cover;
}


/* Oscurece ligeramente la imagen */

.carousel-item::after {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.25);

    pointer-events: none;
}


/* Texto por encima del oscurecimiento */

.carousel-caption {
    z-index: 2;

    bottom: 70px;
}


.carousel-caption h1 {
    font-size: 40px;
}


.carousel-caption p {
    font-size: 20px;
}



/* ========================= */
/* SERVICIOS */
/* ========================= */

.servicios {
    padding-top: 60px;
    padding-bottom: 27px;
}


.imagen-servicio {

    width: 150px;
    height: 150px;

    object-fit: cover;

    border-radius: 50%;

    margin-bottom: 20px;
}


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


.servicios p {
    color: #666;

    max-width: 280px;

    margin-left: auto;
    margin-right: auto;
}

.imagen-servicio {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;

    transition: transform 0.25s ease;
    cursor: pointer;
}

.imagen-servicio:hover {
    transform: scale(1.14);
}


/* ========================= */
/* FLECHAS DEL CARRUSEL */
/* ========================= */

.carousel-control-prev,
.carousel-control-next {

    /* Franja lateral completa */
    width: 10%;
    height: 100%;

    top: 0;
    bottom: 0;

    /* Quitamos el centrado anterior */
    transform: none;

    /* Sin bordes redondeados */
    border-radius: 0;

    /* Transparente normalmente */
    background-color: transparent;

    opacity: 0.85;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        opacity 0.25s ease;
}


/* Pegadas completamente a los lados */

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}


/* Oscurece TODA la franja al pasar el mouse */

.carousel-control-prev:hover,
.carousel-control-next:hover {

    background-color: rgba(0, 0, 0, 0.30);

    opacity: 1;
}


/* Flechas más grandes */

.carousel-control-prev-icon,
.carousel-control-next-icon {

    width: 55px;
    height: 55px;

    background-size: 100% 100%;
}

/* ========================= */
/* TEXTO FIJO SOBRE PORTADA  */
/* ========================= */

.texto-portada-fijo {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%) translateY(25px);

    /* El bloque ocupa solo lo necesario */
    width: fit-content;
    max-width: 80%;

    text-align: center;
    color: white;

    z-index: 5;

    /* Menos espacio alrededor del texto */
    padding: 18px 45px;

    /* Difuminado hacia TODOS los lados */
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.50) 0%,
            rgba(0, 0, 0, 0.55) 40%,
            rgba(0, 0, 0, 0.04) 70%,
            rgba(0, 0, 0, 0) 100%);

    pointer-events: none;
}


.texto-portada-fijo h1 {
    font-size: 48px;
    font-weight: bold;

    margin: 0 0 18px 0;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}


.texto-portada-fijo p {
    font-size: 24px;

    margin: 0;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* ========================= */
/* IMAGEN AMPLIADA / GALERÍA */
/* ========================= */

.contenedor-imagen-modal {
    position: relative;

    display: inline-block;

    max-width: 100%;
}


.imagen-modal {
    display: block;

    max-width: 100%;
    max-height: 85vh;

    object-fit: contain;

    cursor: pointer;
}


/* Flechas imagen ampliada */
.flecha-modal {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 70px;

    border: none;
    padding: 0;

    background: rgba(0, 0, 0, 0.25);

    color: white;

    font-size: 55px;
    font-weight: 300;

    /* Centrado perfecto de la flecha */
    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1;

    cursor: pointer;

    transition: background 0.2s ease;

    z-index: 10;
}


/* Hover */
/* ========================= */
/* FLECHAS IMAGEN AMPLIADA   */
/* ========================= */

.flecha-modal {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 70px;

    padding: 0;
    border: none;

    background: rgba(0, 0, 0, 0.25);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;

    transition: background 0.2s ease;
}


/* Dibujamos la flecha nosotros mismos */

.flecha-modal::before {
    content: "";

    width: 20px;
    height: 20px;

    border-top: 4px solid white;
    border-right: 4px solid white;

    display: block;
}


/* Izquierda */

.flecha-modal-izquierda {
    left: 10px;
}

.flecha-modal-izquierda::before {
    transform: rotate(-135deg);
}


/* Derecha */

.flecha-modal-derecha {
    right: 10px;
}

.flecha-modal-derecha::before {
    transform: rotate(45deg);
}


/* Hover */

.flecha-modal:hover {
    background: rgba(0, 0, 0, 0.60);
}


/* ========================= */
/* DESCRIPCIÓN DE LA EMPRESA */
/* ========================= */

.descripcion-empresa {
    padding: 60px 20px 165px;
}


.descripcion-empresa h2 {
    font-size: 38px;
    font-weight: bold;

    margin-bottom: 50px;

    color: #3E2F25;
}


.descripcion-empresa p {
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    text-align: justify;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    line-height: 1.9;

    color: #555;
}

/* ========================= */
/* ANIMACIÓN PARRAFO FINAL   */
/* ========================= */

.descripcion-empresa {
    opacity: 0;

    /* Empieza un poco hacia la derecha */
    transform: translateX(90px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform, opacity;
}


/* Cuando aparece en pantalla */

.descripcion-empresa.visible {
    opacity: 1;

    transform: translateX(0);
}


/* Cuando desaparece de pantalla */

.descripcion-empresa.salida-izquierda {
    opacity: 0;

    transform: translateX(-90px);
}


/* Prepararla nuevamente a la derecha */

.descripcion-empresa.preparar-entrada {
    transition: none;

    opacity: 0;

    transform: translateX(90px);
}