/* ========================================
   Grupo Liberty - CSS Styles
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --background: hsl(0, 0%, 13%);
    --foreground: hsl(0, 0%, 100%);
    --card: hsl(0, 0%, 13%);
    --card-foreground: hsl(0, 0%, 100%);
    --primary: hsl(0, 0%, 8%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(0, 0%, 13%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --muted: hsl(0, 0%, 18%);
    --muted-foreground: hsl(0, 0%, 88%);
    --accent: hsl(46, 65%, 52%);
    --accent-foreground: hsl(0, 0%, 13%);
    --gold: hsl(46, 65%, 52%);
    --gold-light: hsl(46, 65%, 62%);
    --gold-dark: hsl(46, 65%, 42%);
    --hope: hsl(0, 0%, 95%);
    --destructive: hsl(0, 84%, 60%);
    --border: hsl(0, 0%, 25%);
    --input: hsl(0, 0%, 20%);
    --ring: hsl(46, 65%, 52%);
    --radius: 0.5rem;
    --cta-red: hsl(0, 72%, 51%);
    --cta-red-hover: hsl(0, 72%, 45%);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-gradient-gold {
    background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none !important;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-xs {
    width: 0.875rem;
    height: 0.875rem;
}

.icon-gold {
    color: var(--accent);
    width: 1.25rem;
    height: 1.25rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: hsl(0, 0%, 5%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--cta-red);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-cta:hover {
    background-color: var(--cta-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--muted);
    color: var(--foreground);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: hsl(0, 0%, 25%);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(33, 33, 33, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 768px) {
    .header-container {
        height: 5rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .logo-img {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.logo-text {
    color: var(--foreground);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    padding: 0.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-mobile {
    padding: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.3s ease;
}

.nav-mobile .nav-link {
    padding: 0.5rem 0;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, var(--secondary), hsl(0, 0%, 10%));
}

@media (min-width: 768px) {
    .hero {
        padding: 10rem 0 6rem;
    }
}

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

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

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-features {
        justify-content: flex-start;
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .hero-disclaimer {
        justify-content: flex-start;
    }
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background-color: var(--muted);
}

@media (min-width: 768px) {
    .benefits {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .benefits {
        padding: 8rem 0;
    }
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-label {
    display: block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    color: var(--muted-foreground);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background-color: var(--card);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.25);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.benefit-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.benefit-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background-color: var(--secondary);
}

@media (min-width: 768px) {
    .testimonials {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .testimonials {
        padding: 8rem 0;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: var(--muted);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 2rem;
    }
}

.testimonial-card:hover {
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.25);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(212, 175, 55, 0.3);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
    fill: var(--accent);
}

.testimonial-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
}

.author-location {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom right, var(--primary), hsl(0, 0%, 5%));
}

@media (min-width: 768px) {
    .cta-section {
        padding: 6rem 0;
    }
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-text {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    padding: 3rem 0 1.5rem;
    background-color: var(--secondary);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    max-width: 300px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 40;
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 1.75rem;
    height: 1.75rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(33, 33, 33, 0.8);
    backdrop-filter: blur(4px);
}

.modal {
    background-color: var(--card);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    position: sticky;
    top: 0;
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--secondary);
}

.modal-brand span {
    font-weight: 600;
}

.modal-close {
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--muted);
}

.modal-close i {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-content {
    padding: 1.5rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-step {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.progress-percent {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
}

.progress-bar {
    height: 0.5rem;
    background-color: var(--secondary);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: var(--muted-foreground);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.error-message {
    display: block;
    color: var(--destructive);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-buttons .btn-secondary {
    flex: 1;
}

.form-buttons .btn-primary {
    flex: 2;
}

/* Question Steps */
.step-question {
    text-align: center;
    padding: 2rem 0;
}

.question-icon {
    width: 5rem;
    height: 5rem;
    background-color: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.question-icon i {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent);
}

.question-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-yes {
    background-color: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.btn-yes:hover {
    background-color: rgba(34, 197, 94, 0.25);
    transform: translateY(-2px);
}

.btn-no {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.btn-no:hover {
    background-color: rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

/* Rejection Message */
.rejection-message {
    text-align: center;
    padding: 2rem 0;
}

.rejection-icon {
    width: 5rem;
    height: 5rem;
    background-color: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.rejection-icon i {
    width: 2.5rem;
    height: 2.5rem;
    color: #ef4444;
}

.rejection-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.rejection-text {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Summary Card */
.summary-card {
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.summary-value {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Success Step */
.success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 6rem;
    height: 6rem;
    background-color: rgba(245, 245, 245, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    width: 3rem;
    height: 3rem;
    color: var(--hope);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.success-text {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-notice {
    background-color: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 2rem;
}

.success-notice p {
    font-weight: 500;
}
