/* Variables CSS para colores */
:root {
    --primary-color: #6A051F; /* Vino Tinto Oscuro */
    --secondary-color: #C292A1; /* Palo de Rosa */
    --accent-color: #ab7a85; /* Dorado para acentos */
    --text-dark: #333;
    --text-light: #f8f8f8; /* Blanco roto */
    --bg-light: #ffffff;
    --bg-dark: #1a030d; /* Fondo muy oscuro para el footer/header */
    --font-heading: 'Playfair Display', serif; /* Más elegante */
    --font-body: 'Roboto', sans-serif;
    --font-code: 'Roboto Mono', monospace; /* Para un toque de código */
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

/* Estilos Generales */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

section {
    padding: 80px 20px; /* Más espacio para respirar */
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 30px; /* Botones más grandes */
    border-radius: 50px; /* Bordes más redondeados */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s ease;
    margin: 10px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: none;
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-color));
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-content {
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.5em; /* Título más grande */
    margin-bottom: 0.2em;
    color: var(--text-light);
    letter-spacing: 2px;
}

.hero-content .tagline {
    font-size: 1.8em;
    margin-bottom: 3em;
    font-family: var(--font-code); /* Estilo de código */
    opacity: 0.9;
}

/* Hero Animation (Ejemplo más abstracto y sutil) */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(var(--secondary-color-rgb), 0.1) 0%, rgba(var(--secondary-color-rgb), 0) 70%),
        radial-gradient(circle at 90% 80%, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--primary-color-rgb), 0) 70%);
    background-size: 400px 400px;
    animation: moveCircles 20s infinite alternate linear;
}

/* Definiendo RGB para las variables de color para usar en rgba() */
:root {
    --primary-color-rgb: 106, 5, 31; /* RGB de #6A051F */
    --secondary-color-rgb: 194, 146, 161; /* RGB de #C292A1 */
}

@keyframes moveCircles {
    0% { background-position: 0% 0%, 100% 100%; }
    100% { background-position: 100% 100%, 0% 0%; }
}

/* Acerca de Nosotros */
.about-section {
    background-color: var(--bg-light);
    padding-top: 100px; /* Espacio extra */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-card {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-card p {
    font-size: 1.1em;
    line-height: 1.8;
}

.skills-list ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.skills-list li {
    margin-bottom: 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-code);
    font-size: 1em;
}

.skill-bar {
    height: 10px; /* Barras más gruesas */
    background-color: #eee;
    border-radius: 5px;
    flex-grow: 1;
    margin-left: 15px;
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--secondary-color); /* Color de palo de rosa para las barras */
    width: 0; /* JS animará esto */
    border-radius: 5px;
}

/* El JavaScript asignará el ancho al pseudo-elemento ::after */
/* No necesitamos keyframes aquí si JS lo maneja al detectar el scroll */


/* Portafolio */
.portfolio-section {
    background-color: var(--f8f8f8); /* Un gris muy claro */
    padding-top: 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.project-card h3 {
    padding: 20px 25px 0;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 25px 20px;
    font-size: 1em;
    flex-grow: 1; /* Para que las descripciones tengan la misma altura */
}

.project-links {
    padding: 0 25px 25px;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

.project-btn {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Contacto */
.contact-section {
    background-color: var(--bg-light);
    padding-top: 100px;
}

.contact-form {
    max-width: 600px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 30px;
    background-color: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1.05em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(106, 5, 31, 0.1);
}

.contact-form button {
    align-self: center; /* Centra el botón */
    margin-top: 20px;
}

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-7px) scale(1.15);
}

.social-links img {
    width: 50px; /* Iconos más grandes */
    height: 50px;
    filter: invert(10%) sepia(80%) saturate(2000%) hue-rotate(330deg) brightness(60%) contrast(100%); /* Color vino tinto */
}


/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 30px;
    text-align: center;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    h1 { font-size: 3.5em; }
    h2 { font-size: 2em; }
    .hero-content .tagline { font-size: 1.5em; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 1.8em; }
    .hero-content .tagline { font-size: 1.3em; }
    .about-grid { grid-template-columns: 1fr; }
    .about-card, .project-card, .contact-form {
        padding: 25px;
    }
    .btn { padding: 12px 25px; font-size: 1em; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    .hero-content .tagline { font-size: 1.1em; }
    .cta-buttons {
        flex-direction: column;
    }
    .btn {
        width: 90%;
        margin: 8px auto;
    }
    .social-links {
        gap: 15px;
    }
    .social-links img {
        width: 40px;
        height: 40px;
    }
}

/* Agrega esto al final de tu archivo Branding.css */

/* Estilos para las fotos de perfil */
.profile-photo {
    width: 150px; /* Tamaño de la foto */
    height: 150px;
    border-radius: 50%; /* Para hacerla circular */
    object-fit: cover; /* Asegura que la imagen se ajuste bien */
    margin-bottom: 20px;
    border: 5px solid var(--secondary-color); /* Borde de palo de rosa */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Nuevas clases para las barras de habilidades, si las habilidades son diferentes */
.skill-bar.uiux::after { width: var(--skill-width, 0%); background-color: var(--secondary-color); }
.skill-bar.nodejs::after { width: var(--skill-width, 0%); background-color: var(--secondary-color); }
.skill-bar.db::after { width: var(--skill-width, 0%); background-color: var(--secondary-color); }
.skill-bar.api::after { width: var(--skill-width, 0%); background-color: var(--secondary-color); }
.skill-bar.git::after { width: var(--skill-width, 0%); background-color: var(--secondary-color); }
.skill-bar.linux::after { width: var(--skill-width, 0%); background-color: var(--secondary-color); }
.skill-bar.cloud::after { width: var(--skill-width, 0%); background-color: var(--secondary-color); }

/* Ajuste general de las barras de habilidad para usar la variable --skill-width */
.skill-bar::after {
    width: var(--skill-width, 0%); /* Por defecto 0, JS lo actualizará */
    transition: width 1.5s ease-out; /* Animación de llenado */
}
/* Estilos para las tarjetas de perfil individuales */
.profile-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Para organizar el contenido verticalmente */
    flex-direction: column;
    align-items: center; /* Centra el contenido horizontalmente */
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.profile-card .profile-photo {
    width: 180px; /* Tamaño un poco más grande */
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 6px solid var(--secondary-color); /* Borde de palo de rosa */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.profile-card h3 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--primary-color); /* Vino tinto */
}

.profile-card .role {
    font-family: var(--font-body);
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 500;
    opacity: 0.8;
}

.profile-card .info-section {
    text-align: left; /* Alinea el texto dentro de las secciones */
    width: 100%; /* Ocupa el ancho completo de la tarjeta */
    margin-bottom: 20px;
    padding: 0 15px; /* Espaciado interno */
}

.profile-card .info-section h4 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    color: var(--secondary-color); /* Palo de rosa para subtítulos */
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1); /* Línea sutil */
    padding-bottom: 5px;
}

