/* --- Variables de Color y Tipografía --- */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #f4f4f4;
    --border-color: #ddd;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Estilos Generales --- */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Page Header --- */
.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/services-header-bg.jpg') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 8rem 0;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    margin-top: 1.5rem;
}

.breadcrumb a, .breadcrumb span {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 0.5rem;
}

.breadcrumb i {
    margin: 0 0.5rem;
    font-size: 0.8rem;
}

/* --- Services Section --- */
.services {
    background-color: #fff;
}

.service-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* Para que el borde active se superponga */
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail-content {
    padding-right: 2rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-detail-content h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-features, .service-benefits {
    margin: 2rem 0;
}

.service-features h4, .service-benefits h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-features ul, .service-benefits ul {
    list-style: none;
    padding: 0;
}

.service-features li, .service-benefits li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.service-features i, .service-benefits i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* --- Pricing Section --- */
.pricing {
    background-color: var(--light-bg);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.2rem;
    vertical-align: top;
    color: #666;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: #666;
}

.pricing-body p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pricing-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    border-top: 1px solid #eee;
}

.pricing-body li {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

/* Efecto hover sutil para las características */
.pricing-body li:hover {
    background-color: #f8f9fa;
    padding-left: 0.5rem;
}

.pricing-body i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem; /* Icono un poco más grande */
}

.pricing-body .fa-check {
    color: var(--success-color); /* Verde para los incluidos */
}

.pricing-body .fa-times {
    color: var(--accent-color); /* Rojo para los excluidos (si lo usas en el futuro) */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- CTA Section --- */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg') no-repeat center center/cover;
    color: var(--light-text);
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Responsive Design --- */
@media screen and (max-width: 992px) {
    .service-detail {
        grid-template-columns: 1fr;
    }
    
    .service-detail-content {
        padding-right: 0;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .page-header {
        padding: 5rem 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .tab-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        margin-bottom: 0;
    }
    
    .tab-btn.active {
        border-bottom-color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
    }
}

@media screen and (max-width: 576px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}