:root {
    --primary-color: #8B7355;
    --secondary-color: #3E2723;
    --accent-color: #D4A853;
    --light-color: #F5F0E8;
    --dark-color: #1A1108;
    --gray-color: #6B5B4A;
    --success-color: #2E7D32;
    --transition: all 0.3s ease;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-color);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.language-selector {
    position: relative;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--light-color);
    border: 1px solid #E0D6C8;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.current-lang:hover {
    border-color: var(--accent-color);
    background: white;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-hover);
    min-width: 140px;
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #E0D6C8;
}

.lang-option {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.locale-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--light-color);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--gray-color);
    font-weight: 500;
}

.locale-indicator i {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    bottom: -6px;
    left: 0;
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
}

.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.05) 0%, rgba(62, 39, 35, 0.08) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--gray-color);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.08), rgba(139, 115, 85, 0.05));
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-title p {
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.categories {
    padding: 100px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #E8E0D5;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.category-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.plans {
    padding: 100px 0;
    background: linear-gradient(135deg, #F8F4ED, #F0EAE0);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.plan-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #E8E0D5;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.plan-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

.plan-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 8px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 0 0 20px;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--gray-color);
    font-weight: normal;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px dashed #E8E0D5;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--success-color);
    margin-right: 12px;
    width: 20px;
}

.plan-features li i.fa-times {
    color: #C62828;
}

.plan-button {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.plan-button:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
    color: white;
}

.templates {
    padding: 100px 0;
}

.templates-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 24px;
    background-color: white;
    border: 1px solid #E0D6C8;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-color: transparent;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.template-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #E8E0D5;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.template-img {
    height: 220px;
    background: linear-gradient(135deg, #F8F4ED, #F0EAE0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.template-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-card:hover .template-img img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-color), #E8E0D5);
    color: var(--gray-color);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

.template-info {
    padding: 20px;
}

.template-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.template-info p {
    color: var(--gray-color);
    font-size: 0.85rem;
}

.payment-methods-section {
    padding: 80px 0;
    background: white;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.payment-icon {
    text-align: center;
    transition: var(--transition);
}

.payment-icon:hover {
    transform: translateY(-5px);
}

.payment-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    background: white;
    padding: 12px;
    border: 1px solid #E0D6C8;
}

.payment-icon span {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--dark-color);
}

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-color), #FFFFFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-about p {
    color: #D0C8BC;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #D0C8BC;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    color: #D0C8BC;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    width: 20px;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #D0C8BC;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: white;
    font-size: 1rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.floating-form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.floating-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.floating-form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.floating-form-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-form-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.floating-form-header h3 i {
    margin-right: 10px;
}

.floating-form-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
}

.floating-form-close:hover {
    transform: rotate(90deg);
}

.floating-form-body {
    padding: 24px;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0D6C8;
    border-radius: var(--border-radius-sm);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn, .whatsapp-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-2px);
}

.whatsapp-submit-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-submit-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.success-message, .error-message {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    display: none;
    font-size: 0.9rem;
}

.success-message {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #2E7D32;
}

.error-message {
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #C62828;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.gallery-container {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
}

.gallery-main-image {
    width: 100%;
    height: 60vh;
    background: #1A1108;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-thumbnail {
    height: 100px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: var(--accent-color);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail:hover {
    opacity: 0.9;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
    left: -60px;
}

.gallery-next {
    right: -60px;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 3001;
    transition: var(--transition);
}

.gallery-close:hover {
    transform: rotate(90deg);
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-nav { display: none; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 24px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul { flex-direction: column; gap: 16px; align-items: center; }
    
    .hero { padding: 160px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    
    .section-title h2 { font-size: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    
    .locale-indicator { font-size: 0.75rem; padding: 4px 8px; }
    .gallery-thumbnails { grid-template-columns: repeat(2, 1fr); }
    .gallery-main-image { height: 50vh; }
    .categories-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 1.8rem; }
    .cta-button { padding: 12px 32px; }
    .plans-grid { grid-template-columns: 1fr; }
    .templates-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 30px 20px; }
    .floating-form-container { width: 95%; }
    .payment-icons { gap: 30px; }
    .payment-icon img { width: 60px; height: 60px; }
}