body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #104541;

    /* ── Scroll snap ── */
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* La nav NO participa en el snap, se queda fija arriba */
header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Estilos barra menú */
.barraNav{
    background: linear-gradient(to right, #47ad79, #092422);
    padding: 0 40px;
}

.menu{
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1800px;   /* ancho máximo */
}

.menu .derecha {
    margin-left: auto;
}

.menu li a{
    text-decoration: none;
    color: white;
    padding: 20px;
    display: block;
} 

.menu li a:hover{
    background-color: blueviolet;
}

.logo {
    display: inline-block;
    align-items: center;
    padding: 20px;
}

.logo img {
    vertical-align: middle;
}

/* CONTENEDOR DEL PERFIL */
.menuSesion {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* IMAGEN PERFIL */
.fotoPerfil {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    display: block;
}

/* DROPDOWN */
.dropdown {
    position: absolute !important;
    top: 100%;
    right: 0;
    margin-top: 8px;

    background: white;
    min-width: 170px;
    list-style: none;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;

    z-index: 1000;
}

.dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu > li {
    position: relative;
}

.dropdown li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.dropdown li a:hover {
    background-color: #f2f2f2;
}

.titulo {
    font-size: 40px;
    color: white;
    opacity: 0;
    transform: translateX(-100px);
    filter: blur(5px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    transition: 
        opacity 0.8s ease,
        transform 0.8s ease,
        filter 0.8s ease;
}

.titulo.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.subtitulo{
    font-size: 25px;
    color: white;
    opacity: 0;
    transform: translateX(+100px);
    filter: blur(5px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: 
        opacity 0.8s ease,
        transform 0.8s ease,
        filter 0.8s ease;
}

.subtitulo.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

#contPrincipal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 70px);
    text-align: center;
    padding: 2rem;

    position: relative;
    overflow: hidden;
    color: white;

    border-bottom: none;

    /* ── Punto de enganche ── */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Fondo */
#contPrincipal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #104541;
    background-image: url("imagenTitulo.png");
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    filter: brightness(0.45);
    z-index: 0;
    transform: scale(0.5);
    opacity: 0;
    animation: aparecerDesdeAtras 1s ease-out forwards;
}

/* El texto va por encima del fondo */
#contPrincipal h1,
#contPrincipal .subtitulo {
    position: relative;
    z-index: 1;
}

/* Animación */
@keyframes aparecerDesdeAtras {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Flecha que indica que hay contenido abajo */
#contPrincipal::after {
    content: "↓";
    position: absolute;
    bottom: 1.5rem;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    animation: bajar 2s ease-in-out infinite;
}

@keyframes bajar {
    0%, 100% { transform: translateY(0);    opacity: 0.4; }
    50%       { transform: translateY(8px); opacity: 1;   }
}

#contInformacion {
    background-color: #0a0a0a;
    padding: 3rem 6% 1.5rem;

    /* ── Punto de enganche ── */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.infoColumnas {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto 2rem;
}

.infoCol {
    flex: 1;
    min-width: 160px;
}

.infoTitulo {
    color: #47ad79;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.infoLista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.infoLista li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.infoLista a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color .2s ease;
}

.infoLista a:hover {
    color: #47ad79;
}

.infoCopyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.infoCopyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: normal;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .infoColumnas {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ─── Helpers de sección ─── */
.seccionHeader {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.seccionEtiqueta {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.seccionEtiqueta.verde  { color: #47ad79; }
.seccionEtiqueta.claro  { color: rgba(255,255,255,.5); }

.seccionTitulo {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: .8rem;
}

.seccionTitulo.oscuro { color: #092422; }
.seccionTitulo.claro  { color: #ffffff; }

.seccionSubtitulo {
    font-size: 16px;
    line-height: 1.7;
    font-weight: normal;
}

.seccionSubtitulo.oscuro { color: #3d5c54; }
.seccionSubtitulo.claro  { color: rgba(255,255,255,.6); }

/* ─── Cómo funciona ─── */
#contComoFunciona {
    background-color: #104541;
    padding: 4rem 6%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.pasoGrid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pasoCard {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 1.8rem;
    text-align: center;
}

.pasoNumero {
    display: inline-block;
    font-size: 36px;
    font-weight: 700;
    color: #47ad79;
    margin-bottom: .8rem;
    line-height: 1;
}

.pasoNombre {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: .6rem;
}

.pasoDesc {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    font-weight: normal;
}

.pasoFlecha {
    font-size: 28px;
    color: #47ad79;
    padding-top: 2.5rem;
    flex-shrink: 0;
}

/* ─── Para quién es ─── */
#contPerfiles {
    background-color: white;
    padding: 4rem 6%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.perfilGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.perfilCard {
    background: #f3f9f6;
    border: 1px solid #c8dfd9;
    border-radius: 14px;
    padding: 2rem;
    transition: box-shadow .2s ease;
}

.perfilCard:hover {
    box-shadow: 0 8px 24px rgba(9,36,34,.1);
}

.perfilCardDestacado {
    border-color: #47ad79;
    border-width: 2px;
    background: #e6f7ef;
}

.perfilIcono {
    width: 44px;
    height: 44px;
    background: #c8dfd9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.perfilIcono svg {
    width: 22px;
    height: 22px;
    color: #47ad79;
}

.perfilNombre {
    font-size: 18px;
    font-weight: 700;
    color: #092422;
    margin-bottom: 1rem;
}

.perfilLista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.perfilLista li {
    font-size: 14px;
    color: #3d5c54;
    padding-left: 1.2rem;
    position: relative;
}

.perfilLista li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #47ad79;
    font-weight: 700;
}

/* ─── Funcionalidades ─── */
#contFuncionalidades {
    background-color: #092422;
    padding: 4rem 6%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.funcGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.funcCard {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 1.6rem;
    transition: background .2s, border-color .2s;
}

.funcCard:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(71,173,121,.4);
}

.funcCard svg {
    width: 24px;
    height: 24px;
    color: #47ad79;
    margin-bottom: .9rem;
}

.funcCard h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: .5rem;
}

.funcCard p {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
    font-weight: normal;
}

/* ─── CTA ─── */
#contCTA {
    background: linear-gradient(135deg, #47ad79 0%, #104541 100%);
    padding: 4rem 6%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.ctaContenido {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.ctaTitulo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.ctaSubtitulo {
    font-size: 16px;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: normal;
}

.ctaBoton {
    display: inline-block;
    background: white;
    color: #092422;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: .9rem 2.4rem;
    border-radius: 8px;
    transition: background .2s, transform .15s;
}

.ctaBoton:hover {
    background: #e6f7ef;
    transform: translateY(-2px);
}

/* ─── Responsive secciones nuevas ─── */
@media (max-width: 768px) {
    .pasoGrid    { flex-direction: column; align-items: center; }
    .pasoFlecha  { transform: rotate(90deg); padding-top: 0; }
    .perfilGrid  { grid-template-columns: 1fr; }
    .funcGrid    { grid-template-columns: 1fr; }
}

/* ─── Sección tecnología ─── */
#contTecnologia {
    background-color: #104541;
    padding: 5rem 8%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.tecnoHeader {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.tecnoEtiqueta {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #47ad79;
    margin-bottom: .6rem;
}

.tecnoTitulo {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.tecnoSubtitulo {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-weight: normal;
}

.tecnoGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tecnoCard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 2.6rem;
    transition: background .2s ease, border-color .2s ease;
}

.tecnoCard:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(71, 173, 121, 0.4);
}

.tecnoCardDestacado {
    background: rgba(71, 173, 121, 0.1);
    border-color: rgba(71, 173, 121, 0.35);
}

.tecnoCardDestacado:hover {
    background: rgba(71, 173, 121, 0.15);
    border-color: rgba(71, 173, 121, 0.6);
}

.tecnoIcono {
    width: 48px;
    height: 48px;
    background: rgba(71, 173, 121, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.tecnoIcono svg {
    width: 24px;
    height: 24px;
    color: #47ad79;
}

.tecnoNombre {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: .7rem;
}

.tecnoDesc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-weight: normal;
}

.tecnoBadge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: .25rem .75rem;
}

.tecnoBadgeVerde {
    color: #47ad79;
    background: rgba(71, 173, 121, 0.1);
    border-color: rgba(71, 173, 121, 0.3);
}

@media (max-width: 768px) {
    .tecnoGrid {
        grid-template-columns: 1fr;
    }
}

/*Estilos apartado sobre nosotros*/

#contSobreNosotros{
    display: flex;
    align-items: flex-start;
    background-color: white;
    padding: 4rem 6%;
    gap: 3rem;
    border-bottom: none;

    /* ── Punto de enganche ── */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.imagenSobreNosotros img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(9, 36, 34, 0.15);
}

.textoSobreNosotros{
    flex: 1;
    width: 50%;
}

.textoNosotros {
    font-size: 16px;
    color: #3d5c54;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 520px;
    font-weight: normal;
}

.statsNosotros {
    display: flex;
    gap: 2rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.statNumero {
    font-size: 26px;
    font-weight: 700;
    color: #47ad79;
}

.statLabel {
    font-size: 13px;
    color: #7a9e96;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tituInfoNosotros{
    margin-left: 0;
    font-size: 30px;
    color: #092422;
    position: relative;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

/* Línea decorativa verde bajo el título */
.tituInfoNosotros::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 4px;
    background: #47ad79;
    border-radius: 2px;
}

/* Responsive para móviles */
@media (max-width: 768px){
    #contSobreNosotros{
        flex-direction: column;
    }

    .imagenSobreNosotros{
        width: 100%;
        margin-left: 0; 
    }

    .textoSobreNosotros{
        width: 100%;
        margin-left: 0;
    }
}