/* ============================  
   IMPORT FUENTE PROFESIONAL
============================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* ============================
   GLOBAL STYLES
============================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background-color: #ffffff;
    color: #0d3b66;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ============================
   LOGO SIDEBAR
============================ */
.pic-align-sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

.logo-sidebar {
    width: 140px;
    height: auto;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.logo-sidebar:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ============================
   HERO / SPLIT SCREEN
============================ */
.full-screen-split {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    padding-top: 90px;
    position: relative;
    /* necesario para pseudo-elementos */
}

/* fondo con pseudo-elemento para que no afecte el texto */
.full-screen-split::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../fotosWeb/salvaPrincipal.png");
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.7;
    /* solo la imagen, el texto queda nítido */
    pointer-events: none;
    /* que no interfiera con clicks */
}

.left-side,
.right-side {
    flex: 1 1 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* ============================
   HERO TEXT
============================ */
.left-side h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #0d3b66;
}

.left-side p {
    margin-bottom: 18px;
    font-size: 1rem;
    color: #0d3b66;
    text-align: justify;
    font-weight: 500;
}

.left-side strong {
    color: #3f72af;
    font-weight: 600;
}

/* ============================
   BOTÓN PEDIR CITA
============================ */
.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    margin-top: 20px;
    background: linear-gradient(135deg, #01bce7, #0284c7);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(1, 188, 231, 0.3);
}

/* ============================
   CAROUSEL
============================ */
.right-side {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 90px);
    background-color: transparent;
    padding: 0;
}

#carouselExampleControls {
    width: 100%;
}

.carousel-inner {
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.carousel-item.active {
    display: flex;
}

.carousel-img,
.carousel-video {
    margin-top: 20px;
    max-width: 90%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ============================
   FLECHAS DEL CAROUSEL
============================ */
.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 50%;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* ============================
   BOTÓN SUBIR ARRIBA
============================ */
.arrow-up {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #2479bf;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    outline: none;
}

.arrow-up:focus,
.arrow-up:active {
    outline: none;
    box-shadow: none;
}



.arrow-up.visible {
    opacity: 1;
    pointer-events: auto;
}

.arrow-up svg {
    width: 25px;
    fill: white;
}

.arrow-up:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.arrow-up:active {
    transform: scale(0.95);
}

/* ============================
   SECOND SECTION - CONOCE A NUESTRO EQUIPAZO
============================ */
.secondSection {
    background-color: #f5f7fa;
    padding: 80px 20px;
}

.third-section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 600;
    color: #0d3b66;
    margin-bottom: 25px;
}

.description-aboutus {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    font-size: 1.15rem;
    line-height: 1.6em;
    color: #555;
}

/* ============================
   TEAM CARDS
============================ */
.align-card-persons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.card-person {
    width: 260px;
    text-align: center;
    transition: 0.3s ease;
}

.card-person:hover {
    transform: translateY(-8px);
}

.circle-pictures {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3f72af;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.paragraph-style-profile {
    margin-top: 20px;
    font-weight: 600;
    font-size: 18px;
    color: #0d3b66;
}

.rectangle-info {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    min-height: 190px;
}

.info-text {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #0d3b66;
}

.info-subtext {
    font-size: 14px;
    line-height: 1.5em;
    text-align: center;
    color: #555;
}

.picture-moyi {
    object-position: center 40%;
}

.picture-andrea {
    object-position: center 40%;
}

.picture-marta {
    object-position: center 30%;
}

/* ============================
   FOURTH SECTION - REVIEWS
============================ */
.fifthSection {
    height: auto;
    background-color: #fff;
}

.center-div {
    width: 100%;
    background-color: #c3d4dd;
}

.title-section {
    text-align: center;
    font-size: 42px;
    padding-top: 70px;
    padding-bottom: 80px;
    font-weight: bolder;
}

.flex-cards {
    display: flex;
    justify-content: space-between;
    margin: 0 5%;
}

.center-card {
    width: 25%;
    height: 50%;
}

.title-card {
    font-weight: bold;
    font-size: 20px;
}

.stars-card {
    color: yellow;
    font-size: 20px;
    letter-spacing: 2px;
}

.text-card {
    font-style: italic;
}

.review-card {
    font-size: 13px;
    padding-top: 3%;
    font-weight: bold;
    margin-bottom: 50px;
}

#services-id {
    scroll-margin-top: 120px;
}

/* ============================
   LINKS
============================ */
a {
    text-decoration: none !important;
}


/* ============================
   MEDIA QUERIES
============================ */
/* TABLETS */
@media (max-width: 1000px) {
    .full-screen-split {
        flex-direction: column;
    }

    .left-side,
    .right-side {
        width: 100%;
        padding: 50px 30px;
        text-align: center;
    }

    .left-side h1 {
        font-size: 2.3rem;
    }

    .right-side {
        min-height: 400px;
    }

    .carousel-img,
    .carousel-video {
        max-width: 500px;
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }

    .align-card-persons {
        gap: 35px;
    }
}

/* MÓVILES */
@media (max-width: 700px) {

    .left-side,
    .right-side {
        padding: 40px 20px;
    }

    .left-side h1 {
        font-size: 1.9rem;
    }

    .left-side p {
        font-size: 0.95rem;
    }

    .third-section-title {
        font-size: 30px;
    }

    .card-person {
        width: 90%;
        max-width: 320px;
    }

    .absolute-paragraph {
        width: 90%;
        padding-top: 30%;
        padding-left: 5%;
    }

    .carousel-img,
    .carousel-video {
        max-width: 90%;
        width: 100%;
        max-height: 300px;
        height: auto;
        object-fit: contain;
    }
}