@import url('https://fonts.googleapis.com/css2?family=Yantramanav:wght@300;400;500;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
    --color-primary: #0d47a1;
    --color-secondary: #0004ff;
    --color-text-light: #f0f0f0;
    --color-text-dark: #303030;
    --color-gray: #6a6a6a;
    --color-white: #fff;
    --color-black: #000;
    
    --transition-fast: 300ms ease;
    --transition-normal: 400ms ease;
    --transition-slow: 500ms ease;
    
    --shadow-light: 0 1px 10px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 4px 20px rgba(0, 172, 193, 0.3);
    
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {  
    font-family: 'Yantramanav', sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), 
                url(images/001.jpg) center/cover no-repeat fixed;
    position: relative;
    display: flex;
}

header h1 {
    color: #c7c7c7;
    position: absolute;
    font-size: clamp(1.5rem, 5vw, 3rem);
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    cursor: default;
    top: 15%;
}

header .bglogo {
    position: absolute;
    height: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

/* NAVEGACIÓN */
.nav {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    transition: background-color var(--transition-slow), 
                box-shadow var(--transition-slow);
    z-index: 999;
}

.nav.active {
    background-color: rgba(13, 71, 161, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
}

.nav .logo img {
    height: 80px;
    transition: height var(--transition-slow), 
                border-radius var(--transition-slow);
    border-radius: 50px;
}

.nav.active .logo img {
    height: 60px;
    border-radius: var(--border-radius-lg);
}

/* MENÚ */
.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin: 10px;
}

.menu li a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all var(--transition-slow);
    padding-left: 30px;
}

.menu li a:hover {
    padding: 15px 15px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-lg);
}

.nav.active a,
.nav.active .menu-btn i {
    color: var(--color-white);
}

.nav.active a:hover {
    background-color: var(--color-primary);
}

