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

html {
    scroll-behavior: smooth;
}

/* ===== Fondo rosado ===== */
body {
    background: linear-gradient(135deg, #fce4ec 0%, #f8c8dc 50%, #f4b6cf 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #3d1f2d;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
    line-height: 1.6;
}

/* ===== Tarjeta contenedora ===== */
.contenedor {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 50px 60px;
    max-width: 780px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(139, 47, 90, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Foto centrada ===== */
.foto-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.foto {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 25px rgba(139, 47, 90, 0.25);
    transition: transform 0.3s ease;
}

.foto:hover {
    transform: scale(1.05);
}

/* ===== Nombre dentro de rectángulo ===== */
.nombre-rectangulo {
    display: inline-block;
    background: linear-gradient(135deg, #8b2f5a 0%, #b8447a 100%);
    padding: 18px 40px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(139, 47, 90, 0.3);
    margin-bottom: 22px;
    max-width: 100%;
}

.nombre {
    font-size: 1.9rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* ===== Subtítulo ===== */
.subtitulo {
    font-size: 1.1rem;
    color: #8b2f5a;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.3px;
    margin-bottom: 0;
}

/* ===== Espacio de dos líneas ===== */
.espacio {
    height: 2.6em;
}

/* ===== Secciones ===== */
.seccion {
    margin-bottom: 35px;
    text-align: left;
}

.seccion:last-child {
    margin-bottom: 0;
}

.seccion-titulo {
    font-size: 1.25rem;
    color: #8b2f5a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8a8c4;
}

/* ===== Lista de skills ===== */
.lista-skills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.lista-skills li {
    background: linear-gradient(135deg, #fde8f0 0%, #fbd0e1 100%);
    color: #6b2346;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.98rem;
    font-weight: 500;
    border: 1px solid #e8a8c4;
    box-shadow: 0 3px 8px rgba(139, 47, 90, 0.1);
    transition: all 0.25s ease;
}

.lista-skills li:hover {
    background: linear-gradient(135deg, #8b2f5a 0%, #b8447a 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 47, 90, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    body {
        padding: 25px 12px;
    }

    .contenedor {
        padding: 35px 22px;
        border-radius: 18px;
    }

    .foto {
        width: 135px;
        height: 135px;
    }

    .nombre-rectangulo {
        padding: 14px 22px;
        border-radius: 12px;
    }

    .nombre {
        font-size: 1.35rem;
    }

    .subtitulo {
        font-size: 0.95rem;
    }

    .seccion-titulo {
        font-size: 1.05rem;
        letter-spacing: 1.2px;
    }

    .lista-skills li {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
