:root {
    --primary-green: #1B3022; /* Verde Bosque Profundo */
    --primary-light: #2D4F39;
    --accent-gold: #D4AF37;   /* Dorado Elegante */
    --accent-orange: #C17D3C;
    --bg-color: #FDFBF7;      /* Crema Champán */
    --surface-color: #FFFFFF;
    --text-dark: #121815;
    --text-light: #4A5D52;
    --border-color: rgba(212, 175, 55, 0.15); /* Borde dorado sutil */
    
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-color);
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-green);
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-green);
    border: 1px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--primary-green);
    border-color: var(--accent-gold);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.link-arrow:hover {
    gap: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-green);
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 48, 34, 0.7), rgba(18, 24, 21, 0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content .title {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.highlight {
    color: var(--accent-orange);
    font-style: italic;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

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

/* Layouts */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

/* Cards & Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(27, 48, 34, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Images */
.rounded-img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    object-fit: cover;
}

.shadow {
    box-shadow: 0 20px 40px rgba(41, 91, 70, 0.2);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 250px;
    background: #E8EDE9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    height: 80%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.secondary-bg { background: #FDEBD0; }
.tertiary-bg { background: #E1F0E5; }

.icon-placeholder {
    font-size: 5rem;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-orange);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Process Section */
.dark-section {
    background: var(--primary-green);
    color: white;
}

.dark-section h2 {
    color: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--bg-color);
}

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

.gallery-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 20px;
}

.gallery-item video {
    border-radius: 15px;
    object-fit: cover;
    aspect-ratio: 16/9;
    background: #000;
    width: 100%;
}

.gallery-item h4 {
    font-size: 1.25rem;
    color: var(--primary-green);
}

/* Social Section (Vertical Videos) */
.social-section {
    background: #f0f4f2;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: #000;
}

.social-item video {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: block;
}

.social-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(27, 48, 34, 0.95));
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Resources Section */
.resources-section {
    background: var(--bg-color);
}

.bg-light { background: #fdfdfd; }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.resource-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

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

.resource-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Promo Banner */
.promo-card {
    padding: 5rem 4rem;
    background: linear-gradient(135deg, var(--bg-color), rgba(212, 175, 55, 0.08));
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.promo-text, .promo-image {
    position: relative;
    z-index: 1;
}

.promo-image img {
    max-height: 450px;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

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

.step {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.step h4 {
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
}

.stat-num {
    display: block;
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--accent-orange);
    font-weight: 800;
}

.stat-label {
    font-weight: 600;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: white;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--accent-gold);
}

.footer h4 {
    color: var(--accent-gold);
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}

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

.footer-logo {
    height: 70px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: white;
    padding: 5px;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Tech Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.tech-card {
    text-align: left;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
}

.tech-card:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.tech-card h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.tech-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Social */
.footer-social {
    display: flex;
    flex-direction: column;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-gold);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* Tech Section Styles Expansion */
.tech-divider {
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-color), var(--primary-green));
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-item h4 {
    text-align: center;
    padding: 1rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

/* Tech Section Styles Expansion */
.tech-divider {
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-color), var(--primary-green));
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-item h4 {
    text-align: center;
    padding: 1rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

/* Tech Section Styles Expansion */
.tech-divider {
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-color), var(--primary-green));
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-item h4 {
    text-align: center;
    padding: 1rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

/* Animations */
.animate {
    opacity: 0;
    visibility: hidden;
}

.fade-in.visible {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up.visible {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; visibility: hidden; }
    to { opacity: 1; visibility: visible; }
}

@keyframes slideUp {
    from { opacity: 0; visibility: hidden; transform: translateY(40px); }
    to { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* Orders Section */
.orders-section {
    background: var(--bg-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-item .icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--accent-gold);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
}

.form-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    min-height: 1.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.w-full { width: 100%; }

/* AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.ai-chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--primary-green);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bot-info p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.close-chat {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fdfdfd;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.bot {
    align-self: flex-start;
    background: #f0f4f1;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background: var(--primary-green);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #eee;
}

.chat-input-area input {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 12px;
    outline: none;
}

.chat-input-area button {
    background: var(--primary-green);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Floating Controls */
.floating-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1500;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

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

.whatsapp-btn img {
    width: 35px;
}

.chat-btn {
    background: var(--primary-green);
    color: white;
    font-size: 1.8rem;
    border: 1px solid var(--accent-gold);
}

.highlight-nav {
    color: var(--accent-gold) !important;
    position: relative;
}

.highlight-nav::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
}

/* Responsive */
@media (max-width: 900px) {
    .layout-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content .title {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background: rgba(248, 249, 247, 0.98);
        flex-direction: column;
        width: 100%;
        height: calc(100vh - 70px);
        justify-content: center;
        transition: 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* Video Responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-item h4 {
    text-align: center;
    padding: 1rem;
    font-family: var(--font-main);
}
.tech-divider {
    height: 80px;
    background: linear-gradient(to bottom, var(--bg-color), var(--primary-green));
}

/* Shipping Toggle */
.shipping-toggle-group { margin-top: 0.5rem; }
.shipping-label { font-weight: 600; color: var(--primary-green); font-size: 0.9rem; margin-bottom: 0.8rem; display: block; }
.shipping-options { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.95rem; padding: 0.7rem 1.2rem; border: 1.5px solid rgba(212,175,55,0.25); border-radius: 12px; transition: all 0.3s; }
.radio-option:hover { border-color: var(--accent-gold); background: rgba(212,175,55,0.05); }
.radio-option input[type="radio"] { display: none; }
.radio-custom { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s; }
.radio-option input[type="radio"]:checked ~ .radio-custom { background: var(--accent-gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
.radio-option:has(input:checked) { border-color: var(--accent-gold); background: rgba(212,175,55,0.08); font-weight: 600; }

/* Address Block */
.address-block { background: rgba(212,175,55,0.05); border: 1.5px dashed rgba(212,175,55,0.35); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; animation: slideDown 0.35s ease; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width: 600px) { .form-row { grid-template-columns: 1fr; } .shipping-options { flex-direction: column; } }

/* --- Calculadora Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #faf5ee;
    border-radius: 24px;
    width: min(540px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(0,0,0,0.2);
}

/* Estilos internos de la calculadora (del usuario) */
.calc-container {
    --brown-c: #3d1f0f;
    --terra-c: #c0632a;
    --gold-c: #d4956a;
    --cream-c: #f5ede0;
    padding: 0 0 30px;
}

.calc-header {
    background: var(--brown-c);
    padding: 30px 24px;
    text-align: center;
    color: white;
}

.calc-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.calc-logo-text span { color: var(--gold-c); }

.calc-body { padding: 30px; }

.calc-dim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.calc-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brown-c);
    margin-bottom: 5px;
}

.calc-field input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(61,31,15,0.1);
    border-radius: 12px;
    font-family: inherit;
    outline: none;
}

.calc-field input:focus { border-color: var(--terra-c); }

.calc-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--terra-c), #6b3320);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(192,99,42,0.3);
}

.calc-results { margin-top: 30px; display: none; }

.calc-result-row {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

.calc-result-row.highlight {
    background: var(--brown-c);
    color: white;
}

.calc-val { font-family: 'Playfair Display', serif; font-size: 1.5rem; }

.calc-bar-wrap {
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.calc-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--terra-c), var(--gold-c));
    width: 0%;
    transition: width 0.8s ease;
}
/* Estilos exactos de la calculadora proporcionada por el usuario */
:root {
  --calc-cream:  #f5ede0;
  --calc-brown:  #3d1f0f;
  --calc-mid:    #6b3320;
  --calc-terra:  #c0632a;
  --calc-gold:   #d4956a;
  --calc-light:  #faf5ee;
  --calc-shadow: rgba(61,31,15,.18);
}

.calc-user-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 48px var(--calc-shadow);
  width: min(540px, calc(100vw - 32px));
  overflow: hidden;
  position: relative;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}

.calc-user-header {
  background: var(--calc-cream);
  padding: 20px 28px 16px;
  border-bottom: 2px solid rgba(61,31,15,.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-user-header h2 {
  font-family: 'Playfair Display', serif;
  color: var(--calc-brown);
  font-size: 1.15rem;
  margin: 0;
}
.calc-user-header small {
  display: block;
  color: var(--calc-mid);
  font-size: .75rem;
  opacity: .7;
  margin-top: 2px;
}

.calc-user-body { padding: 28px; }

.calc-user-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media(max-width:420px){ .calc-user-dim-grid{ grid-template-columns:1fr; } }

.calc-user-field label {
  display: block;
  font-size: .71rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--calc-mid);
  margin-bottom: 6px;
}
.calc-user-field input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid rgba(61,31,15,.12);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--calc-brown);
  background: var(--calc-light);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.calc-user-field input:focus {
  border-color: var(--calc-terra);
  box-shadow: 0 0 0 3px rgba(192,99,42,.12);
}
.calc-user-field .unit {
  font-size: .68rem;
  color: var(--calc-gold);
  font-weight: 600;
  margin-top: 4px;
  text-align: right;
  display: block;
}

.calc-user-info-note {
  background: rgba(192,99,42,.07);
  border-left: 3px solid var(--calc-terra);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: .81rem;
  color: var(--calc-mid);
  line-height: 1.5;
}

.calc-user-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--calc-terra), var(--calc-mid));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(192,99,42,.35);
  transition: transform .15s, box-shadow .15s;
}
.calc-user-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(192,99,42,.4); }
.calc-user-btn:active { transform: translateY(0); }

