/* --- VARIABLES --- */

:root {
    --color-secundario: #4A0638;
    --fuente: 'Bitter'; 
}

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


body, div, header, footer, section,main,h1,h2,h3,h4,p,span,ul,li,button, img {
    margin: 0;
    padding: 0;
    font-family: 'Bitter', serif;
}

body {
    background: #fff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 35%, rgba(238, 238, 238, 1) 93%, rgba(221, 221, 221, 1) 100%);
}

/* --- MOBILE FIRST --- */

/* --- HEADER SECTION --- */ 

header , nav {
    display: flex;
    width: 100%;
    height: 12vh;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

nav {
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: #fff;
}

.main-link {
    display: flex;
}

.main-link li {
    display: flex;
}

.main-link li a {
    display: flex;
    align-items: center;
}

.main-link li a p {
    margin-top: 6px;
    font-size: 1.3rem;
    margin-left: 6px;
    font-weight: bold;
}

.main-link a img{
    max-width: 8vh;
    margin-top: 6px;
}

.btn-menu {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    color: var(--color-secundario);
    z-index: 5;
}

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

.menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: absolute;
    top: 2.2vh;
    right: 0;
    background-color: #fff;
    width: 100%;
    padding: 1rem;
    font-weight: bold;
}

.menu a {
    padding-bottom: 3px;
}

.menu a:hover , .menu a:active {
    border-bottom: 2px solid var(--color-secundario);
}

.menu.show {
    display: flex;
}

a {
    text-decoration: none;
    color: var(--color-secundario);
    font-family: var(--fuente);
}

/* --- HERO SECTION --- */

.hero {
    min-height: 80vh;
    padding-top: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.5)), 
    url("../img/estudio-contable-hero-optimizada.jpg");
    background-size: cover;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    gap: 25px;
    margin-top: 5vh;
}

.hero-info h1 {
    font-size: 3.2em;
    letter-spacing: 3.5px;
    font-weight: 700;
}

.hero-info p {
    font-size: 1.3em;
    padding-right: 10px;
    font-style: italic;
}

.separador {
    width: 30%;
    height: 7px;
    background-color: var(--color-secundario);
}



/* --- SERVICIOS SECTION --- */

.servicios {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 8vh;
    padding-top: 12vh;
}

.servicios h2 {
    text-transform: uppercase;
    margin-top: 8vh;
    font-weight: 400;
}

.servicios-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.separador-servicios {
    background-color: var(--color-secundario);
    width: 70%;
    height: 3px;
}

.servicios-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 200vh;
    gap: 5vh;
    max-width: 80vw;
    width: 100%;
    margin-top: 5vh;
}

.servicios-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #ddd;
    border-bottom: 3px solid var(--color-secundario);
    gap: 20px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.servicios-grid-item img {
    width: 150px;
    border-radius: 50%;
}

.servicios-grid-item h4 {
    font-size: 0.9em;
    font-weight: 400;
}

.servicio-expandido {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    text-align: left;
}

.servicio-expandido ul {
    margin-left: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}




.ver-mas-btn {
    background-color: var(--color-secundario);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color .3s;
}

.ver-mas-btn:hover {
    background-color: #790b5b;
}



/* --- ABOUT SECTION --- */


.about {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 20vh 10px;
    position: relative;
    overflow: hidden;
}

.about-background-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('../img/img-fondo-about-optimizada.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    z-index: 0;
}

.separador-about {
    height: 3px;
    width: 160px;
}

.about-txt-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 85%;
    z-index: 1;
    background-color: #ffffffee;
    padding: 20px;
    border-radius: 5px;
    align-items: center;
}

.about-txt-container p {
    line-height: 1.5;
    margin-top: 15px;
}

.about-txt-container h2 {
    text-transform: uppercase;
    font-weight: 400;
}


/* --- TESTIMONIOS SECTION --- */

.testimonios {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 10px;
    align-items: center;
    padding-top: 12vh;
}

