/* Inherit variables from parent styles.css */
@import url('../css/styles.css');

/* Detail Page Specific Styles */
.app-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
}

.app-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.app-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.app-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.app-hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Problem vs Solution Section */
.comparison-section {
    background-color: var(--bg-color);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-card {
    padding: 2rem;
    border-radius: 15px;
}

.problem-card {
    background: rgba(239, 68, 68, 0.1);
    /* Red tint */
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.solution-card {
    background: rgba(16, 185, 129, 0.1);
    /* Green tint */
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.comparison-card h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.problem-card h3 {
    color: #f87171;
}

.solution-card h3 {
    color: #34d399;
}

.comparison-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.problem-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #f87171;
    font-weight: bold;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34d399;
    font-weight: bold;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 3px;
}

/* Back Link */
.back-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    font-weight: 600;
}

.back-link:hover {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Persona/Role Based Layout (New) --- */
.role-section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.role-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.role-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.role-section:nth-child(even) .role-container {
    flex-direction: row-reverse;
}

.role-text {
    flex: 1;
}

.role-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.role-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-features {
    list-style: none;
    margin-top: 2rem;
}

.role-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.role-features li i {
    color: var(--primary-color);
    margin-top: 5px;
}

.role-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.visual-card i {
    font-size: 5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.visual-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.visual-card p {
    position: relative;
    z-index: 1;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .role-container {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .role-features li {
        justify-content: center;
        text-align: left;
    }
}

.bg-darker {
    background-color: rgba(0, 0, 0, 0.2);
}

footer {
    background: #0f172a;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

/* --- Customization Section --- */
.customization-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.customization-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.customization-text {
    flex: 1;
}

.customization-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 1.5rem 0;
    display: block;
}

.customization-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    background: #000;
    border: 8px solid #333;
    border-radius: 30px;
    height: 400px;
    width: 200px;
    position: relative;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen {
    color: white;
    text-align: center;
}

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

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(76, 29, 149, 0.2));
    border: 1px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .customization-content {
        flex-direction: column;
        text-align: center;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

/* --- WhatsApp Button Style --- */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background-color: #20bd5a;
    color: white;
}

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

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    aspect-ratio: 9/19.5;
    /* Mobile screen ratio */
    background: #0f172a;
}

.gallery-item:hover {
    transform: translateY(-5px);
    z-index: 5;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

/* --- Customization Section --- */
.customization-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.customization-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.customization-text {
    flex: 1;
}

.customization-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 1.5rem 0;
    display: block;
}

.customization-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    background: #000;
    border: 8px solid #333;
    border-radius: 30px;
    height: 400px;
    width: 200px;
    position: relative;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen {
    color: white;
    text-align: center;
}

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

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

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    aspect-ratio: 9/19.5;
    background: #0f172a;
}

.gallery-item:hover {
    transform: translateY(-5px);
    z-index: 5;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

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

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(76, 29, 149, 0.2));
    border: 1px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .customization-content {
        flex-direction: column;
        text-align: center;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

/* --- WhatsApp Button Style --- */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background-color: #20bd5a;
    color: white;
}

/* --- App Hero Backgrounds --- */
.bg-futbol {
    background-image: url('https://images.unsplash.com/photo-1579952363873-27f3bade9f55?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover !important;
    background-position: center !important;
}

.bg-vet {
    background-image: url('https://images.unsplash.com/photo-1623387641168-d9803ddd3f35?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover !important;
    background-position: center !important;
}

.bg-tools {
    background-image: url('https://images.unsplash.com/photo-1586864387967-d02ef85d93e8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover !important;
    background-position: center !important;
}

.bg-boutique {
    background-image: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover !important;
    background-position: center !important;
}

.bg-transport {
    background-image: url('https://images.unsplash.com/photo-1570125909232-eb263c188f7e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
    background-size: cover !important;
    background-position: center !important;
}
