/* style.css */

:root {
    /* Triad Color Scheme */
    --primary-color: #3D8BFD; /* Vibrant Blue */
    --primary-color-dark: #2c68b1; /* Darker Blue for hover/active */
    --primary-color-light: #67a9fe; /* Lighter Blue for effects */

    --secondary-color: #FF9800; /* Vibrant Orange */
    --secondary-color-dark: #d98200; /* Darker Orange for hover/active */

    --tertiary-color: #4CAF50; /* Vibrant Green */
    --tertiary-color-dark: #3b8c40; /* Darker Green for hover/active */

    /* Neumorphism Base & Shadows (Light Theme) */
    --neumorphic-bg: #EBF5FC; /* Light grayish-blue, close to white */
    --neumorphic-bg-darker: #dbe9f5; /* Slightly darker for depth or inactive states */
    --neumorphic-shadow-light: rgba(255, 255, 255, 0.9);
    --neumorphic-shadow-dark: rgba(163, 177, 198, 0.6); /* Softer dark shadow for general elements */
    --neumorphic-shadow-strong-dark: rgba(123, 137, 158, 0.7); /* For more pronounced shadows on larger elements */
    --neumorphic-shadow-inset-dark: rgba(163, 177, 198, 0.7);
    --neumorphic-shadow-inset-light: rgba(255, 255, 255, 1);


    /* Text Colors */
    --text-color-headings: #222222; /* Dark gray for titles (as per HTML) */
    --text-color-body: #333333; /* Slightly lighter for body */
    --text-color-light: #FFFFFF;
    --text-color-muted: #6c757d; /* Bootstrap's muted, or slightly darker custom like #5a6f82 */

    /* Fonts */
    --font-family-headings: 'Oswald', sans-serif;
    --font-family-body: 'Nunito', sans-serif;

    /* Borders & Spacing */
    --border-radius-sm: 0.3rem;  /* 4.8px */
    --border-radius-md: 0.75rem; /* 12px, Neumorphic elements often have larger radius */
    --border-radius-lg: 1.5rem;  /* 24px */
    --section-padding-y: 5rem;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* Base Styles */
body {
    font-family: var(--font-family-body);
    background-color: var(--neumorphic-bg-darker); /* Page background */
    color: var(--text-color-body);
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--text-color-headings);
    margin-bottom: 1rem; /* Default Bootstrap margin */
}

.display-3, .display-5 {
    font-family: var(--font-family-headings);
}

p {
    font-family: var(--font-family-body);
    color: var(--text-color-body); /* Default paragraph color */
    margin-bottom: 1rem;
}
p.lead {
    font-size: 1.15rem; /* Slightly larger lead */
    font-weight: 400;
}
.text-muted { /* Enhancing Bootstrap's muted */
    color: var(--text-color-muted) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}
a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* Section Styling */
section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
    position: relative;
}

.section-bg-light {
    background-color: var(--neumorphic-bg);
}

.section-title { /* Used for h2 in sections */
    font-family: var(--font-family-headings);
    color: var(--text-color-headings);
    font-weight: 700; /* Bolder section titles */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section-title-light { /* For dark backgrounds */
    font-family: var(--font-family-headings);
    color: var(--text-color-light);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Offset for fixed header on specific pages */
body.privacy-page, body.terms-page, body.success-page {
    padding-top: 100px; /* Adjust based on actual header height (HTML specifies 100px) */
}

/* Header */
.neumorphic-header {
    background-color: rgba(235, 245, 252, 0.9); /* Neumorphic BG with slight transparency */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(163, 177, 198, 0.35);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: background-color var(--transition-speed) var(--transition-timing);
}
.navbar-brand {
    /* Styling from HTML */
    color: var(--text-color-headings);
}
.navbar-brand span {
    color: var(--secondary-color);
}
.navbar-nav .nav-link {
    font-family: var(--font-family-body);
    font-weight: 600; /* Slightly less bold than 700 for balance */
    color: var(--text-color-body);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed) var(--transition-timing);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { /* .active class should be set by JS for current page/section */
    color: var(--primary-color);
    background-color: rgba(255,255,255,0.6);
}
/* Toggler button styling comes from .neumorphic-button in HTML */

/* Hero Section */
.hero-section {
    min-height: 90vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--text-color-light);
    display: flex; /* Already in HTML but good to confirm */
    align-items: center;
    justify-content: center;
}
#particles-js-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-section .container { /* Content wrapper */
    position: relative;
    z-index: 2;
}
.hero-title {
    color: var(--text-color-light) !important;
    font-weight: 700; /* Oswald bold */
}
.hero-subtitle {
    color: var(--text-color-light) !important;
    opacity: 0.9;
}