.profile-card .info-section p,
.profile-card .info-section ul {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

.profile-card .info-section ul {
    list-style: none;
    padding: 0;
}

.profile-card .info-section ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.profile-card .info-section ul li::before {
    content: '•'; /* Un punto o un pequeño icono */
    color: var(--accent-color); /* Dorado para el bullet point */
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Estilos para las etiquetas de habilidades */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-start; /* Alinea a la izquierda dentro de la tarjeta */
}

.skill-tag {
    background-color: var(--secondary-color); /* Fondo de palo de rosa */
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-family: var(--font-code); /* Fuente tipo código */
    white-space: nowrap; /* Evita que el texto de la etiqueta se rompa */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.skill-tag:hover {
    background-color: var(--primary-color); /* Vino tinto al pasar el ratón */
    transform: scale(1.05);
}

/* Estilos para los enlaces sociales dentro de la tarjeta */
.social-links-card {
    margin-top: 25px;
    display: flex;
    justify-content: center; /* Centra los iconos sociales */
    gap: 20px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.05); /* Línea divisoria sutil */
}

.social-links-card a img {
    width: 45px; /* Tamaño de los iconos sociales */
    height: 45px;
    filter: invert(10%) sepia(80%) saturate(2000%) hue-rotate(330deg) brightness(60%) contrast(100%); /* Color vino tinto */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links-card a:hover img {
    transform: translateY(-5px) scale(1.1);
    filter: invert(10%) sepia(90%) saturate(3000%) hue-rotate(330deg) brightness(80%) contrast(100%); /* Un poco más vibrante al pasar el ratón */
}
/* Estilos para el logo en la cabecera */
.site-logo {
    width: 120px; /* Ajusta el tamaño según tu preferencia */
    height: auto; /* Mantiene la proporción de la imagen */
    margin-bottom: 20px; /* Espacio debajo del logo */
    border-radius: 50%; /* Si quieres que sea circular, como los logos que te generé */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Sombra sutil para destacarlo */
    animation: fadeInScale 1.5s ease-out; /* Animación para que aparezca suavemente */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Estilos para enlaces en el copyright del footer */
.footer-link-codekin { /* Usamos la nueva clase */
    color: #ffffff; /* Color blanco, puedes usar var(--text-light) si está definido y es blanco */
    text-decoration: none;
    transition: color 0.3s ease; 
}

.footer-link-codekin:hover {
    color: var(--accent-color); /* Cambia a un color de acento al pasar el ratón */
    text-decoration: underline; 
}

/* Asegúrate de que el span padre tenga su color blanco también */
.ast-footer-copyright p span {
    color: #ffffff; /* Esto asegura que el resto del texto del span sea blanco */
}

/* Espacio entre el icono y el texto dentro del botón */
.hero-button i {
    margin-right: 8px; /* Espacio a la derecha del icono */
    font-size: 1.1em; /* Ajusta el tamaño del icono si es necesario */
    vertical-align: middle; /* Alinea el icono verticalmente con el texto */
}