@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&display=swap');

:root {
    --background: linear-gradient(135deg, #667Eea7e 0%, #764ba298 100%);
    --background2: linear-gradient(to right, #667Eea 0%, #764ba2 100%);
    --color-primary: #667Eea;
    --color-secondary: #764ba2;
    --button_padding: 14px 30px;
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --radius: 16px;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-system);
    background: var(--background2);
    margin: 0;
    padding: 0;
    color: #222;
    -webkit-tap-highlight-color: transparent; /* Quita highlight azul al tocar en iOS */
    -webkit-user-select: none; /* Evitar selección incómoda */
    user-select: none;
    overscroll-behavior-y: contain; /* Scroll mas natural */
}

.resume {
    max-width: 1000px;
    margin: 25px auto;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 12px 24px var(--shadow-light);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.resume:hover {
    box-shadow: 0 20px 40px var(--shadow-strong);
}

.left {
    background: #292b2f;
    width: 100%;
    max-width: 250px;
    padding: 30px 20px;
    flex-shrink: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left .img_holder {
    padding: 0 0 20px;
    width: 100%;
    text-align: center;
}

.left .img_holder img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%; /* Más circular, iOS style */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.left .img_holder img:hover {
    transform: scale(1.05);
}

.title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-top: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--color-primary);
    text-align: center;
}

.left .icon {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.left .text {
    font-size: 14px;
    color: #ddd;
    text-align: center;
}

.right {
    flex: 1;
    width: 100%;
    background: #fafafa;
    padding: 30px 40px;
    overflow-y: auto;
}

.right_inner {
    color: #222;
}

.header {
    margin-bottom: 25px;
}

.header .name {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.header .role {
    font-weight: 400;
    font-size: 18px;
    color: #444;
    margin-top: 6px;
    font-style: italic;
}

.header .about {
    margin-top: 20px;
    font-weight: 300;
    line-height: 1.5;
    color: #555;
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0 auto 40px auto;
    gap: 18px;
    list-style: none;
    max-width: 480px;
}

.skills .li_wrap {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.25s ease;
    cursor: default;
    user-select: none;
}

.skills .li_wrap:hover {
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.skills .li_wrap .icon {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1;
}

.skills .li_wrap .text {
    margin-top: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

button, .btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: var(--button_padding);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    user-select: none;
}

button:hover, .btn:hover {
    background: var(--color-secondary);
    box-shadow: 0 12px 20px rgba(118, 75, 162, 0.5);
    transform: translateY(-2px);
}

button:active, .btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 10px rgba(102, 126, 234, 0.25);
}

input, textarea {
    font-family: var(--font-system);
    border-radius: var(--radius);
    border: 1px solid #ccc;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #f0f0f0;
}

.scrollbar::-webkit-scrollbar {
    width: 8px;
}

.scrollbar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: var(--radius);
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .resume {
        flex-direction: column;
        margin: 10px;
        border-radius: 12px;
        box-shadow: 0 8px 16px var(--shadow-light);
    }

    .left {
        max-width: 100%;
        padding: 20px 15px;
    }

    .left .img_holder img {
        max-width: 140px;
    }

    .title {
        font-size: 18px;
    }

    .header .name {
        font-size: 26px;
    }

    .header .role {
        font-size: 16px;
    }

    .right {
        padding: 25px 20px;
    }

    .skills .li_wrap {
        width: 85px;
        height: 85px;
        border-radius: 14px;
    }

    .skills .li_wrap .icon {
        font-size: 28px;
    }

    .skills .li_wrap .text {
        font-size: 12px;
        letter-spacing: 0.04em;
    }

    button, .btn {
        font-size: 14px;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .header .name {
        font-size: 22px;
    }

    .header .role {
        font-size: 14px;
    }

    .skills ul {
        max-width: 100%;
        padding: 0 10px;
        justify-content: flex-start;
        gap: 12px;
    }

    .skills .li_wrap {
        width: 70px;
        height: 70px;
        border-radius: 12px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.06);
    }

    .skills .li_wrap .icon {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .skills .li_wrap .text {
        font-size: 10px;
    }
}
