/* VARIABLES */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --dark: #0f172a;
    --dark-alt: #1e293b;
    --dark-light: #334155;
    --white: #ffffff;
    --light: #f8fafc;
    --text: #cbd5e1;
    --text-dark: #94a3b8;
    --border: #334155;
    --shadow: rgba(16, 185, 129, 0.1);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--dark);
    overflow-x: hidden;
}

/* NAVEGACIÓN */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-dev {
    color: var(--primary);
}

.logo-name {
    color: var(--white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link.active {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text);
    transition: color 0.3s;
}

/* HEADER */
.header {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    padding: 8rem 2rem 4rem;
    position: relative;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 4rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
}

.description {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background-color: transparent;
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: color 0.3s;
}

/* IMAGEN HEADER */
.header-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-container {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 40px var(--shadow);
    position: relative;
    z-index: 2;
}

.profile-circle::before {
    content: '';
    position: absolute;
    inset: -50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.3;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: var(--dark-alt);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.tech-icon svg {
    width: 100%;
    height: 100%;
}

/* Animación orbital - cada icono gira alrededor del círculo */
.icon-1 {
    animation: orbit1 20s linear infinite;
    transform-origin: 250px 250px;
}

.icon-2 {
    animation: orbit2 20s linear infinite;
    transform-origin: 250px 250px;
}

.icon-3 {
    animation: orbit3 20s linear infinite;
    transform-origin: 250px 250px;
}

.icon-4 {
    animation: orbit4 20s linear infinite;
    transform-origin: 250px 250px;
}

@keyframes orbit1 {
    from {
        transform: rotate(0deg) translateX(250px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(250px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    from {
        transform: rotate(90deg) translateX(250px) rotate(-90deg);
    }
    to {
        transform: rotate(450deg) translateX(250px) rotate(-450deg);
    }
}

@keyframes orbit3 {
    from {
        transform: rotate(180deg) translateX(250px) rotate(-180deg);
    }
    to {
        transform: rotate(540deg) translateX(250px) rotate(-540deg);
    }
}

@keyframes orbit4 {
    from {
        transform: rotate(270deg) translateX(250px) rotate(-270deg);
    }
    to {
        transform: rotate(630deg) translateX(250px) rotate(-630deg);
    }
}

/* CONTENEDOR */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* SECCIONES */
.section {
    padding: 6rem 0;
    background-color: var(--dark);
}

.section-dark {
    background-color: var(--dark-alt);
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

/* SOBRE MI */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.about-card {
    background: linear-gradient(135deg, var(--dark-alt), var(--dark-light));
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* HABILIDADES */
.skills-section {
    margin-top: 4rem;
}

.skills-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.skill-item svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
    transition: transform 0.3s ease;
}

.skill-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
    transition: transform 0.3s ease;
}

.skill-item:hover svg,
.skill-item:hover img {
    transform: translateY(-5px) scale(1.1);
}

.skill-item span {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    text-align: center;
}

/* Estilos especiales para habilidades blandas */
.soft-skills .skill-item svg {
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.5));
}

.soft-skills .skill-item:hover svg {
    transform: translateY(-5px) scale(1.15) rotate(5deg);
}

/* PROYECTOS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    /* Mantenemos tus estilos visuales previos */
    background-color: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    
    /* PROPIEDADES NUEVAS OBLIGATORIAS PARA EL ENLACE */
    display: block;          /* Para que la caja ocupe espacio correctamente */
    text-decoration: none;   /* Quita el subrayado del link */
    color: inherit;          /* Hereda el color de texto (blanco/gris) y no azul */
    cursor: pointer;         /* Muestra la manito al pasar el mouse */
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--dark-light);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.4rem 0.8rem;
    background-color: var(--dark-alt);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* CONTACTO */
.section-contact {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-left {
    padding-top: 2rem;
}

.contact-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.social-links-contact {
    display: flex;
    gap: 1.5rem;
}

.social-links-contact a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    transition: all 0.3s;
}

/* FORMULARIO */
.contact-form {
    background: linear-gradient(135deg, var(--dark-alt), var(--dark-light));
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dark);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* FOOTER */
footer {
    background-color: var(--dark);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem;
}

footer p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .header-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-image {
        order: -1;
    }

    .orbit-container {
        width: 400px;
        height: 400px;
    }

    .profile-circle {
        width: 300px;
        height: 300px;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        padding: 12px;
    }

    .icon-1, .icon-2, .icon-3, .icon-4 {
        transform-origin: 200px 200px;
    }

    @keyframes orbit1 {
        from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
    }

    @keyframes orbit2 {
        from { transform: rotate(90deg) translateX(200px) rotate(-90deg); }
        to { transform: rotate(450deg) translateX(200px) rotate(-450deg); }
    }

    @keyframes orbit3 {
        from { transform: rotate(180deg) translateX(200px) rotate(-180deg); }
        to { transform: rotate(540deg) translateX(200px) rotate(-540deg); }
    }

    @keyframes orbit4 {
        from { transform: rotate(270deg) translateX(200px) rotate(-270deg); }
        to { transform: rotate(630deg) translateX(200px) rotate(-630deg); }
    }

    .header-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
    }

    .orbit-container {
        width: 320px;
        height: 320px;
    }

    .profile-circle {
        width: 250px;
        height: 250px;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
        padding: 10px;
    }

    .icon-1, .icon-2, .icon-3, .icon-4 {
        transform-origin: 160px 160px;
    }

    @keyframes orbit1 {
        from { transform: rotate(0deg) translateX(160px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
    }

    @keyframes orbit2 {
        from { transform: rotate(90deg) translateX(160px) rotate(-90deg); }
        to { transform: rotate(450deg) translateX(160px) rotate(-450deg); }
    }

    @keyframes orbit3 {
        from { transform: rotate(180deg) translateX(160px) rotate(-180deg); }
        to { transform: rotate(540deg) translateX(160px) rotate(-540deg); }
    }

    @keyframes orbit4 {
        from { transform: rotate(270deg) translateX(160px) rotate(-270deg); }
        to { transform: rotate(630deg) translateX(160px) rotate(-630deg); }
    }
}

@media (max-width: 480px) {
    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .main-title {
        font-size: 2rem;
    }
}
/* NUEVOS ESTILOS PARA LA LISTA SOCIAL */

/* El contenedor principal (reemplaza visualmente al form) */
.contact-social-card {
    background: linear-gradient(135deg, var(--dark-alt), var(--dark-light));
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espacio entre cada botón */
}

/* Cada fila/botón de red social */
.social-row {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: var(--dark);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    gap: 1.5rem;
}

/* Efecto Hover: se ilumina y se mueve un poco */
.social-row:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    background-color: rgba(16, 185, 129, 0.05); /* Un toque muy sutil de verde */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Contenedor del icono SVG */
.social-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-alt);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0; /* Evita que el icono se aplaste */
}

