/* VARIABLES DE DISEÑO */
:root {
    --fondo-base: #F8FFF4;      /* Crema suave */
    --primario-lavanda: #BDB3D2; /* Morado Primario */
    --secundario-gris: #9AA2B1;  /* Gris de apoyo */
    --acento-amarillo: #FAFAC6;  /* Amarillo de acento */
    --texto-negro: #1A1A1A;      /* Negro suave para lectura */
    --blanco-puro: #FFFFFF;
    --fuente-inter: 'Inter', sans-serif;
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 88px; 
    width: auto;      
    display: block;
}

.social-icons i {
    font-size: 1.2rem; /* Tamaño del icono */
    color: var(--secundario-gris); /* Tu #9AA2B1 */
}

.social-icons a:hover i {
    color: var(--primario-lavanda); /* Cambia de color al pasar el mouse */
}

/* NAVBAR: Alineación de los 3 grupos */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* ACCIONES (Iconos + Botón) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacio entre iconos y botón */
}

/* ICONOS SOCIALES */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--secundario-gris); /* El color #9AA2B1 */
    border-radius: 50%;
    transition: background 0.3s;
}

.social-icons a:hover {
    background-color: #f0f0f0;
}

.social-icons img {
    width: 20px;
    height: auto;
}

/* BOTÓN CONTACTAR */
.btn-contact {
    background-color: var(--primario-lavanda); /* Tu #BDB3D2 */
    color: var(--blanco-puro);
    padding: 10px 25px;
    border-radius: 30px; /* Bordes bien redondeados como tu imagen */
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

.btn-contact:hover {
    background-color: #afa3c7; /* Un lavanda un pelín más oscuro */
    transform: scale(1.05);
}

/* RESPONSIVO: Ocultar iconos en móvil para que no se amontone */
@media (max-width: 992px) {
    .nav-actions {
        display: none; /* O puedes moverlos a un menú hamburguesa */
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-inter);
    background-color: var(--fondo-base);
    color: var(--texto-negro);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVEGACIÓN */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primario-lavanda);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto-negro);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primario-lavanda);
}

/* HERO SECTION */
.hero-layout {
    display: flex;
    align-items: center; /* Centra el texto y la imagen verticalmente */
    justify-content: space-between;
    gap: 50px; /* Espacio entre el texto y la imagen */
    padding: 80px 0;
    text-align: left; /* Alineamos el texto a la izquierda */
}

/* Cajas flexibles para que tomen mitad y mitad */
.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center; /* Centra la imagen en su lado derecho */
}

/* Control de la imagen */
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px; /* Opcional: bordes redondeados si es una foto */
}

/* AJUSTES DE TEXTO PARA ESTE FORMATO */
.hero-desc {
    margin: 0 0 30px 0; /* Quitamos el margen automático que lo centraba */
    font-size: 1.1rem;
}

.stats {
    display: flex;
    justify-content: flex-start; /* Alineamos las estadísticas a la izquierda */
    gap: 40px;
}

/* -------------------------------------- */
/* ANIMACIÓN ZOOM IN (Igual a Animate.css)*/
/* -------------------------------------- */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}

.animate-zoom-in {
    animation: zoomIn 1s ease-out forwards;
}

/* -------------------------------------- */
/* RESPONSIVIDAD (Celulares)              */
/* -------------------------------------- */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column-reverse; /* Pone la imagen arriba y el texto abajo en celular */
        text-align: center;
        gap: 30px;
    }
    
    .stats {
        justify-content: center; /* Centra las estadísticas en celular */
    }
}
.hero {
    text-align: center;
    padding: 60px 0;
}

.profile-pic {
    width: 150px;
    height: 150px;
    background-color: var(--secundario-gris);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--blanco-puro);
}

.initials {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blanco-puro);
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.role {
    font-size: 1.5rem;
    color: var(--primario-lavanda);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.9rem;
    color: var(--secundario-gris);
}

.stat-item strong {
    font-size: 1.5rem;
    color: var(--texto-negro);
}

/* --- SECCIÓN HABILIDADES --- */
.skills-section {
    padding: 80px 0;
}

.skills-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-top: 40px;
}

.skills-column {
    flex: 1; /* Hace que ambas columnas midan lo mismo */
}

/* Títulos con la rayita de color al lado */
.column-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* La rayita vertical de color */
.column-title::before {
    content: "";
    width: 6px;
    height: 30px;
    border-radius: 10px;
}

.ux-title::before { background-color: var(--secundario-gris); } /* El gris #9AA2B1 */
.front-title::before { background-color: var(--primario-lavanda); } /* El lavanda #BDB3D2 */

/* Contenedor de las pastillas */
.tags-container {
    display: flex;
    flex-wrap: wrap; /* Para que las etiquetas salten de línea si no caben */
    gap: 12px;
}

/* Estilo de la Pastilla (Tag) */
.skill-tag {
    background-color: var(--blanco-puro);
    border: 1px solid #E0E0E0; /* Un borde gris muy suave */
    padding: 10px 24px;
    border-radius: 50px; /* Bordes totalmente redondeados */
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--texto-negro);
    transition: all 0.3s ease;
    cursor: default;
}

/* Efecto al pasar el mouse */
.skill-tag:hover {
    border-color: var(--primario-lavanda);
    color: var(--primario-lavanda);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- RESPONSIVIDAD (Móvil) --- */
@media (max-width: 768px) {
    .skills-grid {
        flex-direction: column; /* Se apilan una arriba de la otra */
        gap: 40px;
    }
}

/* PROYECTOS */
.section-title {
    font-size: 2.5rem;
    margin: 80px 0 50px;
    text-align: center;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--blanco-puro);
    border-radius: 16px;
    border: 2px solid rgba(154, 162, 177, 0.2);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    padding: 2px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(189, 179, 210, 0.2);
}

.card-image {
    height: 224px;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: var(--blanco-puro);
    position: relative;
}

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2), rgba(0,0,0,0));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.card-body {
    padding: 25px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag-yellow {
    background-color: var(--acento-amarillo);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--texto-negro);
}

.card-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.card-heading h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--texto-negro);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--secundario-gris);
    margin: 0;
}

.card-desc {
    font-size: 1rem;
    line-height: 1.625;
    color: rgba(26, 26, 26, 0.7);
    margin-bottom: 0;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--primario-lavanda);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

/* CONTACTO */
.contact-section {
    background-color:#E8DFF5; /* Un gris muy suave para separar */
    padding: 80px 0;
    margin-top: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.btn-submit {
    background-color: var(--primario-lavanda);
    color: var(--texto-negro); /* Como acordamos: Lavanda con texto oscuro */
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.footer {
    background-color: rgba(189, 179, 210, 0.7);
    padding: 60px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--secundario-gris);
    border-radius: 50%;
    color: var(--secundario-gris);
    font-size: 1.1rem;
    text-decoration: none;
    transition: border-color 0.3s, color 0.3s;
}

.footer-social-link:hover {
    border-color: var(--primario-lavanda);
    color: var(--primario-lavanda);
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(248, 255, 244, 0.2);
    margin: 48px 0 28px;
}

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    color: var(--secundario-gris);
    margin-bottom: 12px;
}

.footer-a11y {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--secundario-gris);
}

/* MEDIA QUERIES (RESPONSIVIDAD) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    h1 {
        font-size: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        gap: 20px;
    }
}