/* -------------------------
   GLOBAL
-------------------------- */

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background: #ffffff;
    line-height: 1.5;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(10,61,98,0.8);
}

header .logo img {
    height: 60px;
    width: auto;
}

header nav {
    display: flex;
    gap: 40px; /* separación aumentada */
}

header nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}
header nav a:hover {
    transform: scale(1.15);
}
/* Botón del header */
.btn-header {
    padding: 10px 18px;
    background: rgba(10, 61, 98, 1);
    border: 2px solid rgba(200, 255, 0, 1);
    color: white;
    border-radius: 6px;
    transition: 0.3s ease;
}

.btn-header:hover {
    background: white;
    color: rgba(10, 61, 98, 1);
    border-color: rgba(10, 61, 98, 1);
    transform: scale(1.07);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 220px 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            to right,
            rgba(10, 61, 98, 0.8),
            rgba(6, 45, 72, 0.8)
        ),
        url('colleagues-video-conferencing.jpg');  /* 🔹 referencia local */
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.7);  /* difumina y oscurece */
    z-index: -1;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 15px;
    text-align: center;
    margin-left: 15px;
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
    margin-left: 15px;
}

.btn-primario {
    padding: 12px 25px;
    background: white;
    color: rgba(10, 61, 98, 1);
    border: 2px solid rgba(200, 255, 0, 1);
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-block;
}

.btn-primario:hover {
    transform: scale(1.07);
    border-color: black;
}

/* SECTIONS */
section {
    padding: 80px 20px;
}

/* TITULOS */
.servicios h2,
.clientes h2,
.nosotros h2,
.contacto h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: rgba(10, 61, 98, 1);
}