.testimonios h2 {
    font-weight: 400;
    margin-top: 6vh;
}

.testimonios p {
    font-style: italic;
}

.testimonios span {
    font-weight: bold;
}

.testimonios-txt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.separador-testimonios {
    height: 3px;
    width: 70%;
    margin-top: 10px;
}

.testimonio-wrapper {
    position: relative;
    width: 90%;
    margin: auto;
    background-color: #ebe9e9;
    border-radius: 5px;
    margin-top: 7vh;
}

.testimonios button {
    position: absolute;
}

#prev-btn {
    top: 100px;
    left: 20px;
}

#next-btn {
    top: 100px;
    right: 20px;
}

.testimonio-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.testimonio-img-container {
    display: flex;
    align-self: center;
}

.testimonio-img-container img {
    max-width: 80%;
    border-radius: 50%;
    background-size: cover;
    margin: auto;
}

.testimonio-txt-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
}

.separador-testimonio-p {
    width: 10%;
    height: 4px;
}

.testimonio-container {
    display: none;
}

.testimonio-container.active {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    
}

#prev-btn, #next-btn {
    cursor: pointer;
    background: none;
    border: none;
}

button > span {
    color: #000;
}


/* --- CONTACTO SECTION --- */

.contacto {
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 70%;
    margin: auto;
    border-radius: 5px;
    padding-top: 12vh;
}

.contacto-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contacto h2 {
    font-weight: 400;
}

.contacto ul {
    display: flex;
    list-style: none;
    width: 50%;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.contacto li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.contacto ul li a {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.contacto i {
    font-size: 1.5em;
}

.separador-contacto {
    height: 3px;
    width: 60%;
}

/* --- FOOTER SECTION --- */

footer, .footer-txt-container {
    min-height: 15vh;
    margin-top: 5vh;
}

.footer-txt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    /* verde WhatsApp */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1000;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

/* Icono blanco dentro del botón */
.whatsapp-fab svg path {
    fill: white;
}

/* Hover / focus */
.whatsapp-fab:hover,
.whatsapp-fab:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    outline: none;
}

/* Accesibilidad: cuando el foco es por teclado */
.whatsapp-fab:focus-visible {
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22), 0 12px 28px rgba(0, 0, 0, 0.28);
}


/* --- MEDIA QUERIES --- */

@media screen and (min-width: 760px) {
    header, nav {
        flex-direction: row;
        justify-content: space-between;
        height: 12vh;
    }

    nav ul:first-child {
        padding-left: 4vw;
    }

    nav ul:last-child {
        padding-right: 4vw;
        gap: 40px;
    }

    .main-link a img{
        max-width: 10vh;
        margin-top: 6px;
    }

    .btn-menu {
        display: none;
    }

    .menu {
        display: flex;
        position: relative;
        flex-direction: row;
        width: auto;
        top: 0;
        background: none;
        box-shadow: none;
    }

    .hero {
        min-height: 100vh;
        align-items: flex-start;
        background: url("../img/estudio-contable-hero-optimizada.jpg");
        background-size: cover;
        text-align: left;
    }

    .hero-info {
        align-items: flex-start;
        justify-content: center;
        background-color: #ffffffbd;
        height: 100vh;
        width: 50%;
        margin-top: 0;
    }

    .hero-info p, h1 {
        margin-left: 5vw;
    }

    .separador {
        margin-left: 5vw;
    }

    .servicios-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        min-height: 110vh;
        grid-auto-flow: dense;
        justify-content: center;
        max-width: 60vw;
        
    }

    .about {
        min-height: 100vh;
    }

    .about-background-img {
        background-attachment: fixed;
    }

    .about-txt-container {
        max-width: 40vw;
    }

    .separador-about, .separador-contacto, .separador-servicios, .separador-testimonios, .separador-testimonio-p {
        margin-left: 0;
    }

    .testimonio-wrapper {
        max-width: 45vw;
    }

    h2 {
        font-size: 2em;
    }

    .contacto i {
        font-size: 2em;
    }
}









