:root {
    --primary-blue: #0f54d1;
    --deep-blue: #082d6e;
    --accent-blue: #007bff;
    --white: #ffffff;
    --black: #000000;
    --glass-white: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --gold: #FFD43B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #0f54d1 0%, #082d6e 100%);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* === Hero & Layout === */
.hero {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    animation: zoomInHero 10s infinite alternate ease-in-out;
}

@keyframes zoomInHero {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 84, 209, 0) 0%,
            rgba(15, 84, 209, 0) 30%,
            rgba(15, 84, 209, 0.2) 60%,
            rgba(15, 84, 209, 0.6) 80%,
            rgba(15, 84, 209, 0.9) 95%,
            rgba(15, 84, 209, 1) 100%);
}

.top-nav {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.nav-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.nav-icon:hover {
    transform: rotate(10deg) scale(1.1);
    background: var(--gold);
}

.hero-content {
    width: 100%;
    max-width: 500px;
    padding: 0 20px 45px;
    text-align: center;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out;
}

.profile-name {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.check-emoji {
    font-size: 2rem;
    vertical-align: middle;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.5));
}

.profile-bio {
    font-size: 1.15rem;
    font-weight: 500;
    opacity: 1;
    margin-bottom: 30px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.social-icon[aria-label="WhatsApp"]:hover {
    color: #25D366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.social-icon[aria-label="Facebook"]:hover {
    color: #1877F2;
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-icon[aria-label="Phone"]:hover {
    color: #34D399;
    box-shadow: 0 10px 25px rgba(52, 211, 153, 0.4);
}

.social-icon[aria-label="Email"]:hover {
    color: #F87171;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.4);
}

/* === Main Content Area === */
.main-content {
    background: var(--primary-blue);
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 0 80px;
    position: relative;
    z-index: 5;
    margin-top: -2px;
    /* Slight overlap to kill the line */
}

.content-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
}

.toggle-container {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 20px;
    display: flex;
    margin-bottom: 45px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.toggle-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.content-section {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.content-section.active {
    display: flex;
    animation: fadeInSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.link-card {
    background: var(--white);
    color: var(--black);
    padding: 22px 30px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.link-card:hover {
    transform: translateX(10px);
    background: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.link-card i {
    font-size: 1.2rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.tienda-container {
    background: var(--gold);
    padding: 45px 25px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.tienda-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.product-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 30px;
    object-fit: cover;
    margin-bottom: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--white);
}

.product-name {
    color: #004085;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.visit-store-btn {
    background: var(--black);
    color: var(--white);
    padding: 22px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.3rem;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Contact Modal === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 45, 110, 0.85);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    /* Better for scrolling */
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #f8fafc;
    width: 100%;
    max-width: 420px;
    border-radius: 40px;
    padding: 40px 25px 30px;
    color: #1e293b;
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
    animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    margin: 40px auto;
    /* Margin for top/bottom when scrolling */
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.modal-header p {
    color: #64748b;
    font-weight: 500;
}

.contact-main-icon {
    font-size: 5.5rem;
    background: linear-gradient(135deg, #0f54d1, #082d6e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    animation: floating 3s infinite ease-in-out;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.contact-name {
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 5px;
}

.contact-title {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.contact-info-block {
    background: #ffffff;
    border-radius: 30px;
    padding: 25px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    padding: 10px;
    border-radius: 15px;
}

.info-item:hover {
    background: #f1f5f9;
    transform: scale(1.02);
}

.info-item i {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.info-text span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 2px;
}

.info-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.btn-save-contact {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 15px 30px rgba(15, 84, 209, 0.4);
    width: 100%;
}

.btn-save-contact:hover {
    transform: translateY(-5px) scale(1.05);
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 20px;
}

.action-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.action-circle:hover {
    transform: translateY(-8px) scale(1.1);
}

.action-circle:not(.close-modal):hover {
    background: #ebf4ff;
    color: #3182ce;
    border-color: #bee3f8;
}

.action-circle.close-modal:hover {
    background: #fff5f5;
    color: #e53e3e;
    border-color: #fed7d7;
}

.action-circle i {
    transition: transform 0.3s ease;
}

.action-circle.close-modal:hover i {
    transform: rotate(180deg);
}

.action-circle:active {
    transform: translateY(-2px) scale(0.95);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive Media Queries === */
@media (max-width: 600px) {
    .hero {
        height: 65vh;
    }

    .profile-name {
        font-size: 2.2rem;
    }

    .profile-bio {
        font-size: 1rem;
        padding: 0 10px;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .hero {
        height: 55vh;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .tienda-grid {
        gap: 15px;
    }

    .product-img {
        border-radius: 20px;
        border-width: 2px;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .visit-store-btn {
        font-size: 1.1rem;
        padding: 18px;
    }

    .modal-content {
        padding: 30px 15px;
        border-radius: 30px;
        width: 95%;
    }

    .contact-name {
        font-size: 1.6rem;
    }

    .action-circle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 320px) {
    .profile-name {
        font-size: 1.5rem;
    }

    .toggle-btn {
        font-size: 0.9rem;
        padding: 12px;
    }
}

@media (min-width: 768px) {
    .content-wrapper {
        max-width: 500px;
    }

    .hero {
        height: 80vh;
    }

    .hero-img {
        object-position: center 15%;
    }
}