/* Global Neumorphic Button Styles */
/* These styles are applied to classes like .neumorphic-button, .neumorphic-button-primary from HTML */
.neumorphic-button, .btn.neumorphic-button {
    display: inline-block;
    font-family: var(--font-family-body); /* Nunito for buttons */
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: var(--neumorphic-bg);
    border: 1px solid transparent;
    padding: 0.8rem 1.75rem; /* Generous padding */
    font-size: 1rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) var(--transition-timing);
    box-shadow: 6px 6px 14px var(--neumorphic-shadow-dark),
                -6px -6px 14px var(--neumorphic-shadow-light);
    color: var(--text-color-body);
}
.neumorphic-button:hover, .btn.neumorphic-button:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 18px var(--neumorphic-shadow-dark),
                -8px -8px 18px var(--neumorphic-shadow-light);
}
.neumorphic-button:active, .neumorphic-button.active,
.btn.neumorphic-button:active, .btn.neumorphic-button.active {
    box-shadow: inset 5px 5px 10px var(--neumorphic-shadow-inset-dark),
                inset -5px -5px 10px var(--neumorphic-shadow-inset-light);
    transform: translateY(1px);
    color: var(--primary-color); /* Change text color on active state */
}

/* Primary Neumorphic Button */
.neumorphic-button-primary, .btn.neumorphic-button-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 6px 6px 14px var(--primary-color-dark),
                -6px -6px 14px var(--primary-color-light);
}
.neumorphic-button-primary:hover, .btn.neumorphic-button-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--text-color-light);
    box-shadow: 8px 8px 18px var(--primary-color-dark),
                -8px -8px 18px var(--primary-color-light);
}
.neumorphic-button-primary:active, .neumorphic-button-primary.active,
.btn.neumorphic-button-primary:active, .btn.neumorphic-button-primary.active {
    background-color: var(--primary-color-dark);
    box-shadow: inset 5px 5px 10px rgba(0,0,0,0.25), /* Darker inset for colored button */
                inset -5px -5px 10px rgba(255,255,255,0.15); /* Lighter inset */
    color: rgba(255,255,255,0.9);
}

/* Outline Neumorphic Button */
.neumorphic-button-outline, .btn.neumorphic-button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 3px 3px 7px var(--neumorphic-shadow-dark), /* Subtle shadow */
                -3px -3px 7px var(--neumorphic-shadow-light);
}
.neumorphic-button-outline:hover, .btn.neumorphic-button-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
    box-shadow: 6px 6px 14px var(--neumorphic-shadow-dark),
                -6px -6px 14px var(--neumorphic-shadow-light);
}
.neumorphic-button-outline:active, .btn.neumorphic-button-outline:active {
    box-shadow: inset 4px 4px 8px var(--neumorphic-shadow-inset-dark),
                inset -4px -4px 8px var(--neumorphic-shadow-inset-light);
}

