/* 
   El Negro Bon - Style Sheet
   Theme: Dark & Amber (Tailwind Match)
*/

:root {
    --primary: #f59e0b;
    /* Tailwind Amber-500 */
    --primary-dark: #d97706;
    /* Tailwind Amber-600 */
    --primary-light: #fbbf24;
    /* Tailwind Amber-400 */

    --dark-bg: #0a0a0a;
    /* Tailwind Neutral-950 */
    --card-bg: #171717;
    /* Tailwind Neutral-900 */
    --black: #000000;
    --white: #ffffff;

    --gray-light: #d4d4d4;
    /* Tailwind Neutral-300 */
    --gray: #a3a3a3;
    /* Tailwind Neutral-400 */
    --gray-dark: #525252;
    /* Tailwind Neutral-600 */

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Changed to Inter to match App.tsx */

    --transition: all 0.3s ease;
    --container-width: 1200px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    /* Use Neutral-950 */
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
isindex {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-black {
    background-color: var(--black);
    color: var(--white);
}

.btn-black:hover {
    background-color: #333;
}

/* Header */
.header {
    background-color: rgba(17, 17, 17, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Increased to ensure it's above hero overlay */
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 1.1rem;
    /* Increased from 0.9rem */
    font-family: var(--font-heading);
    color: var(--gray-light);
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
}

.cart-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--white);
    color: var(--black);
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 20px 0;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white);
}

.mobile-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centering */
    overflow: hidden;
    background-color: var(--black);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) opacity(0.4);
    transform: scale(1.1);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 1), rgba(10, 10, 10, 0.6), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;

    /* Centering text */


    max-width: 1000px;
    padding-top: 0;
}

.badge {
    background-color: var(--primary);
    color: var(--black);
    padding: 5px 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transform: skewX(-12deg);
    /* React design style */
}

