/**
 * PDP Epic - Product Detail Page Styles
 * La mejor PDP del mundo mundial
 */

:root {
    --pdp-primary: #3b82f6;
    --pdp-primary-hover: #2563eb;
    --pdp-success: #10b981;
    --pdp-success-hover: #059669;
    --pdp-dark: #0f172a;
    --pdp-gray-50: #f8fafc;
    --pdp-gray-100: #f1f5f9;
    --pdp-gray-200: #e2e8f0;
    --pdp-gray-300: #cbd5e1;
    --pdp-gray-400: #94a3b8;
    --pdp-gray-500: #64748b;
    --pdp-gray-600: #475569;
    --pdp-gray-700: #334155;
    --pdp-gray-800: #1e293b;
    --pdp-gray-900: #0f172a;
    --pdp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --pdp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --pdp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --pdp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Gallery Hero Section */
.pdp-hero {
    margin-top: 80px;
    background: var(--pdp-gray-900);
    padding: 2rem 0;
}

.pdp-gallery {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.pdp-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.pdp-gallery-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.pdp-gallery-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4) 0%, transparent 40%);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 1.5rem;
    color: var(--pdp-gray-900);
}

.carousel-indicators {
    bottom: 2rem;
    margin: 0;
    gap: 0.5rem;
    display: flex;
    justify-content: center;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
}

.pdp-gallery-counter {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    z-index: 10;
}

/* Content Section */
.pdp-content {
    padding: 3rem 0;
    background: var(--pdp-gray-50);
}

/* Breadcrumb */
.pdp-breadcrumb {
    margin-bottom: 2rem;
}

.pdp-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.pdp-breadcrumb .breadcrumb-item {
    font-size: 0.9rem;
}

.pdp-breadcrumb .breadcrumb-item a {
    color: var(--pdp-gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pdp-breadcrumb .breadcrumb-item a:hover {
    color: var(--pdp-primary);
}

.pdp-breadcrumb .breadcrumb-item.active {
    color: var(--pdp-gray-500);
}

.breadcrumb-item + .breadcrumb-item::before {
    margin-top: -5px;
}

/* Cards */
.pdp-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--pdp-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdp-card:hover {
    box-shadow: var(--pdp-shadow-lg);
}

.pdp-card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--pdp-gray-100);
}

.pdp-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pdp-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
}

.pdp-card-subtitle {
    color: var(--pdp-gray-500);
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
}

.pdp-card-body {
    padding: 2rem;
}

/* Header Card */
.pdp-header-card {
    border-left: 4px solid var(--pdp-primary);
}

.pdp-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pdp-gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.pdp-subtitle {
    font-size: 1.125rem;
    color: var(--pdp-gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pdp-location-badge {
    display: inline-flex;
    align-items: center;
    background: var(--pdp-primary);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.pdp-actions {
    display: flex;
    gap: 0.75rem;
}

.pdp-action-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pdp-gray-100);
    border: none;
    border-radius: 12px;
    color: var(--pdp-gray-700);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdp-action-btn:hover {
    background: var(--pdp-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.pdp-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--pdp-gray-100);
}

.pdp-rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdp-rating-large i {
    font-size: 1.5rem;
    color: #fbbf24;
}

.rating-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pdp-gray-900);
}

.rating-count {
    color: var(--pdp-gray-500);
    font-size: 0.95rem;
}

.pdp-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pdp-gray-700);
    font-size: 1.05rem;
    font-weight: 600;
}

.pdp-stat i {
    font-size: 1.25rem;
    color: var(--pdp-primary);
}

/* Services Badges - Compact Design */
.pdp-services-card {
    border-left: 4px solid var(--pdp-success);
}

.pdp-services-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pdp-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: var(--pdp-gray-800);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.pdp-service-badge:hover {
    background: linear-gradient(135deg, var(--pdp-primary) 0%, #2563eb 100%);
    border-color: var(--pdp-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--pdp-shadow-lg);
}

.pdp-service-badge i {
    font-size: 1.1rem;
    color: var(--pdp-primary);
    transition: color 0.3s ease;
}

.pdp-service-badge:hover i {
    color: #ffffff;
}

/* Old Features Grid - Keep for backward compatibility but won't be used */
.pdp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.pdp-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--pdp-gray-50);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdp-feature-item:hover {
    background: var(--pdp-gray-100);
    transform: translateX(4px);
}

.pdp-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pdp-primary) 0%, #2563eb 100%);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pdp-feature-name {
    font-weight: 600;
    color: var(--pdp-gray-700);
    font-size: 0.95rem;
}

