* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    background-color: #ffffff;
    line-height: 1.6;
}


header {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.logo span {
    color: #008cd6;
}


.profile-container {
    position: relative;
    display: flex;
    align-items: center;
}


.profile-avatar {
    width: 35px;          
    height: 35px;
    border-radius: 50%;   
    object-fit: cover;    
    cursor: pointer;
    border: 2px solid #008cd6; 
    transition: transform 0.2s ease;
}

.profile-avatar:hover {
    transform: scale(1.05); 
}

.profile-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #ffffff;
    color: #333;
    width: 260px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 20px;
    display: none; 
    text-align: left;
}

.profile-menu.show {
    display: block; 
}

.profile-menu h4 {
    color: #1a1a1a;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.profile-menu .role {
    color: #008cd6;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.profile-menu p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    border-top: 1px solid #eee;
    padding-top: 10px;
}


/* Contenedor para alinear el contador y la foto a la derecha */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px; /* Separación entre el contador y la foto de perfil */
}

/* Caja del contador estilizada para el menú negro */
.nav-contador {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #252525; /* Gris un poco más claro que el header */
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #333;
    font-size: 0.9rem;
    color: #008cd6; /* El icono toma el azul de tu paleta */
    }


.hero {
  
    background-image: linear-gradient(rgba(182, 194, 201, 0.85), rgba(214, 235, 247, 0.85)), url('./img/hero.jpg');
    background-size: cover;        
    background-position: center;    
    background-repeat: no-repeat;
    text-align: center;
    padding: 100px 20px;            
}

.hero h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 400;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
}

.btn-comenzar {
    background-color: #008cd6;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-comenzar:hover {
    background-color: #006fa8;
}


.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.main-content h2 {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 50px;
    font-weight: 400;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.feature-item {
    padding: 20px;
}

.feature-item i {
    font-size: 3.5rem;
    color: #008cd6;
    margin-bottom: 20px;
}

.feature-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}


.action-box {
    background-color: #f4f6f8;
    border-radius: 10px;
    padding: 40px 20px;
    margin-top: 20px;
}

.action-box h3 {
    color: #008cd6;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.links-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.links-flex a {
    color: #006fa8;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.links-flex a:hover {
    color: #111;
}



.page-banner {
    background-color: #d6ebf7;
    text-align: center;
    padding: 40px 20px;
}

.page-banner h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 400;
}


.info-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.info-section {
    margin-bottom: 50px;
    scroll-margin-top: 30px;
}

.info-section h2 {
    color: #008cd6;
    font-size: 1.8rem;
    border-bottom: 2px solid #d6ebf7;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 400;
}

.info-section p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.tech-box {
    background-color: #f4f6f8;
    border-left: 4px solid #008cd6;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.tech-box strong {
    color: #2c3e50;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: #008cd6;
    text-decoration: none;
    font-weight: bold;
}

.btn-back:hover {
    text-decoration: underline;
}



footer {
    background-color: #1a1a1a;
    color: #777;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
}