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

:root {
    --primary-green: #25D366;
    --dark-green: #128C7E;
    --light-green: #DCF8C6;
    --emerald: #52B788;
    --dark-emerald: #40916C;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5e8 100%);
    min-height: 100vh;
}

/* Header */
.cotizador-header {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    color: white;
    padding: 0.56rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

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

.tree-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo h1 {
    font-size: 1.456rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Main Content */
.cotizador-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    gap: 2rem;
}

/* Sections */
section {
    background: var(--white);
    padding: 2.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

section:hover {
    box-shadow: var(--shadow-hover);
}

section h2 {
    color: #FF6B35;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.65rem;
    font-weight: 600;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

/* Custom Package Selector */
.custom-package-selector {
    position: relative;
    width: 100%;
}

.selected-package {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.selected-package:hover {
    border-color: var(--primary-green);
}

.selected-package.active {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.package-display {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.package-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.package-prices {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.adult-price, .child-price {
    display: inline-flex;
    align-items: center;
}

.dropdown-icon {
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.selected-package.active .dropdown-icon {
    transform: rotate(180deg);
}

.package-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10;
    display: none;
    overflow: hidden;
}

.package-options.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.package-option {
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

.package-option:last-child {
    border-bottom: none;
}

.package-option:hover {
    background: var(--light-green);
}

.package-option.active {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-left: 4px solid var(--primary-green);
}

.package-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.package-option-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-option-name i {
    color: var(--primary-green);
}

.package-option-prices {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
}

.price-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.price-label {
    color: var(--text-light);
}

.price-value {
    font-weight: 600;
    color: var(--primary-green);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.helper-text {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

/* Validation Message */
.validation-message {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c33;
    font-size: 0.85rem;
    animation: shake 0.3s ease;
}

.validation-message i {
    color: #c33;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group input.error {
    border-color: #c33;
    background: #fff5f5;
}

.form-group input.error:focus {
    border-color: #c33;
    box-shadow: 0 0 0 3px rgba(204, 51, 51, 0.1);
}

/* Cost Summary */
.cost-breakdown {
    display: grid;
    gap: 0.75rem;
}

.cost-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    padding-right: 3rem;
    border-radius: 8px;
    background: var(--bg-light);
    transition: var(--transition);
}

.cost-item:hover {
    background: var(--light-green);
}

.cost-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.cost-item.subtotal {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--dark-emerald) 100%);
    color: white;
    font-size: 1.1rem;
}

.cost-item.balance {
    background: linear-gradient(135deg, var(--gold) 0%, #FFB000 100%);
    color: #333;
    font-size: 1.1rem;
}

.cost-item.extras-total {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cost-value {
    font-weight: 600;
    font-size: 1.05rem;
}

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

.catalog-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.catalog-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.catalog-item.selected {
    border-color: var(--primary-green);
    background: var(--light-green);
}

.item-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    padding: 1rem;
}

.item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.item-duration {
    font-size: 0.65rem;
    font-weight: 400;
    color: #6B7280;
    margin-top: 3px;
    font-style: italic;
}

.item-price {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 700;
}

.add-to-cart {
    width: 100%;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.add-to-cart:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* Shopping Cart */
.cart-section {
    background: linear-gradient(135deg, var(--light-green) 0%, #f0fff0 100%);
    border: 2px solid var(--primary-green);
}

.cart-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
}

.day-selector {
    margin-left: auto;
}

.day-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.day-select {
    padding: 8px 12px;
    border: 2px solid #52b788;
    border-radius: 8px;
    background: white;
    color: #2d6a4f;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.day-select:focus {
    outline: none;
    border-color: #40916c;
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}

.day-select:hover {
    border-color: #40916c;
    background: #f8f9fa;
}

.info-toggle-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    border: none;
    background: #10B981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.info-toggle-btn.invisible {
    visibility: hidden;
    pointer-events: none;
}

.info-toggle-btn:hover {
    background: #059669;
    transform: scale(1.1);
}

.info-toggle-btn:active {
    transform: scale(0.95);
}

.info-toggle-btn i {
    font-size: 16px;
}

/* Info Tooltip */
.info-tooltip {
    width: 100%;
    margin-top: -8px;
    margin-bottom: 8px;
    animation: fadeInSlide 0.3s ease;
}

.info-tooltip-content {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
    border-left: 4px solid #FF5722;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    font-weight: 500;
}

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

/* Rental Info Expandable */
.rental-info-expandable {
    width: 100%;
    margin-top: -8px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.rental-info-content {
    background: #F0FDF4;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #10B981;
}

.rental-intro {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 16px;
    line-height: 1.5;
}

.rental-pricing-cotizador {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rental-item-cotizador {
    background: white;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.rental-item-cotizador:hover {
    border-color: #10B981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.rental-item-cotizador.friday-saturday {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: #F59E0B;
}

.rental-item-cotizador.sunday {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-color: #3B82F6;
}

.rental-item-cotizador.weekday {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border-color: #9CA3AF;
    flex-direction: row;
    align-items: center;
}

.weekday-content-cotizador {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weekday-first-line-cotizador {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weekday-first-line-cotizador i {
    font-size: 1.1rem;
    color: #6B7280;
    flex-shrink: 0;
}

.weekday-first-line-cotizador span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1F2937;
}

.rental-day-cotizador {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.rental-day-cotizador i {
    font-size: 1.2rem;
    color: #10B981;
    flex-shrink: 0;
}

.rental-day-cotizador span {
    font-size: 1rem;
    font-weight: 600;
    color: #1F2937;
}

.rental-price-cotizador {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10B981;
    white-space: nowrap;
}

.rental-item-cotizador.friday-saturday .rental-price-cotizador {
    color: #D97706;
}

.rental-item-cotizador.sunday .rental-price-cotizador {
    color: #2563EB;
}

.rental-item-cotizador.weekday .rental-price-cotizador {
    color: #6B7280;
    font-size: 1rem;
    white-space: nowrap;
}

.rental-note-cotizador {
    font-size: 0.75rem;
    color: #6B7280;
    font-style: italic;
    width: 100%;
    text-align: left;
}

/* Date Status Indicator */
.date-status {
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    transition: all 0.3s ease;
}

.date-status.available {
    background: #d4edda;
    border-left-color: #28a745;
}

.date-status.occupied {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.status-indicator.available {
    color: #155724;
}

.status-indicator.occupied {
    color: #721c24;
}

.status-indicator.checking {
    color: #856404;
}

#statusIcon.available {
    color: #28a745;
}

#statusIcon.occupied {
    color: #dc3545;
}

#statusIcon.checking {
    color: #ffc107;
    animation: pulse 1.5s infinite;
}

.status-details {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Quantity Selector for Letters */
/* Letters Input Container - New Design */
.letters-input-container {
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-radius: 12px;
    border: 2px solid #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.letters-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #065F46;
    font-size: 1rem;
}

.letters-label i {
    color: #10B981;
    font-size: 1.1rem;
}

.letters-text-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #10B981;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: #047857;
    background: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.letters-text-input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    transform: scale(1.02);
}

.letters-text-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;
}

.letters-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.letters-count,
.letters-total {
    background: white;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #A7F3D0;
    text-align: center;
}

.count-label,
.total-label {
    display: block;
    font-size: 0.75rem;
    color: #065F46;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.count-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10B981;
}

.total-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #047857;
}

/* Special styling for letters catalog item */
.catalog-item.letters-special {
    border: 2px solid #10B981;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
}

.catalog-item.letters-special:hover {
    border-color: #059669;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.quantity-selector {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #52b788;
    background: white;
    color: #52b788;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.quantity-btn:hover {
    background: #52b788;
    color: white;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

#lettersQuantity {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 2px solid #52b788;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #2d6a4f;
    background: white;
}

#lettersQuantity:focus {
    outline: none;
    border-color: #40916c;
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}

.total-price {
    text-align: center;
    font-weight: 700;
    color: #2d6a4f;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #52b788 0%, #40916c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Admin Photo Upload Styles */
.admin-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-item-preview {
    flex-shrink: 0;
}

.item-preview-image {
    width: 80px;
    height: 80px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.admin-item-info {
    flex-grow: 1;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.upload-btn, .edit-btn, .delete-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.upload-btn {
    background: #17a2b8;
    color: white;
}

.upload-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.edit-btn {
    background: #28a745;
    color: white;
}

.edit-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Google Calendar Integration Styles */
.time-selector-container {
    position: relative;
}

.availability-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.availability-status.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.availability-status.occupied {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.availability-status.checking {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.time-option-disabled {
    color: #999 !important;
    background: #f5f5f5 !important;
}

.time-option-available {
    color: #155724;
    background: #d4edda;
}

.cancel-appointment-link {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.cancel-appointment-link:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.cart-item-price {
    color: var(--primary-green);
    font-weight: 600;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cart-total {
    text-align: center;
    font-size: 1.3rem;
    color: var(--dark-green);
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Action Buttons */
.actions-section {
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    min-width: 200px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-tertiary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.modal-body {
    padding: 2rem;
}

/* Admin Panel */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--bg-light);
}

.admin-item-info {
    flex: 1;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions button {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.edit-btn {
    background: #ffc107;
    color: #333;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cotizador-main {
        padding: 1rem;
        gap: 1rem;
    }
    
    section {
        padding: 1.1rem;
    }
    
    .header-content {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .logo h1 {
        font-size: 1.232rem;
    }
    
    .tree-icon {
        font-size: 1.56rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .cost-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .tree-icon {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.456rem;
    }
    
    section h2 {
        font-size: 1.43rem;
    }
    
    .item-image {
        height: 150px;
        font-size: 3rem;
    }
}
/* Tree Logo Styles */
.tree-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 1px;
    box-sizing: border-box;
    margin: auto;
    transition: all 0.4s ease;
    cursor: pointer;
}

.tree-logo:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8),
                0 0 30px rgba(255, 140, 200, 0.6),
                0 0 45px rgba(82, 183, 136, 0.4);
    animation: sparkle-dance 2.5s infinite ease-in-out;
}

.tree-logo.click-effect {
    animation: click-grow-shrink-cotizador 0.6s ease-in-out;
}

@keyframes click-grow-shrink-cotizador {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(2) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes sparkle-dance {
    0%, 100% { 
        transform: scale(1.2) rotate(0deg);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8),
                    0 0 30px rgba(255, 140, 200, 0.6),
                    0 0 45px rgba(82, 183, 136, 0.4);
    }
    25% { 
        transform: scale(1.25) rotate(2deg);
        box-shadow: 0 0 20px rgba(255, 140, 200, 0.8),
                    0 0 35px rgba(82, 183, 136, 0.6),
                    0 0 50px rgba(255, 215, 0, 0.4);
    }
    50% { 
        transform: scale(1.3) rotate(-2deg);
        box-shadow: 0 0 18px rgba(82, 183, 136, 0.8),
                    0 0 36px rgba(255, 215, 0, 0.6),
                    0 0 54px rgba(255, 140, 200, 0.4);
    }
    75% { 
        transform: scale(1.25) rotate(1deg);
        box-shadow: 0 0 22px rgba(255, 215, 0, 0.7),
                    0 0 40px rgba(255, 140, 200, 0.5),
                    0 0 58px rgba(82, 183, 136, 0.3);
    }
}

.tree-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    overflow: visible;
    background: white;
}
