* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    background: #1d1d1b;
}
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #1d1d1b;
    min-height: 100vh;
    min-height: 100dvh;
}
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.desktop-right {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card {
    position: relative;
    width: 100%;
    background: #1d1d1b;
    overflow: hidden;
}
.card img {
    width: 100%;
    display: block;
}
.info {
    position: absolute;
    top: 8%;
    right: 8%;
    text-align: right;
}
.name {
    color: #ffffff;
    font-size: 5vw;
    font-weight: 700;
    margin-bottom: 2%;
}
.title {
    color: #f5f5f5;
    font-size: 2.2vw;
    font-weight: 300;
    margin-bottom: 1%;
}
.contact {
    color: #f5f5f5;
    font-size: 2.2vw;
    font-weight: 400;
    margin-bottom: 1%;
}
.contact a {
    color: #f5f5f5;
    text-decoration: none;
}

.actions {
    padding: 20px 28px 24px;
    display: flex;
    gap: 20px;
}
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}
.btn-save {
    flex: 1;
    background: #1a1617;
    color: #ffffff;
    font-size: 11px;
}
.btn-save:active {
    background: #444;
}
.btn-connect {
    flex: 1;
    background: #f0f0f0;
    color: #2d2d2d;
}
.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social {
    padding: 22px 28px 40px;
    display: flex;
    justify-content: flex-start;
    gap: 22px;
}
.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1a1617;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s;
}
.social a:active, .social a:hover {
    background: #333;
}
.social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.products {
    padding: 25px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: flex-start;
    flex-grow: 1;
}
.product-card {
    width: calc(50% - 11px);
    max-width: 200px;
}
.product-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.btn-open {
    display: block;
    background: #1a1617;
    color: #ffffff;
    margin-top: 6px;
    padding: 8px 0;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
}
.btn-open:active, .btn-open:hover {
    background: #333;
}

.footer {
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: #1d1d1b;
    display: flex;
    align-items: center;
    margin-top: auto;
}
.footer-logo {
    height: 50px;
}

/* ========== MÓVIL PEQUEÑO ========== */
@media (max-width: 400px) {
    .name { font-size: 6vw; }
    .title { font-size: 3vw; }
    .contact { font-size: 3vw; }
    .social {
        gap: 18px;
        padding: 10px 28px;
    }
    .social a {
        width: 28px;
        height: 28px;
    }
    .social svg {
        width: 14px;
        height: 14px;
    }
}

/* ========== MÓVIL MEDIO ========== */
@media (min-width: 401px) and (max-width: 500px) {
    .name { font-size: 5vw; }
    .title { font-size: 2.8vw; }
    .contact { font-size: 2.8vw; }
}

/* ========== MÓVIL HORIZONTAL ========== */
@media (max-width: 899px) and (orientation: landscape) {
    .container {
        max-width: 100%;
        flex-direction: row;
    }
    .card {
        width: 40%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
    }
    .card img {
        height: 100%;
        object-fit: cover;
        object-position: 15% top;
    }
    .info {
        top: 5%;
        bottom: auto;
        right: 5%;
        left: auto;
        text-align: right;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    }
    .name { font-size: 20px; }
    .title { font-size: 10px; }
    .contact { font-size: 10px; }
    .desktop-right {
        margin-left: 40%;
        width: 60%;
        overflow-y: auto;
        max-height: 100vh;
        max-height: 100dvh;
    }
    .actions {
        padding: 10px 15px;
        gap: 8px;
    }
    .btn {
        padding: 10px 0;
        font-size: 12px;
    }
    .social {
        padding: 10px 15px;
        gap: 10px;
    }
    .social a {
        width: 24px;
        height: 24px;
    }
    .social svg {
        width: 12px;
        height: 12px;
    }
    .products {
        padding: 10px 15px;
        gap: 18px;
        justify-content: flex-start;
    }
    .product-card img {
        aspect-ratio: 1/1;
    }
    .footer {
        padding: 8px 15px;
    }
    .footer-logo {
        height: 20px;
    }
}

/* ========== TABLET ========== */
@media (min-width: 501px) and (max-width: 899px) {
    .name { font-size: 25px; }
    .title { font-size: 11px; }
    .contact { font-size: 11px; }
}

/* ========== DESKTOP ========== */
@media (min-width: 900px) {
    body {
        background: #1a1a1a;
    }
    .container {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Lado izquierdo: foto a pantalla completa */
    .card {
        width: 40%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
    }
    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 15% top;
    }
    .info {
        top: 6%;
        bottom: auto;
        right: 6%;
        left: auto;
        text-align: right;
        text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    }
    .name {
        font-size: 38px;
        margin-bottom: 6px;
    }
    .title {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .contact {
        font-size: 14px;
        margin-bottom: 3px;
    }

    /* Lado derecho: contenido */
    .desktop-right {
        margin-left: 40%;
        width: 60%;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 56px);
        min-height: calc(100dvh - 56px);
        background: #ffffff;
    }
    .actions {
        padding: 40px 70px 30px;
        gap: 30px;
    }
    .btn {
        padding: 10px 0;
        font-size: 13px;
        border-radius: 0;
    }
    .btn-save {
        flex: 1;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .btn-connect {
        flex: 1;
    }
    .btn:hover {
        opacity: 0.85;
    }

    .social {
        padding: 26px 70px 50px;
        justify-content: flex-start;
        gap: 26px;
    }
    .social a {
        width: 36px;
        height: 36px;
    }
    .social a:hover {
        transform: translateY(-2px);
        background: #333;
    }
    .social svg {
        width: 16px;
        height: 16px;
    }

    .products {
        padding: 30px 70px;
        justify-content: flex-start;
        gap: 30px;
        flex-grow: 1;
        align-items: flex-start;
    }
    .product-card {
        width: calc(50% - 15px);
        max-width: 300px;
    }
    .product-card img {
        border-radius: 0;
    }
    .btn-open {
        padding: 10px 0;
        font-size: 13px;
    }
    .btn-open:hover {
        background: #333;
    }

    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 12px 50px;
        z-index: 10;
    }
    .footer-logo {
        height: 34px;
        transform: scale(1.7);
        transform-origin: left center;
    }
}
