/* Main Styles for De Todo En La Web - Updated 2024 */

:root {
    /* Main Colors */
    --primary: #004aad;         /* Main brand blue */
    --secondary: #1e2133;       /* Dark blue for backgrounds */
    --accent: #e4a67c;          /* Peach for highlights */
    --accent2: #503aaa;         /* Purple for secondary accents */
    --accent3: #3c8dd5;         /* Light blue for interactive elements */
    --accent4: #57834;          /* Green for success/CTA */
    
    /* Derived Colors */
    --primary-light: rgba(0, 74, 173, 0.1);
    --accent-light: rgba(228, 166, 124, 0.1);
    --accent2-light: rgba(80, 58, 170, 0.1);
    
    /* UI Colors */
    --light-bg: #f8f9fa;
    --card-bg: #f5f7fa;
    --text: #1e2133;
    --text-light: #4a5568;
    --text-on-dark: #ffffff;
    --border-color: rgba(30, 33, 51, 0.1);
}

body {
    background-color: var(--light-bg);
    background-image: linear-gradient(135deg, var(--secondary) 0%, #2a2f4a 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.main-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

/* Header Styling */
.header-logo {
    max-width: 200px;
    margin: 0 auto 1rem;
    display: block;
}

h1.display-4 {
    background: linear-gradient(90deg, var(--primary), var(--accent3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* Printing Services Section */
.printing-services {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent2) 100%);
    color: var(--text-on-dark);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.printing-services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.printing-services h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.price-tag {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    margin: 0.5rem 0.5rem 0.5rem 0;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.price-tag:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: linear-gradient(135deg, var(--accent4), #4a9e4a);
    color: white !important;
    font-weight: 600;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover::before {
    left: 100%;
}

/* Service Cards */
.service-card, .affiliate-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.service-card::before, .affiliate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent3));
    z-index: 2;
}

.service-card:hover, .affiliate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card .card-body h3, .affiliate-card .card-body h3 {
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.service-card .card-body h3::after, .affiliate-card .card-body h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.service-card .card-body {
    padding: 1.5rem;
}

/* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 1.5rem;
}

.map-container h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container h4 i {
    color: var(--accent);
    margin-right: 8px;
}

.map-container iframe {
    width: 100%;
    border: none;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contact List */
.contact-list .list-group-item {
    border: none;
    padding: 0.75rem 0;
    background-color: transparent;
    color: var(--text-light);
}

.contact-list a {
    color: var(--accent3);
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.contact-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Address Card */
.address-card {
    border: none;
    border-radius: 12px;
    height: 100%;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

/* Icons */
.text-primary {
    color: var(--primary) !important;
}

.fas, .fab {
    margin-right: 8px;
    color: var(--accent3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1.display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .printing-services {
        padding: 1.5rem;
    }
}

/* Footer */
footer {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent3));
    border-radius: 3px;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

footer a:hover {
    color: var(--accent2);
}

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