/* Neumorphic Card */
.neumorphic-card {
    background-color: var(--neumorphic-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: 12px 12px 28px var(--neumorphic-shadow-dark),
                -12px -12px 28px var(--neumorphic-shadow-light);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);

    /* Centering content as per strict requirements */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.neumorphic-card:hover {
    transform: translateY(-6px);
    box-shadow: 18px 18px 36px var(--neumorphic-shadow-dark),
                -18px -18px 36px var(--neumorphic-shadow-light);
}
.card-image { /* Image container inside card */
    width: 100%;
    height: 220px; /* Default fixed height for card images, adjust as needed */
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
    background-color: var(--neumorphic-bg-darker); /* Placeholder color */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.neumorphic-card .card-body { /* Bootstrap card-body alignment */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Helps push buttons to bottom if card content varies */
    flex-grow: 1; /* Allows body to fill space */
    text-align: center; /* Ensure text inside body is centered */
}
.neumorphic-card .card-title {
    color: var(--text-color-headings);
    margin-top: 0; /* Remove default top margin if any */
    font-size: 1.3rem; /* Oswald title size */
}
.neumorphic-card .card-text {
    color: var(--text-color-muted);
    font-size: 0.9rem; /* Nunito text size */
    flex-grow: 1; /* Allow text to take available space */
    margin-bottom: 1rem;
}
.product-card .price-tag {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    color: var(--tertiary-color);
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Neumorphic Form Elements */
.neumorphic-input, .form-control.neumorphic-input {
    background-color: var(--neumorphic-bg);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    padding: 0.8rem 1.1rem;
    color: var(--text-color-body);
    box-shadow: inset 5px 5px 10px var(--neumorphic-shadow-inset-dark),
                inset -5px -5px 10px var(--neumorphic-shadow-inset-light);
    transition: box-shadow var(--transition-speed) var(--transition-timing), border-color var(--transition-speed) var(--transition-timing);
}
.neumorphic-input:focus, .form-control.neumorphic-input:focus {
    background-color: var(--neumorphic-bg);
    color: var(--text-color-body);
    border-color: var(--primary-color);
    box-shadow: inset 3px 3px 6px var(--neumorphic-shadow-inset-dark),
                inset -3px -3px 6px var(--neumorphic-shadow-inset-light),
                0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25); /* Bootstrap focus ring */
    outline: none;
}
.form-label {
    font-family: var(--font-family-body);
    font-weight: 600;
    color: var(--text-color-headings);
    margin-bottom: 0.5rem;
}
.neumorphic-form-container {
    background-color: var(--neumorphic-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 15px 15px 30px var(--neumorphic-shadow-strong-dark),
                -15px -15px 30px var(--neumorphic-shadow-light);
}

/* Neumorphic Switch (Bootstrap's .form-switch enhancement from HTML) */
.form-check-input.neumorphic-switch {
    cursor: pointer;
    height: 1.6em;
    width: 3.2em;
    background-color: var(--neumorphic-bg-darker);
    border: none;
    border-radius: 1.6em;
    box-shadow: inset 4px 4px 7px var(--neumorphic-shadow-inset-dark),
                inset -4px -4px 7px var(--neumorphic-shadow-inset-light);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.8' fill='rgba(255,255,255,0.8)'/%3e%3c/svg%3e");
    background-position: left center;
    transition: background-position .15s ease-in-out, box-shadow var(--transition-speed) var(--transition-timing), background-color var(--transition-speed) var(--transition-timing);
}
.form-check-input.neumorphic-switch:checked {
    background-color: var(--primary-color);
    background-position: right center;
    box-shadow: inset 4px 4px 7px rgba(0,0,0,0.2),
                inset -4px -4px 7px rgba(255,255,255,0.1);
}
.form-check-input.neumorphic-switch:focus {
    box-shadow: inset 4px 4px 7px var(--neumorphic-shadow-inset-dark),
                inset -4px -4px 7px var(--neumorphic-shadow-inset-light),
                0 0 0 0.2rem rgba(var(--bs-primary-rgb),0.25);
}


/* Mission Section Specifics */
#mission .neumorphic-image-wrapper {
    background-color: var(--neumorphic-bg);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: 10px 10px 25px var(--neumorphic-shadow-dark),
                -10px -10px 25px var(--neumorphic-shadow-light);
}
#mission .neumorphic-image-wrapper img {
    border-radius: calc(var(--border-radius-lg) - 1rem); /* Inner image radius */
}
#mission h3 { /* "Más Que Zapatillas, Una Cultura" */
    color: var(--text-color-headings);
    font-weight: 600;
}

/* Features Section Icon Styling */
#features .feature-icon svg {
    /* SVG colors are set inline in HTML */
    margin-bottom: 1rem; /* Space icon from title */
}

/* Statistics Section */
#statistics {
    background-attachment: fixed; /* Parallax */
}
#statistics .neumorphic-stat-card {
    background-color: rgba(235, 245, 252, 0.15); /* Glassmorphism */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    color: var(--text-color-light);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2); /* Softer shadow for glass */
    border: 1px solid rgba(255, 255, 255, 0.18);
}
#statistics h3 { /* Counter numbers */
    font-family: var(--font-family-headings);
    color: var(--text-color-light);
    font-weight: 700;
    font-size: 3rem; /* Large numbers */
}
#statistics p { /* Counter labels */
    font-family: var(--font-family-body);
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

/* Testimonials Section */
#testimonials .neumorphic-testimonial-card {
    /* Uses .neumorphic-card base, specific content styling here if needed */
}
#testimonials .testimonial-avatar img {
    border: 6px solid var(--neumorphic-bg);
    box-shadow: 0px 0px 20px var(--neumorphic-shadow-dark); /* Softer shadow */
    width: 100px; /* Ensure consistent avatar size (from HTML) */
    height: 100px;
}
#testimonials .carousel-control-prev,
#testimonials .carousel-control-next {
    background-color: var(--neumorphic-bg);
    width: 3.5rem; /* Larger controls */
    height: 3.5rem;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: 5px 5px 12px var(--neumorphic-shadow-dark),
                -5px -5px 12px var(--neumorphic-shadow-light);
}
#testimonials .carousel-control-prev:hover,
#testimonials .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05); /* Slight scale on hover */
}
#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
    filter: invert(30%) sepia(80%) saturate(600%) hue-rotate(190deg) brightness(100%) contrast(100%); /* Primary color for icons */
    width: 1.8rem; /* Larger icon */
    height: 1.8rem;
}