/* Canchas Grid */
.pdp-canchas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.pdp-cancha-card {
    background: linear-gradient(135deg, var(--pdp-primary) 0%, #2563eb 100%);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
    box-shadow: var(--pdp-shadow);
}

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

.pdp-cancha-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

.count-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.count-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

.pdp-cancha-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.pdp-cancha-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.pdp-cancha-detail i {
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Comments */
.pdp-comments-list {
    margin-bottom: 3rem;
}

.pdp-comment {
    padding: 1.5rem;
    background: var(--pdp-gray-50);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.pdp-comment:hover {
    background: var(--pdp-gray-100);
}

.pdp-comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pdp-comment-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pdp-primary) 0%, #2563eb 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
}

.pdp-comment-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pdp-gray-900);
    margin: 0;
}

.pdp-comment-date {
    font-size: 0.875rem;
    color: var(--pdp-gray-500);
}

.pdp-comment-text {
    color: var(--pdp-gray-700);
    line-height: 1.6;
    margin: 0;
}

/* Comment Form */
.pdp-comment-form {
    padding-top: 2rem;
    border-top: 2px solid var(--pdp-gray-200);
}

.pdp-comment-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pdp-gray-900);
    margin-bottom: 1.5rem;
}

.pdp-form-label {
    display: block;
    font-weight: 600;
    color: var(--pdp-gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.pdp-form-input,
.pdp-form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--pdp-gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.pdp-form-input:focus,
.pdp-form-textarea:focus {
    outline: none;
    border-color: var(--pdp-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

/* Sidebar Sticky */
.pdp-sticky {
    position: sticky;
    top: 100px;
}

/* Contact Card */
.pdp-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pdp-phone-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--pdp-success) 0%, #059669 100%);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdp-phone-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--pdp-shadow-lg);
}

.pdp-phone-button i {
    font-size: 1.25rem;
}

.pdp-email-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--pdp-gray-100);
    color: var(--pdp-gray-700);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem;
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
}

.pdp-email-button.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.pdp-email-button:hover {
    background: var(--pdp-gray-200);
    color: var(--pdp-gray-900);
}

.pdp-cta-group {
    margin-top: 1.5rem;
}

.btn-pdp-whatsapp {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pdp-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: var(--pdp-shadow-lg);
}

.btn-pdp-whatsapp i {
    font-size: 1.5rem;
}

.pdp-info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--pdp-primary);
    border-radius: 8px;
    margin-top: 1.5rem;
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdp-info-box.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.pdp-info-box i {
    color: var(--pdp-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pdp-info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--pdp-gray-700);
    line-height: 1.5;
}

/* Location Card */
.pdp-address {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--pdp-gray-50);
    border-radius: 12px;
}

.pdp-address i {
    color: var(--pdp-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Share Buttons */
.pdp-share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.pdp-share-btn {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.pdp-share-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--pdp-shadow-lg);
}

.pdp-share-facebook {
    background: #1877f2;
    color: #ffffff;
}

.pdp-share-twitter {
    background: #000000;
    color: #ffffff;
}

.pdp-share-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.pdp-share-link {
    background: var(--pdp-gray-200);
    color: var(--pdp-gray-700);
}

.pdp-share-link:hover {
    background: var(--pdp-gray-300);
}

/* Buttons */
.btn-pdp-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--pdp-primary) 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pdp-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--pdp-shadow-xl);
}

.btn-pdp-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--pdp-gray-100);
    color: var(--pdp-gray-700);
    border: 2px solid var(--pdp-gray-300);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pdp-secondary:hover {
    background: var(--pdp-primary);
    color: #ffffff;
    border-color: var(--pdp-primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .pdp-hero {
        margin-top: 70px;
    }
    
    .pdp-gallery-image {
        height: 400px;
    }
    
    .pdp-title {
        font-size: 2rem;
    }
    
    .pdp-sticky {
        position: static;
    }
    
    .pdp-features-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 767px) {
    .pdp-gallery-image {
        height: 300px;
    }
    
    .pdp-title {
        font-size: 1.75rem;
    }
    
    .pdp-card-body {
        padding: 1.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 48px;
        height: 48px;
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .pdp-features-grid {
        grid-template-columns: 1fr;
    }
    
    .pdp-canchas-grid {
        grid-template-columns: 1fr;
    }
    
    .pdp-actions {
        position: absolute;
        right: 1rem;
        top: 1rem;
    }
}