/* Tamaño del SVG */
.social-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

/* Contenedor del texto */
.social-info {
    display: flex;
    flex-direction: column;
}

/* Nombre de la red (Gmail, Tiktok, etc) */
.social-name {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nombre de usuario */
.social-user {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

/* Hover: Cambiar color del usuario a verde */
.social-row:hover .social-user {
    color: var(--white);
}

/* AJUSTE RESPONSIVE */
@media (max-width: 480px) {
    .contact-social-card {
        padding: 1.5rem;
    }
    
    .social-row {
        padding: 0.8rem;
        gap: 1rem;
    }
    
    .social-user {
        font-size: 0.9rem;
    }
}
/* --- ESTILOS PARA LA NUEVA SECCIÓN DE REDES --- */

/* La tarjeta contenedora derecha */
.contact-social-card {
    background: linear-gradient(135deg, var(--dark-alt), var(--dark-light));
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espacio entre redes */
    height: 100%; /* Para que ocupe la misma altura que la columna izq si es necesario */
}

/* Cada botón de red social */
.social-row {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: var(--dark);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    gap: 1.5rem;
}

/* Efecto al pasar el mouse */
.social-row:hover {
    border-color: var(--primary);
    transform: translateX(5px); /* Se mueve un poco a la derecha */
    background-color: rgba(16, 185, 129, 0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* El círculo del icono */
.social-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-alt);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.social-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

/* Texto */
.social-info {
    display: flex;
    flex-direction: column;
}

.social-name {
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.social-user {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.social-row:hover .social-user {
    color: var(--white);
}

/* Ajuste móvil */
@media (max-width: 480px) {
    .contact-social-card {
        padding: 1.5rem;
    }
    .social-row {
        padding: 0.8rem;
        gap: 1rem;
    }
    .social-user {
        font-size: 0.9rem;
    }
}