/* "Read More" Link Style */
.read-more-link {
    font-family: var(--font-family-body);
    color: var(--secondary-color);
    font-weight: 700; /* Bold */
    text-decoration: none;
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.3rem 0;
    position: relative;
    letter-spacing: 0.5px;
}
.read-more-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px; /* Slightly below text */
    left: 0;
    background-color: var(--secondary-color-dark);
    transition: width var(--transition-speed) var(--transition-timing);
}
.read-more-link:hover::after {
    width: 100%;
}
.read-more-link:hover {
    color: var(--secondary-color-dark);
    text-decoration: none;
}

/* Footer */
.footer-bg {
    background-color: #262c35; /* Dark, slightly desaturated */
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}
.footer-bg h5 {
    font-family: var(--font-family-headings);
    color: var(--text-color-light);
    font-weight: 600; /* Less bold than section titles for footer */
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}
.footer-bg hr {
    background-color: var(--secondary-color);
    opacity: 0.8;
    height: 2px;
    border: none;
}
.footer-bg a.footer-link {
    font-family: var(--font-family-body);
    color: rgba(255,255,255,1) !important;
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing);
}
.footer-bg a.footer-link:hover {
    color: var(--secondary-color) !important;
    padding-left: 6px;
}
.footer-bg .border-top {
    border-color: rgba(255,255,255,0.1) !important; /* Subtler border */
}

/* Success Page Specific Styles */
/* Assumes body.success-page for padding-top */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* Full viewport height minus header padding */
    text-align: center;
    padding: 2rem;
    background-color: var(--neumorphic-bg);
}
.success-page-container .neumorphic-card { /* The card holding the success message */
    max-width: 650px;
    width: 100%;
}
.success-page-container .icon-success { /* For a potential SVG/Font icon */
    font-size: 4.5rem;
    color: var(--tertiary-color);
    margin-bottom: 1.5rem;
}
.success-page-container h1 {
    color: var(--tertiary-color);
}

/* ScrollReveal Initial States - JS handles animation triggering */
.reveal-fade-in, .reveal-left, .reveal-right, .reveal-bottom-up, .reveal-scale-up, .reveal-counter, .reveal-form {
    visibility: hidden;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) { /* Bootstrap lg breakpoint */
    .navbar-nav { /* Mobile menu background */
        margin-top: 1rem;
        background-color: var(--neumorphic-bg);
        border-radius: var(--border-radius-md);
        padding: 1rem;
        box-shadow: 0px 8px 20px var(--neumorphic-shadow-strong-dark);
    }
    .navbar-nav .nav-link {
        margin-left: 0;
        margin-right: 0;
        padding: 0.8rem 1rem;
    }
    .navbar-nav .nav-link:not(:last-child) {
        border-bottom: 1px solid var(--neumorphic-bg-darker);
    }

    .hero-section { min-height: 75vh; }
    .hero-title { font-size: 2.8rem; } /* Oswald is condensed, can be larger */
    .hero-subtitle { font-size: 1.15rem; }
    .section-title { font-size: 2.2rem; } /* Ensure this doesn't conflict with BS display classes */
    h2.display-5 { font-size: 2.5rem; } /* Customize BS display classes for mobile */
    h1.display-3 { font-size: 3rem; }
}

@media (max-width: 767.98px) { /* Bootstrap md breakpoint */
    :root {
        --section-padding-y: 3.5rem;
    }
    .neumorphic-card { padding: 1.25rem; }
    #features .neumorphic-card, #statistics .neumorphic-stat-card { padding: 1.5rem 1.25rem; }
    #testimonials .neumorphic-testimonial-card { padding: 1.75rem; }
    .neumorphic-form-container { padding: 2rem 1.5rem; }
    .footer-bg { text-align: center; }
    .footer-bg .mx-auto { /* For hr lines under H5 */
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .card-image { height: 180px; } /* Slightly smaller images on mobile */
    .product-card .price-tag { font-size: 1.5rem; }
    #statistics h3 { font-size: 2.5rem; }
}

@media (max-width: 575.98px) { /* Bootstrap sm breakpoint */
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    h2.display-5, .section-title { font-size: 1.9rem; }
    .neumorphic-button, .btn.neumorphic-button { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
    .neumorphic-form-container { padding: 1.5rem 1rem; }
    .card-image { height: 160px; }
}

/* Background image with text overlay (ensure contrast) */
/* The HTML uses inline style for linear-gradient, this is just a general rule */
[style*="background-image"] { /* General rule for any element with a background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure high contrast for text on varied backgrounds */
/* This is mostly handled by specific text color choices per section (e.g. .section-title-light) */

.reveal-fade-in, .reveal-left, .reveal-right, .reveal-bottom-up, .reveal-scale-up, .reveal-counter, .reveal-form {
  visibility: visible !important;
}