:root {
    --black: #000;
    --gray-dark: #1d1d1d;
    --gray-mid: #2e2e2e;
    --gold: #d4af37;
    --gold-dark: #987c0c;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--black);
    color: var(--white);
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding: 2rem;
}

.profile-card {
    background: var(--gray-dark);
    width: 420px;
    padding: 2rem;
    border-radius: 12px;
    margin: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    align-self: stretch;
}

.profile-card .profile-pic img {
    width: 250px;
    border-radius: 50%;
    border: 3px solid var(--gold);
}

.profile-details .intro h2 {
    margin-top: 20px;
    color: var(--gold);
    font-size: 24px;
}

.profile-details .intro h4 {
    background: var(--gray-mid);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--gold);
    font-weight: normal;
    margin: 10px 0;
}

.profile-details .social i {
    background: var(--black);
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    line-height: 38px;
    margin: 0 5px;
    transition: transform 0.3s;
}

.profile-details .social i:hover {
    transform: scale(1.2);
}

.contact-info {
    background: var(--gray-mid);
    padding: 15px;
    border-radius: 10px;
    margin-top: 50px;
    width: 100%;
}

.contact-info .row {
    display: flex;
    align-items: center;
    justify-content: start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.contact-info .row:last-child {
    border-bottom: none;
}

.row .icon {
    width: 40px;
    height: 40px;
    background: var(--black);
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
    margin-right: 15px;
    color: var(--gold);
}

.row .content span {
    font-size: 13px;
    color: #aaa;
}

.row .content h4 {
    color: var(--white);
    margin-top: 3px;
}

.highlight-red {
    color: #ff3b3f;
    font-weight: bold;
}

.btn-actualizar {
    margin-top: 50px;
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background-color: var(--gold);
    color: var(--black);
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-actualizar:hover {
    background-color: var(--gold-dark);
    transform: scale(1.05);
}

.back-button {
    margin-top: 5px;
    display: inline-block;
    width: 100%;
    background: #e53935;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #c62828;
    transform: scale(1.05);
}

/* ---- About Section ---- */

.about {
    background-color: var(--gray-dark);
    max-width: 900px;
    margin: 30px auto;
    padding: 2rem;
    border-radius: 12px;
    color: var(--white);
    align-self: stretch;
}

.about h1 {
    text-align: center;
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
}

.about h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 3px;
    background: #ff3b3f; /* rojo elegante */
    box-shadow: 0 0 8px #ff3b3f66;
}

.about h3 {
    text-align: left;
    font-size: 1.1 rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
}

.about h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    transform: translateX(-95%);
    width: 200px;
    height: 3px;
    background: #ff3b3f; /* rojo elegante */
    box-shadow: 0 0 8px #ff3b3f66;
}

.about p {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.extra-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: var(--gray-mid);
    border-radius: 10px;
    padding: 20px;
}

.info-card .row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.info-card .row:last-child {
    border-bottom: none;
}

.info-card .row .icon {
    width: 40px;
    height: 40px;
    background: var(--black);
    border-radius: 5px;
    text-align: center;
    line-height: 40px;
    margin-right: 15px;
    color: var(--gold);
}

.info-card .row .content span {
    font-size: 13px;
    color: #aaa;
}

.info-card .row .content h4 {
    color: var(--white);
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .extra-info {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 1.5rem;
    }

    .profile-card {
        width: 100%;
    }
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
    font-weight: bold;
    color: white;
}

form input[type="text"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.btn-dorado {
    background-color: #FFD700;
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-dorado:hover {
    background-color: #e6c200;
}

.btn-rojo {
    background-color: #e53935;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-rojo:hover {
    background-color: #c62828;
}

.row-password {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-cambiar {
    color: var(--gold);
    font-size: 13px;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.3s ease;
}

.link-cambiar:hover {
    color: var(--gold-dark);
    text-decoration: none;
}
