/* Design System - Estudio Contable Sabrina De Cabo */

:root {
    --primary-bg: #121212;
    --secondary-bg: #1E1E1E;
    --accent-gold: #D4AF37;
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0A0;
    --border-color: #333333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #121212; /* Prevents white overscroll flash on iOS */
}

body {
    background: 
        radial-gradient(circle at 0% 0%, #1a1a1a 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, #1e1e1e 0%, transparent 40%),
        radial-gradient(circle at center, #121212 0%, #0a0a0a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.btn:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.text-gold {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 190px; /* Luxury header for a high-impact logo */
    display: flex;
    align-items: center;
    background: transparent;
}

header.scrolled {
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    height: 110px; /* Bold sticky presence */
}

header.scrolled .logo img {
    height: 50px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    background: transparent;
    margin-left: -2rem; /* Shifting further to the left */
}

.logo img {
    height: 155px; /* Monumental brand recognition */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
    transition: all 0.5s ease;
}

header.scrolled .logo img {
    height: 85px; /* Proportional but strong shrink */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)), url('https://images.unsplash.com/photo-1454165833767-027508496b4c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--secondary-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Pricing Plans */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--secondary-bg);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: transform var(--transition-speed);
}

.pricing-card.featured {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.features-list {
    margin-bottom: 2rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: '✓';
    color: var(--accent-gold);
    margin-right: 0.5rem;
}

/* Success Stories */
.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.success-card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-left: 4px solid var(--accent-gold);
}

.success-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.client-info h4 {
    color: var(--text-primary);
}

.client-info span {
    color: var(--accent-gold);
    font-size: 0.85rem;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info div {
    margin-bottom: 2rem;
}

.contact-info h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.contact-form {
    background: var(--secondary-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: #121212;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-gold);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--secondary-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a:hover {
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    width: 60px; /* Reduced by ~20% from 75px */
    height: 60px;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(37, 211, 102, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.wa-float:hover {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(37, 211, 102, 0.4));
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 125px; /* Positioned above WhatsApp */
    right: 35px; /* Aligned with WhatsApp (60px icon vs 50px icon) */
    background: var(--secondary-bg);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-5px);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--accent-gold);
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    z-index: 1001;
}

@media (max-width: 768px) {
    html {
        font-size: 18px; /* Proportional scale-up for all mobile elements */
    }

    header {
        height: 145px !important; /* Maximized for brand prominence */
    }

    header.scrolled {
        height: 75px !important;
    }

    .logo {
        margin-left: 0;
    }

    .logo img {
        height: 125px !important; /* +10% increase for monumental impact */
    }

    header.scrolled .logo img {
        height: 60px !important;
    }

    .hero {
        padding-top: 180px; /* Luxury padding for the bold header */
        height: auto;
        min-height: 100vh;
    }

    h1 { font-size: 2.2rem !important; }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        display: flex; /* Always flex but hidden via transform */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-primary);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}