.menu-btn {
    color: var(--color-white);
    font-size: 25px;
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.cerrarmenu {
    display: none;
}

/* ===== SERVICIOS ===== */
.title-servicios {
    margin-top: 85px;
}

.title-servicios h2 {
    padding: 10px;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.title-servicios p {
    max-width: 80%;
    margin: 0 auto 50px;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    color: var(--color-gray);
    transition: all var(--transition-normal);
}

/* CONTENEDOR DE TARJETAS */
.container-servicios {
    transform-style: preserve-3d;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1em;
    width: 80%;
    margin: 0 auto;
}

/* TARJETA GENERAL */
.card {
    width: 30%;
    padding: 10px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    cursor: default;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* TARJETA DESTACADA (EMA) */
.card-destacada {
    background: linear-gradient(135deg, #e0f7fa, #f1f8e9);
    border: 2px solid #00acc1;
    box-shadow: var(--shadow-heavy);
}

.card-destacada h3 {
    color: #00796b;
}

.card-destacada p {
    background-color: rgba(0, 172, 193, 0.1);
}

/* FIGURA E IMAGEN */
.card figure {
    display: flex;
    justify-content: center;
}

.card img {
    padding: 5px;
    margin-bottom: 10px;
    width: 40%;
    border-radius: var(--border-radius-lg);
    transition: transform var(--transition-slow);
}

.card:hover > figure img {
    transform: scale(1.1);
}

/* CONTENIDO DE LA TARJETA */
.card .content {
    padding: 15px;
    text-align: center;
}

.card .content h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.card .content p {
    line-height: 1.5;
    color: var(--color-text-dark);
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 10px;
}

/* ANIMACIÓN DE ENTRADA */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NOSOTROS (PARALLAX) ===== */
.container-us {
    margin-top: 50px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: center fixed url("images/nosotros.jpg");
    background-size: cover;
    width: 100%;
}

.title-nosotros {
    min-height: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius-sm);
    width: 80%;
    margin: 90px auto 70px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 20px;
}

.title-nosotros h2 {
    color: var(--color-white);
    width: 90%;
    text-align: center;
    margin: 0 auto;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.title-nosotros p {
    width: 90%;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 5px;
    transition: all var(--transition-normal);
    margin: 0 auto;
    font-size: 1.2rem;
}

.title-nosotros .colum1,
.title-nosotros .colum-ema {
    width: 30%;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    color: var(--color-white);
}

.title-nosotros .colum1 .row {
    width: 90%;
}

.title-nosotros .colum2 {
    width: 30%;
}

.title-nosotros .colum2 .row {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.title-nosotros .colum2 .row h3 {
    color: var(--color-white);
    text-align: center;
    margin-bottom: 20px;
}

.title-nosotros .colum2 img {
    margin: 0 auto 20px;
}

.title-nosotros .colum3 {
    width: 60%;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    color: var(--color-white);
    margin-bottom: 25px;
}

.title-nosotros .colum3 p {
    margin-bottom: 20px;
}

.title-nosotros .colum3 a {
    text-decoration: none;
    font-size: 1.25rem;
    color: var(--color-white);
    background-color: var(--color-secondary);
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-slow);
    display: inline-block;
}

.title-nosotros .colum3 a:hover {
    color: var(--color-secondary);
    background-color: var(--color-white);
    transform: scale(1.05);
}

/* COLUMNA EMA */
.title-nosotros .colum-ema .row {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-nosotros .colum-ema img {
  aspect-ratio: 8 / 3;
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.title-nosotros .colum-ema h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.title-nosotros .colum-ema a {
  text-decoration: none;
  padding: 5px 10px;
  background-color: rgba(106, 106, 106, 0.1);
  color: #f0f0f0;
  border-radius: 6px;
  transition: all 300ms ease;
}

.title-nosotros .colum-ema a:hover {
  transform: scale(1.05);
  color: #0004ff;
  background-color: rgba(255, 255, 255, 0.2);
}

.title-nosotros .colum-ema img.ema-img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== PORTAFOLIO ===== */
.title-portafolio {
    margin-top: 28px;
}

.title-portafolio h2 {
    color: var(--color-black);
    width: 100%;
    text-align: center;
    margin-top: 60px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.title-portafolio p {
    width: 100%;
    color: rgba(0, 0, 0, 0.75);
    text-align: center;
    padding: 5px;
    transition: all var(--transition-normal);
    margin-bottom: 15px;
}

.portafolio {
    padding: 10px;
    width: 80%;
    margin: 0 auto 50px;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.empresas {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.empresas .clientes {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 30%;
    height: 280px;
    align-items: center;
    justify-content: center;
    gap: 1em;
    overflow: hidden;
    color: var(--color-white);
    cursor: default;
    border-radius: var(--border-radius-sm);
    border: 1px solid gray;
    transition: all var(--transition-slow);
}

.empresas img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: all var(--transition-slow);
}

.empresas .clientes h3 {
    width: 80%;
    visibility: visible;
    color: var(--color-white);
    transform: translateX(-150%);
    z-index: 2;
    transition: all var(--transition-normal);
}

.empresas .clientes p {
    width: 80%;
    visibility: visible;
    color: rgba(255, 255, 255, 0.85);
    transform: translateX(-200%);
    z-index: 2;
    transition: all var(--transition-normal);
}

.empresas .clientes a {
    text-decoration: none;
    padding: 5px 10px;
    transform: translateX(-200%);
    color: var(--color-white);
    visibility: hidden;
    background-color: var(--color-secondary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.empresas .clientes:hover {
    background-color: rgba(0, 0, 0, 0.85);
}

.empresas .clientes:hover > img {
    transform: rotate(-3deg) scale(1.1);
}

.empresas .clientes:hover > h3,
.empresas .clientes:hover > p,
.empresas .clientes:hover > a {
    transform: translateX(0);
}

.empresas .clientes:hover > a {
    visibility: visible;
}

.empresas .clientes a:hover {
    transform: scale(1.15);
}

/* ===== EQUIPO ===== */
.Equipo {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-white));
    padding-bottom: 50px;
}

.title-equipo {
    width: 100%;
    text-align: center;
    padding-top: 50px;
    margin-bottom: 50px;
}

.title-equipo h2 {
    color: var(--color-white);
    width: 80%;
    margin: 50px auto 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.subtitulo-equipo {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-white);
    margin: 20px 0 10px;
    font-weight: 400;
}

.title-equipo p {
    width: 80%;
    margin: 0 auto 15px;
    text-align: center;
    color: var(--color-white);
}

.container-team {
    display: flex;
    flex-wrap: wrap;
    width: 85%;
    margin: 0 auto;
    gap: 2rem;
    justify-content: center;
    padding-bottom: 30px;
}

.container-team .integrante {
    width: 42%;
    text-align: center;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-slow);
    background-color: var(--color-white);
    padding-bottom: 20px;
}

.container-team .integrante:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.container-team .integrante.destacado {
    border: 3px solid var(--color-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.container-team .integrante h3 {
    font-size: 2rem;
    width: 100%;
    color: var(--color-secondary);
    background-color: var(--color-white);
    padding: 15px 0;
}

.container-team .integrante h4 {
    font-size: 1.5rem;
    width: 100%;
    color: #333;
    margin-top: 10px;
}

.container-team .integrante small {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.container-team .integrante p {
    padding: 10px;
    width: 80%;
    margin: 0 auto;
    color: #333;
}

.container-team .integrante img {
    width: 50%;
    max-width: 300px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: all var(--transition-slow);
    border-radius: 25px;
    box-shadow: var(--shadow-medium);
    margin: 10px auto;
}

/* ===== CONTACTO ===== */
.contact {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    margin-bottom: 50px;
}

.contact .title-contacto {
    text-align: center;
    color: var(--color-text-light);
    width: 90%;
    margin: 60px auto 30px;
    background-color: #555;
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.contact .title-contacto p {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.contact .orientacion-flex {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact .info-contact {
    width: 80%;
    max-width: 700px;
    color: var(--color-text-light);
    margin: 0 auto;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    background-color: rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contact .info-contact p {
    padding: 10px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
}

.contact .info-contact p:hover {
    color: var(--color-secondary);
}

.contact .info-contact i {
    font-size: 1.3rem;
    color: var(--color-text-light);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact .info-contact p:hover i {
    transform: scale(1.2);
    color: var(--color-secondary);
}

.contact .info-contact a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.contact .info-contact a:hover {
    color: var(--color-secondary);
}

/* ===== PIE DE PÁGINA ===== */
.pie-pagina {
    width: 100%;
    padding: 20px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social {
    margin-bottom: 10px;
}

.footer-social a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 2rem;
    color: var(--color-white);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.footer-social a:hover {
    color: skyblue;
    transform: scale(1.2);
}

.hechoee {
    width: 100%;
    text-align: right;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
    .titulo-inicio {
        top: 30%;
        text-align: center;
        font-size: 1.5rem;
    }

    .nav {
        position: fixed;
        padding: 20px;
    }

    .menu-btn {
        display: block;
    }

    .cerrarmenu {
        display: block;
        font-size: 2rem;
        color: var(--color-white);
        cursor: pointer;
        margin-top: 20px;
        margin-left: auto;
        padding: 10px;
    }

    .menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: transform var(--transition-slow);
        transform: translateX(100%);
        z-index: 1000;
    }

    .menu.active {
        transform: translateX(0);
    }

    .menu li {
        margin: 15px 0;
    }

    .menu li a {
        padding-left: 0;
    }

    /* Servicios */
    .container-servicios {
        flex-direction: column;
        align-items: center;
        width: 90%;
    }

    .card {
        width: 85%;
    }

    /* Nosotros */
    .title-nosotros {
        flex-direction: column;
        width: 90%;
    }

    .title-nosotros .colum1,
    .title-nosotros .colum2,
    .title-nosotros .colum-ema,
    .title-nosotros .colum3 {
        width: 100%;
    }

    .title-nosotros .colum1 p,
    .title-nosotros .colum2 p {
        width: 90%;
        margin: 0 auto;
    }

    /* Portafolio */
    .empresas .clientes {
        width: 90%;
        height: auto;
        min-height: 280px;
    }

    /* Equipo */
    .container-team {
        flex-direction: column;
    }

    .container-team .integrante {
        width: 85%;
        margin: 0 auto;
    }

    /* Contacto */
    .contact .info-contact {
        width: 95%;
        margin-bottom: 20px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .titulo-inicio {
        font-size: 1.2rem;
    }

    .nav .logo img {
        height: 60px;
    }

    .nav.active .logo img {
        height: 50px;
    }

    .card {
        width: 95%;
    }

    .title-nosotros,
    .portafolio,
    .container-servicios {
        width: 95%;
    }

    .empresas .clientes {
        width: 95%;
    }

    .container-team .integrante {
        width: 95%;
    }
}