/* ================================================
   ESTILOS PARA PÁGINAS DE SERVICIOS
   ================================================ */

/* Hero Section - Service Pages */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Container - Apply gray background only to content container */
.hero + .container {
    background: #f8f9fa;
}

/* Ensure footer container has NO background */
.footer-compact .container {
    background: transparent !important;
    padding: 3rem 0 1.5rem !important;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease-out;
    background: white;
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

.content-section:last-child {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2.2rem;
    color: #1e3a5f;
    margin-bottom: 25px;
    margin-top: 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    z-index: 2;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 15px;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content-section ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
}

.content-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.content-section ul li strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

.feature-card {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #1e3a5f;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.7;
    margin: 0;
}

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

.pricing-card {
    background: white;
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
}

.pricing-card h3 {
    font-size: 1.6rem;
    color: #1e3a5f;
    margin-bottom: 20px;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #667eea;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card p {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.7;
    margin: 0;
}

/* FAQ Items */
.faq-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.faq-item h3 {
    font-size: 1.25rem;
    color: #1e3a5f;
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item p {
    font-size: 1.05rem;
    color: #2c3e50;
    line-height: 1.8;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a90e2 100%);
    padding: 80px 40px;
    text-align: center;
    color: white;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.cta-section h2::after {
    display: none;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 16px 50px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ================================================ */

/* Tablet (1024px y menos) */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

/* Mobile (768px y menos) */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
        min-height: 350px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero + .container {
        padding: 40px 15px;
        background: #f8f9fa;
    }

    .content-section {
        margin-bottom: 35px;
        padding: 30px 25px;
    }

    .content-section:last-child {
        margin-bottom: 50px;
    }

    .content-section h2 {
        font-size: 1.7rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pricing-card {
        padding: 35px 25px;
    }

    .pricing-card .price {
        font-size: 1.3rem;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 60px 25px;
        margin-top: 60px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.05rem;
    }

    .cta-button {
        padding: 14px 40px;
        font-size: 1rem;
    }
}

/* Mobile pequeño (480px y menos) */
@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 50px;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero + .container {
        padding: 30px 12px;
        background: #f8f9fa;
    }

    .content-section {
        margin-bottom: 30px;
        padding: 25px 20px;
    }

    .content-section:last-child {
        margin-bottom: 40px;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section p,
    .content-section ul li {
        font-size: 0.95rem;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .pricing-card h3 {
        font-size: 1.4rem;
    }

    .pricing-card .price {
        font-size: 1.2rem;
    }

    .cta-section h2 {
        font-size: 1.7rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 35px;
        font-size: 0.95rem;
    }
}

/* Ensure body doesn't add unwanted background */
body {
    background: transparent;
}

/* Print Styles */
@media print {
    .hero,
    .cta-section {
        background: white;
        color: black;
    }

    .feature-card,
    .pricing-card,
    .faq-item {
        page-break-inside: avoid;
    }
}