.hero-title {
    font-size: 5rem;
    /* Fallback */
    font-size: clamp(4rem, 10vw, 7rem);
    /* Responsive sizing like text-9xl */
    line-height: 0.9;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 50px;
    color: var(--gray-light);
    letter-spacing: 0.25em;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-note {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Bio Section */
.bio-section {
    padding: var(--section-padding);
    background-color: var(--black);
    /* Changed to black to match gradient transition */
    border-top: 1px solid #222;
}

.bio-container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    /* Grid ratio from React (col-span-5 vs 7) */
    gap: 60px;
    align-items: center;
}

.bio-image-wrapper {
    position: relative;
}

.bio-image {
    filter: grayscale(100%);
    border-radius: 5px;
    border: 1px solid var(--gray-dark);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.experience-badge .years {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
}

.experience-badge .exp-text {
    font-size: 0.8rem;
    color: var(--black);
    font-weight: 600;
}

.section-subtitle {
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.bio-text p {
    margin-bottom: 20px;
    color: var(--gray-light);
}

.bio-text .quote {
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    font-style: italic;
    color: var(--gray);
}

.bio-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature-tag {
    background-color: #222;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #333;
}

.feature-tag i {
    color: var(--primary);
}

/* Certification Display Section */
.certification-display {
    padding: var(--section-padding);
    background-color: #0F0F0F;
    /* Slightly lighter than pure black for contrast */
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.cert-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.cert-main-icon {
    font-size: 3rem;
    color: var(--primary);
}

.line-deco {
    height: 1px;
    background-color: rgba(255, 165, 0, 0.3);
    flex-grow: 1;
}

.cert-details-box {
    background-color: rgba(255, 165, 0, 0.05);
    padding: 30px;
    border-left: 4px solid var(--primary);
    margin: 30px 0;
}

.cert-details-box h3 {
    color: #FFE4B5;
    /* Lighter Orange/Cream */
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.matricula {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.cert-desc {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.6;
}

.cert-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
}

.cert-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.cert-image-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
}

.cert-upload-slot {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.upload-label {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.cert-img-placeholder {
    width: 100%;
    height: auto;
    border: 2px dashed #444;
    border-radius: 5px;
    opacity: 0.8;
    transition: var(--transition);
}

.cert-img-placeholder:hover {
    border-color: var(--primary);
    opacity: 1;
}

.verified-badge {
    background-color: var(--primary);
    color: var(--black);
    font-weight: 800;
    padding: 10px 20px;
    display: inline-block;
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    font-family: var(--font-heading);
    border-radius: 5px;
}

/* Planes Section */
.planes-section {
    padding: var(--section-padding);
    background-color: var(--darker-bg);
}

.section-subheader {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 50px;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.plan-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid #333;
    position: relative;
    transition: var(--transition);
    /* Flexbox for alignment */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.plan-card.featured {
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.featured-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--black);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.plan-type {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 30px;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 5px;
}

.price .period {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 400;
}

.plan-features {
    margin-bottom: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.plan-features li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray-light);
    display: flex;
    gap: 10px;
}

.plan-features li i {
    color: var(--primary);
    font-size: 0.8rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.plan-features li.highlight {
    color: var(--white);
    font-weight: 500;
}

.terms-note {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 20px;
}

/* Consultation CTA */
.consultation-cta {
    margin-top: 50px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
}

.consultation-cta h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.consultation-cta p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Biomechanics Section */
.biomechanics-section {
    padding: var(--section-padding);
    background-color: #151515;
}

.bio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.bio-desc {
    max-width: 600px;
    color: var(--gray);
}

.btn-outline-small {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 700;
}

.btn-outline-small:hover {
    background-color: var(--primary);
    color: var(--black);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.video-thumbnail {
    height: 180px;
    background-color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    position: relative;
    cursor: pointer;
}

.video-thumbnail:hover i {
    color: #ff0000;
}

.video-thumbnail i {
    font-size: 3rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.video-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.video-tag {
    font-size: 0.7rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.cta-banner {
    background-color: var(--primary);
    border-radius: 10px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text h3 {
    color: var(--black);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.cta-text p {
    color: #333;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--black);
    padding: 60px 0 20px;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-desc {
    margin-top: 15px;
    color: var(--gray);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-contact h4,
.footer-slogan h4 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1rem;
}

.contact-link {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-light);
}

.contact-link:hover {
    color: var(--primary);
}

.footer-slogan p {
    font-style: italic;
    color: var(--gray);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: var(--gray-dark);
    font-size: 0.8rem;
}

/* Cart Sidebar */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2500;
    display: none;
}

.cart-modal-overlay.active {
    display: block;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 2600;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    background-color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.cart-header h3 {
    color: var(--primary);
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    background-color: #222;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
    border-left: 3px solid var(--primary);
}

.cart-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.cart-item .item-price {
    font-weight: 700;
    color: var(--primary);
}

.remove-item {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--gray-dark);
    cursor: pointer;
}

.remove-item:hover {
    color: #ff4444;
}

.cart-footer {
    padding: 20px;
    background-color: #222;
    border-top: 1px solid #333;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.total-amount {
    color: var(--primary);
}

.empty-cart-msg {
    text-align: center;
    color: var(--gray);
    margin-top: 50px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .bio-container,
    .cert-container,
    .planes-grid,
    .videos-grid,
    .cta-banner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .bio-image-wrapper {
        margin-bottom: 30px;
    }

    .order-2-mobile {
        order: 2;
    }

    .cert-image-frame {
        align-items: center;
        margin-top: 30px;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cart-sidebar {
        width: 100%;
    }
}

/* Admin UI Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    width: 90%;
    /* Mobile friendly */
    max-width: 400px;
    position: relative;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.close-modal {
    color: var(--gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--white);
}

.admin-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    background-color: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--white);
    font-family: var(--font-body);
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Edit Pencils */
.edit-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
    vertical-align: middle;
    /* Hidden by default unless body has admin-mode class */
    display: none;
}

/* Mobile optimizations for pencils */
@media (max-width: 768px) {
    .edit-btn {
        font-size: 1.5rem;
        /* Larger touch target */
        padding: 5px;
    }
}

.edit-btn:hover {
    opacity: 0.8;
}

/* Add Video Button */
.btn-admin-add {
    display: none;
    /* Hidden by default */
    margin-bottom: 20px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary);
    border: 1px dashed var(--primary);
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-admin-add:hover {
    background: rgba(245, 158, 11, 0.2);
}

.delete-video-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    /* Hidden by default */
}

/* Show admin elements when logged in */
body.admin-mode .edit-btn,
body.admin-mode .btn-admin-add,
body.admin-mode .delete-video-btn {
    display: inline-block;
}

body.admin-mode .btn-admin-add {
    display: block;
}