:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #ecf0f1;
    --bg-color: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --hover-color: #2980b9;
    --success-color: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-image: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url('los treboles.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
    transition: background 0.5s ease;
}

body.home-active {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('los treboles.png');
}

/* Sidebar */
nav {
    width: 260px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 5rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    left: -260px;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

nav.active {
    left: 0;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 1050;
    border-bottom: 1px solid var(--glass-border);
}

.top-bar h1 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-left: 3.5rem;
    letter-spacing: 2px;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-weight: 700;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Animate Hamburger to X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
    list-style: none;
}

nav ul li {
    margin-bottom: 0.5rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.72rem;
    display: block;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

nav ul li a:hover, nav ul li a.active {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

/* Global Header */
.global-header {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Main Content */
main {
    margin: 0 auto;
    padding: 100px 2rem 4rem;
    max-width: 1100px;
    width: 100%;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Catalog Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1rem;
}

.product-card h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.product-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #bdc3c7;
}

/* Quote Section Styles */
header {
    margin-bottom: 2rem;
}

header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.budget-table th, .budget-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.budget-table th {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.budget-table tr:last-child td {
    border-bottom: none;
}

.total-row {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--success-color);
}

.pdf-viewer {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 10px;
    background: white;
}

.plan-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 1rem;
}

.plan-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.report-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.report-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.report-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.report-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.report-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Hero Home Section */
#home.active {
    display: flex;
}

#home {
    min-height: calc(100vh - 6rem);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem 2.5rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto 2.5rem;
    border-radius: 10px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .hero-card {
        padding: 3rem 1.5rem;
    }

    nav {
        width: 100%;
        left: -100%;
    }

    nav.active {
        left: 0;
    }

    .top-bar h1 {
        font-size: 1rem;
        margin-left: 2.5rem;
        letter-spacing: 1px;
    }

    .global-header {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        width: 100%;
        text-align: center;
    }

    header h2 {
        font-size: 1.6rem;
    }

    .card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .top-bar h1 {
        font-size: 0.9rem;
    }
}
