* {
    box-sizing: border-box;
}

html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background-color: aliceblue;
}

/* Imagen general */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Imágenes con sombra */
.card-img,
.card-team img {
    margin-top: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo img {
    width: 120px;
    height: auto;
    border-radius: 50%;
}

/* Header / Navbar */
.nav-container {
    padding: 60px 10px 20px 10px;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav a {
    color: rgb(60, 60, 60);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #496b7e;
}

/* Team section */
.grid-team {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.card-team {
    width: 250px;
    text-align: center;
    padding: 10px;
}

.card {
    text-align: center;
    margin: 0 10%;
}

h2 {
    text-align: center;
}

h3, h4 {
    font-size: 18px;
    font-weight: normal;
}

.consultora {
    color: #1F2A44;
    font-weight: 700;
}

/* Servicios */
.grid-services {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 5%;
}

.card-services {
    display: flex;
    align-items: center;
    gap: 40px;
}

.card-services-img{
    width: 400px;
}
.fila-normal {
    flex-direction: row;
    margin: 0 0 40px 40px;
}

.fila-invertida {
    flex-direction: row-reverse;
    margin: 40px 40px 0 0;
}



.contenido-card-services {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    max-width: 60%;
}

/* Contacto */
.contacto-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    text-align: center;
}

.contacto-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1F2A44;
}

.contacto-container p {
    font-size: 16px;
    margin-bottom: 40px;
    color: #333;
}

.contacto-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.formulario-contacto {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f4f8fc;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.formulario-contacto label {
    font-weight: bold;
    text-align: left;
    color: #1F2A44;
}

.formulario-contacto input,
.formulario-contacto textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    resize: vertical;
}

.formulario-contacto button {
    background-color: #1F2A44;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.formulario-contacto button:hover {
    background-color: #A6FFB4;
    color: #1F2A44;
}

.info-contacto {
    flex: 1;
    min-width: 250px;
    text-align: left;
    color: #1F2A44;
}

.info-contacto h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #1F2A44;
}

.info-contacto p {
    font-size: 15px;
    margin: 10px 0;
}

/* Footer */
.footer {
    background-color: #1F2A44;
    color: white;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #A6FFB4;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #dcdcdc;
    text-decoration: none;
}

.footer-section a:hover {
    color: #A6FFB4;
}


.nav-container {
    padding: 20px 20px 10px 20px;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #1F2A44;
    cursor: pointer;
}

/* Solo en móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1001;
    }

    .nav ul {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: white;
        flex-direction: column;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        width: max-content;
        padding: 10px 20px;
        z-index: 1000;
    }

    .nav ul.active {
        display: flex;
    }

    .nav a {
        padding: 10px 0;
        width: 100%;
        text-align: left;
    }

    .logo img {
        width: 80px;
    }

    .card-services {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
}

    .card-services-img {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .card-services-img img {
        width: 80vw;
        height: auto;
        display: block;
        margin: 0 auto;
    }


    .card-services-img img{
        width: 100%;
        max-width: none;
        margin: 0 auto;
        display: block;
    }

    .contenido-card-services {
    max-width: 90%;
    }
    .fila-normal, .fila-invertida{
    flex-direction: row;
    margin: 0;
    }
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #425e9d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius:50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
}

#scrollToTop:hover {
    background-color: #A6FFB4;
    color: #1F2A44;
}
