:root {
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: #050510;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Cosmic & Silhouette */
.background-cosmic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: url('FamiliaNueva.jpg') center top / 70% auto no-repeat;
    background-color: #050510;
    overflow: hidden;
}

.stars-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.8), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: rotateStars 200s linear infinite;
    opacity: 0.6;
}

.silhouette-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 80vh;
    background: radial-gradient(ellipse at center, rgba(120, 80, 200, 0.15) 0%, transparent 70%);
    /* Placeholder for the silhouette shape using CSS */
    mask-image: linear-gradient(to top, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
    border-radius: 300px 300px 0 0;
    opacity: 0.8;
}

@keyframes rotateStars {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Share Button */
.share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

/* Main Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Profile */
.profile-header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.avatar-container {
    margin-bottom: 15px;
}

.avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 0 20px #000, 0 0 40px #000, 0 0 60px #000, 0 5px 10px rgba(0,0,0,1);
}

.profile-bio {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    color: #FFCC00;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 15px #000, 0 0 30px #000, 0 0 45px #000, 0 3px 8px rgba(0,0,0,1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    color: white;
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 0.7;
}

/* Typography for Sections */
.section-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 0.9), 2px 2px 4px #000;
}

.section-subtitle {
    font-size: 15px;
    color: #38bdf8;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 0.9), 2px 2px 4px #000;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, background 0.2s;
    overflow: hidden;
}

.glass-card:hover {
    transform: scale(1.02);
    background: rgba(40, 55, 75, 0.8);
}

/* Carousel Section */
.links-section {
    width: 100%;
    margin-bottom: 50px;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 15px;
    /* Allow scrolling horizontally */
    width: max-content;
    padding: 0 5px;
}

.carousel-item {
    display: flex;
    flex-direction: column;
    width: 280px;
    height: 120px;
    flex-shrink: 0;
}

.card-image {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 1px;
}

.bg-purple { background: linear-gradient(135deg, #6b21a8, #9333ea); }
.bg-magenta { background: linear-gradient(135deg, #be185d, #db2777); }
.bg-bluegreen { background: linear-gradient(135deg, #0f766e, #0ea5e9); }
.bg-red { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.profile-pic-bg { background: linear-gradient(135deg, #334155, #475569); }
.bg-dark { background: linear-gradient(135deg, #1e293b, #0f172a); }
.bg-white-robot { background: #ffffff; color: #000; font-size: 30px;}
.bg-black { background: #000000; }
.bg-gradient-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.logo-text {
    font-family: serif;
    font-style: italic;
    font-size: 30px;
}

.card-content {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 55px;
}

.card-content h3 {
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-content p {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Products Section */
.products-section {
    width: 100%;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.product-image {
    width: 80px;
    height: 100px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.book-green { background: radial-gradient(circle, #225a3d, #064e3b); }
.book-red { background: radial-gradient(circle, #991b1b, #7f1d1d); }

.book-cover {
    width: 60px;
    height: 85px;
    background: rgba(0,0,0,0.5);
    border-left: 2px solid rgba(255,255,255,0.4);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    text-align: center;
    transform: rotateY(-15deg);
}

.book-cover span {
    font-size: 7px;
    font-weight: bold;
    color: white;
}

.book-cover .rocket {
    font-size: 12px;
    margin-bottom: 5px;
}

.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.price-container {
    margin-bottom: 12px;
}

.price-current {
    font-weight: bold;
    font-size: 14px;
    margin-right: 8px;
}

.price-old {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.btn-product {
    display: inline-block;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    transition: background 0.2s;
}

.btn-product:hover {
    background: #e2e8f0;
}

/* Benefits Section */
.benefits-section {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefits-grid {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 30px;
    justify-content: center;
}

.benefit-card {
    flex: 1;
    padding: 15px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.benefit-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 5px;
}

.benefit-card h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* Call to Action Button */
.btn-main-cta {
    background: linear-gradient(135deg, #FFCC00, #F59E0B);
    color: #000;
    font-weight: 800;
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.btn-main-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
}

/* Footer Pro */
.footer-pro {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    width: 100%;
}

.footer-logo {
    color: #FFCC00;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

/* --- Responsive Design --- */
/* Tablets */
@media (min-width: 768px) {
    .container {
        max-width: 800px;
        padding: 80px 40px 100px;
    }
    
    .products-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }
    
    .product-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .product-details {
        width: 100%;
    }
}

/* PC / Desktops */
@media (min-width: 1024px) {
    .container {
        max-width: 1100px;
    }
    
    .carousel-container {
        overflow: visible;
    }
    
    .carousel-track {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        width: 100%;
        justify-content: center;
    }
    
    .carousel-item {
        width: 100%;
        height: auto;
    }
    
    .card-image {
        height: 300px !important;
    }
    
    .product-image {
        height: 300px;
    }
    
    .benefit-card {
        padding: 30px;
    }
    
    .benefit-img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .benefit-card h4 {
        font-size: 18px;
    }
    
    .btn-main-cta {
        max-width: 500px;
        font-size: 20px;
        padding: 20px 40px;
    }
}
