/* Custom styles for Doctor Colchón using Bootstrap 5 */

/* Variables and custom properties */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-secondary: #f8f9fa;
    --bs-success: #10b981;
    --bs-info: #06b6d4;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-dark: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Override Bootstrap colors */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Brand elements */
.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bs-primary), #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-dark);
}

/* Navbar customizations */
.navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand .brand-title {
    color: var(--bs-dark);
}

.nav-link {
    color: #374151 !important;
    font-weight: 500;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
    background-color: rgba(37, 99, 235, 0.1);
}

.phone-info {
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #374151;
}

.phone-icon {
    color: var(--bs-primary);
}

.phone-number {
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 60px 0;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--bs-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.hero-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-buttons .btn {
    margin-bottom: 8px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.feature-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 0;
}

.image-container {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-xl);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.rating-card {
    bottom: -12px;
    left: -12px;
    background-color: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.rating-number {
    font-weight: bold;
    color: var(--bs-dark);
}

.rating-text {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Section styling */
.section-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-badge.bg-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: var(--bs-success) !important;
}

.section-badge.bg-info {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: var(--bs-info) !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Product cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.badge-bestseller {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444, #ec4899) !important;
    color: white !important;
    border: none;
}

.badge-popular {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border: none;
}

.badge-discount {
    top: 12px;
    right: 12px;
    background-color: var(--bs-success) !important;
    color: white !important;
    border: none;
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--bs-dark);
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-dark);
}

.original-price {
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: line-through;
}

/* City cards */
.city-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl) !important;
}

.city-image {
    height: 180px;
    overflow: hidden;
}

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

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

.city-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.city-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.city-region {
    font-size: 0.9rem;
    opacity: 0.9;
}

.info-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.city-seo {
    font-size: 0.9rem;
    color: #6b7280;
}

/* CTA Section */
.cta-section {
    border: 1px solid #e5e7eb;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--bs-dark);
}

.cta-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Benefits section */
.benefit-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--bs-dark);
}

.benefit-description {
    color: #6b7280;
    line-height: 1.6;
}

.stats-section {
    border: 1px solid #e5e7eb;
}

.stat-icon {
    width: 64px;
    height: 64px;
    background-color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bs-dark);
    margin-bottom: 8px;
}

.stat-label {
    color: #6b7280;
    font-weight: 600;
}

/* Contact section */
.contact-item {
    border-left: 4px solid var(--bs-primary) !important;
}

.contact-icon {
    width: 32px;
    height: 32px;
    background-color: var(--bs-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-form {
    border-radius: 16px !important;
}

/* Footer */
.footer {
    background-color: var(--bs-dark) !important;
}

.newsletter {
    border-bottom: 1px solid #374151 !important;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 16px;
    color: white;
}

.newsletter-description {
    color: #9ca3af;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.newsletter-form input {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: white;
}

.newsletter-form input::placeholder {
    color: #9ca3af;
}

.newsletter-form input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.footer-brand .brand-title {
    color: white;
}

.brand-description {
    color: #9ca3af;
    line-height: 1.6;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--bs-primary);
    color: white;
}

.links-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.links-list a {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.links-list a:hover {
    color: white;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.contact-detail .contact-icon {
    background-color: var(--bs-primary);
}

.footer-bottom {
    border-top: 1px solid #374151 !important;
}

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

.legal-links a {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        margin-bottom: 16px;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Additional utility classes */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Privacy Policy Specific Styles */
.privacy-icon i {
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.accordion-button:not(.collapsed) {
    background-color: #e7f3ff;
    border-color: #0d6efd;
}

.list-group-item {
    border: none;
    padding: 0.75rem 0;
}

.contact-detail {
    transition: background-color 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.contact-detail:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

/* Legal section specific styling */
.legal-links a.text-warning {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Terms and Conditions Specific Styles */
.terms-icon i {
    filter: drop-shadow(0 4px 8px rgba(13, 110, 253, 0.3));
}

/* Enhanced card styling for terms */
.card.border-primary:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.card.border-success:hover {
    border-color: #198754 !important;
    box-shadow: 0 8px 25px rgba(25, 135, 84, 0.15);
}

.card.border-info:hover {
    border-color: #0dcaf0 !important;
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.15);
}

.card.border-warning:hover {
    border-color: #ffc107 !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.15);
}

.card.border-danger:hover {
    border-color: #dc3545 !important;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
}

/* Table enhancements for terms */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(13, 110, 253, 0.05);
}

.table th {
    border-top: none;
    font-weight: 600;
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Alert styling enhancements */
.alert {
    border-width: 2px;
    border-style: solid;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: #0dcaf0;
    color: #055160;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #664d03;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24;
}

/* Contact detail styling for terms page */
.contact-detail:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

/* Responsive improvements for terms and conditions */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .card-body {
        padding: 1rem;
    }

    .table-responsive table {
        font-size: 0.875rem;
    }

    .terms-icon i {
        font-size: 3rem;
    }

    .contact-detail {
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* Print styles for terms and conditions */
@media print {
    .navbar, .footer, .btn, .alert {
        display: none !important;
    }

    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .container {
        max-width: 100% !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    h1, h2, h3 {
        color: #000 !important;
        break-after: avoid;
    }

    .accordion-collapse {
        display: block !important;
    }

    .accordion-button {
        background: none !important;
        border: none !important;
        font-weight: bold;
    }
}

/* Accessibility improvements */
.card:focus-within {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.5);
}

.accordion-button:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced accordion styling for terms */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 0.5rem;
    border-radius: 0.375rem !important;
}

.accordion-button {
    border-radius: 0.375rem !important;
    font-weight: 500;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Terms specific cards with enhanced borders */
.card.border-primary {
    border-width: 2px !important;
}

.card.border-success {
    border-width: 2px !important;
}

.card.border-info {
    border-width: 2px !important;
}

.card.border-warning {
    border-width: 2px !important;
}

.card.border-danger {
    border-width: 2px !important;
}

.card.border-secondary {
    border-width: 2px !important;
}

.card.border-dark {
    border-width: 2px !important;
}

/* Call to action section styling */
.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%) !important;
}

/* Enhanced list styling */
.list-group-flush .list-group-item {
    background-color: transparent;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.list-group-flush .list-group-item:hover {
    border-left-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
    padding-left: 1rem;
}

/* Table hover effects */
.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Icon enhancements */
.bi {
    transition: all 0.3s ease;
}

.card:hover .bi {
    transform: scale(1.1);
}