/* SERVICIOS */
.grid {
    display: flex;
    gap: 5%;
    justify-content: center;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border-left: 6px solid rgba(10, 61, 98, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.servicios h3 {
    text-align: center;
    margin-bottom: 2.5%;
}

.card ol {
    margin: 10px 0 0 0;     /* elimina márgenes extra */
    padding-left: 20px;     /* sangría normal y elegante */
}

.card li {
    margin-bottom: 6px;     /* separa visualmente los ítems */
    font-size: 20px;
}

.card ul {
    margin: 10px 0 0 0;     /* elimina márgenes extra */
    padding-left: 20px;     /* sangría normal y elegante */
}
.lista_alineada {
    display: flex;
    justify-content: center;
}
/* CLIENTES */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cliente-card {
    background: rgba(230, 245, 255, 1);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid rgba(10, 61, 98, 1);
    text-align: center;
}

/*PROGRAMAS*/

.Programas {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;        /* separación visual */
    width: 100%;
    margin-bottom: 3%;
}

.Programa_1 {
    position: relative;
    perspective: 1200px; /* Para permitir la animación */
    height: 420px;       /* Fijar altura consistente */
    width: 300px;  /* columna consistente */
    background: transparent;          /* ❗ elimina el rectángulo blanco */
    border-radius: 15%;               /* ❗ coincide con flip-front/back */
    overflow: hidden;
}

.Programa_2 {
    position: relative;
    perspective: 1200px; /* Para permitir la animación */
    height: 420px;       /* Fijar altura consistente */
    width: 300px;
    background: transparent;          /* ❗ elimina el rectángulo blanco */
    border-radius: 15%;               /* ❗ coincide con flip-front/back */
    overflow: hidden;
}

.Programa_3 {
    position: relative;
    perspective: 1200px; /* Para permitir la animación */
    height: 420px;       /* Fijar altura consistente */
    width: 300px;
    background: transparent;          /* ❗ elimina el rectángulo blanco */
    border-radius: 15%;               /* ❗ coincide con flip-front/back */
    overflow: hidden;
}

.Programa_titulo {
    text-align: center;
    font-size: 20px;
    color: white;
    text-shadow: 4px 4px 6px rgba(0,0,0,0.6);
}

.Programas_texto {
    text-align: justify;
    font-size: 13px;
    color: white;
}

.Programa_subtitulo {
    text-align: center;
}

.btn-programas {
    background-color: #fff;
    color: black;
    border: 4px solid rgba(200, 255, 0, 1);
    border-radius: 15%;
    padding: 10px;
    display: flex;
    justify-self: center;
    font-weight: bold;
}

/* === FLIP CARD BASE === */
.flip-container {
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.9s ease;
}

/* Caras */
.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 6px solid rgba(200, 255, 0, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.flip-front {
    background-size: cover;
    background-position: center;
    color: #fff;
    background-blend-mode: overlay;
}

/* Dorso */
.flip-back {
    transform: rotateY(180deg);
    color: rgba(10, 61, 98, 1);
    padding: 25px;
    overflow-y: auto;
    backface-visibility: hidden;
}

.front-1 {
    background-image:
        linear-gradient(rgba(10, 61, 98, 0.75), rgba(10, 61, 98, 0.75)),
        url('Foto_Okey_Programa_1.jpg');
}

.back-1 {
    background-color: rgba(55, 125, 170, 1);
}

.front-2 {
    background-image:
        linear-gradient(rgba(6, 45, 72, 0.75), rgba(6, 45, 72, 0.75)),
        url('Foto_Okey_Programa_3.jpg');
}

.back-2 {
    background-color: rgba(28, 92, 138, 1);
}

.front-3 {
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)),
        url('Foto_Okey_Programa_2.jpg');
}

.back-3 {
    background-color: rgba(10, 61, 98, 1); 
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

/* Botón dentro del flip */
.btn-flip {
    padding: 10px 18px;
    background: white;
    color: rgba(10, 61, 98, 1);
    border: 2px solid rgba(200, 255, 0, 1);
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    align-self: center;
    transition: 0.3s ease;
}

.btn-flip:hover {
    transform: scale(1.07);
}

/* NOSOTROS */

.nosotros p {
    text-align: center;
    max-width: 700px;
    font-size: 18px;
    margin: 0 auto;
    margin-bottom: 30px;
    margin-top: 25px;
}

.nosotros h3 {
    text-align: center;
    margin: auto;
    font-size: 25px;
}

.nosotros h2 {
    color: #fff;
}
.nosotros {
    background: linear-gradient(
        to right,
        rgba(10, 61, 98, 1),
        rgba(6, 45, 72, 1)
        );
    color: white;
    padding: 100px 20px;
    position: relative;
}
.nosotros img {
    position: absolute;
    top: 20px;      /* ajusta según tu diseño */
    right: 20px;    /* esquina derecha */
    width: 150px;   /* ajusta el tamaño si querés */
    height: auto;
}

/* FOOTER */
footer {
    background: rgba(10, 61, 98, 1);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
/*FOTO*/
.foto_securities {
    width: 200px;
    height: auto;
}
.foto_secu {
    width: 200px;
    height: auto;
}

/*CONTACTO*/
.contacto img {
    display: block;
    margin: auto;
}
.contacto p {
    text-align: center;
    font-weight: bold;
    font-size: 25px;
    color: rgba(10, 61, 98, 1);
}
.div-grande {
    display: flex;
    justify-content: center;
    gap: 100px;
    align-items: flex-start;
    margin-top: 20px;
}
.hipervinculo_gmail {
    text-align: center;
    color: rgba(10, 61, 98, 1);
    font-size: 22px;
    display: block;
}
/*SolYCaro*/

.Imagen_Sol_Y_Caro {
    display: block;
    margin: auto;
}

.SolYCaro p {
    text-align: center;
    font-weight: bold;
    font-size: 25px;
    color: rgba(10, 61, 98, 1);
}

.icon-social {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.icon-social:hover {
    transform: scale(1.15);
}
/* -------------------------
   MEDIA QUERIES
-------------------------- */

@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {

    section {
        padding: 90px 120px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    header {
        padding: 10px 20px; /* Menos padding en móviles */
    }

    header .logo img {
        height: 40px; /* Logo más pequeño */
    }

    header nav {
        display: flex;
        flex-wrap: wrap;       /* permite que los enlaces se envuelvan */
        gap: 10px;             /* separación más pequeña */
    }

    header nav a {
        font-size: 14px;
        flex: 1 1 45%;         /* cada enlace ocupa ~45% del ancho */
        text-align: center;
    }

    /* Forzar que los dos últimos estén en la segunda fila */
    header nav a:nth-child(3),
    header nav a:nth-child(4) {
        order: 2;              /* se mueve a la segunda fila */
    }

    header nav a:nth-child(1),
    header nav a:nth-child(2) {
        order: 1;              /* primera fila */
    }
}
@media (max-width: 768px) {
    .nosotros img {
        width: 100px; /* más pequeño que el original de 150px */
        top: 10px;    /* opcional: ajusta la distancia superior */
        right: 10px;  /* opcional: ajusta la distancia derecha */
    }
}
@media (max-width: 768px) {
    .SolYCaro img {
        width: 300px;  /* ajusta según necesites */
        height: auto;  /* mantiene la proporción */
    }
}
@media (max-width: 768px) {
    .foto_securities {
        width: 170px;  /* tamaño reducido en móviles */
        height: auto;  /* mantiene proporción */
    }

    .foto_secu {
        width: 150px;  /* ajuste de las otras imágenes */
        height: auto;
    }
}
@media (max-width: 768px) {
    .Programas {
        flex-direction: column;   /* ❗ Cada tarjeta en una fila */
        align-items: center;      /* ❗ Centra cada tarjeta */
        gap: 60px;                /* ❗ Más espacio vertical entre tarjetas */
    }

    .Programa_1,
    .Programa_2,
    .Programa_3 {
        width: 90%;               /* ❗ Ocupa ancho cómodo sin deformarse */
        max-width: 320px;         /* ❗ Limita el tamaño para que no se estire */
        height: 450px;            /* ❗ Ajuste para móviles, mismo diseño */
    }
}
@media (max-width: 768px) {
    .icon-social {
        max-width: 32px;
        height: auto;
    }
}
@media (max-width: 768px) {
    .contacto p {
        font-size: 18px;
    }
}