.calc-user-results { margin-top: 24px; }

.calc-user-result-row {
  background: var(--calc-light);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1.5px solid rgba(61,31,15,.07);
  margin-bottom: 12px;
}
.calc-user-result-row.highlight {
  background: linear-gradient(135deg, var(--calc-brown), var(--calc-mid));
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(61,31,15,.25);
  margin-bottom: 0;
}

.calc-user-result-label {
  font-size: .79rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--calc-mid);
  line-height: 1.3;
}
.calc-user-result-row.highlight .calc-user-result-label { color: var(--calc-gold); }

.calc-user-result-desc {
  font-size: .71rem;
  color: rgba(107,51,32,.5);
  margin-top: 3px;
}
.calc-user-result-row.highlight .calc-user-result-desc { color: rgba(255,255,255,.45); }

.calc-user-result-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--calc-brown);
  white-space: nowrap;
}
.calc-user-result-row.highlight .calc-user-result-val { color: #fff; font-size: 2rem; }

.calc-user-result-unit {
  font-size: .7rem;
  font-weight: 600;
  color: var(--calc-terra);
  margin-left: 4px;
  font-family: 'DM Sans', sans-serif;
}
.calc-user-result-row.highlight .calc-user-result-unit { color: var(--calc-gold); }

.calc-user-bar-section { margin-top: 18px; }
.calc-user-bar-title {
  font-size: .72rem;
  font-weight: 600;
  color: var(--calc-mid);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: .7;
}
.calc-user-bar-wrap {
  background: rgba(61,31,15,.09);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}
.calc-user-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--calc-terra), var(--calc-gold));
  transition: width .9s cubic-bezier(.4,0,.2,1);
}
.calc-user-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: .69rem;
  color: var(--calc-mid);
  opacity: .6;
  margin-top: 5px;
}

.calc-user-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--calc-brown);
  transition: background 0.2s;
}
.calc-user-close:hover {
  background: rgba(0,0,0,0.1);
}

.modal-overlay {
  display: none;
}
.modal-overlay.active {
  display: flex;
}
