/* ==========================================================================
   SERVICE DETAIL PAGE
   Estilos para pagina de detalle de servicio, usando variables de init.css
   ========================================================================== */

/* Contenedor principal */
.service-detail-container {
    min-height: 100vh;
    width: 100%;
}

.service-detail-content {
    padding: var(--gap-section) var(--pad-xs);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: var(--gap-section);
}

/* ==========================================================================
   BLOQUE SUPERIOR: INFORMACIÓN
   ========================================================================== */

.service-info-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.service-info {
    display: flex;
    flex-direction: column;
}

/* Tag de categoría */
.service-category-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--gap-sm);
    font-family: var(--font-body);
    font-weight: 500;
}

/* Título e Info */
.service-detail-title {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    line-height: 1.1;
    color: #1a1a1a;
    margin: 0 0 var(--gap-xs) 0;
    font-weight: 400;
}

.service-detail-tagline {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: #444;
    margin: 0 0 var(--gap-md) 0;
    font-weight: 400;
    opacity: 0.9;
}

.service-detail-description p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.8;
    color: #555;
    margin-bottom: var(--gap-md);
}

/* Lista de Características */
.service-features-section {
    margin-top: var(--gap-sm);
    padding-top: var(--gap-md);
    border-top: 1px solid #eee;
}

.features-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: #1a1a1a;
    margin-bottom: var(--gap-sm);
    font-weight: 400;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
}

@media (min-width: 600px) {
    .service-features-list {
        grid-template-columns: 1fr 1fr;
    }
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-xs);
    padding: var(--gap-xs);
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.service-features-list li:hover {
    transform: translateY(-2px);
    background-color: #f5f5f5;
}

.service-features-list .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    margin-top: 2px;
}

.service-features-list span:last-child {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #444;
    line-height: 1.5;
    font-weight: 500;
}

/* Sección Ideal Para */
.service-ideal-for {
    margin-top: var(--gap-md);
    padding: var(--pad-sm);
    background-color: #f5f5f5;
    border-radius: 12px;
    border-left: 6px solid #1a1a1a;
}

.service-ideal-for h4 {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 var(--gap-xs) 0;
}

.service-ideal-for p {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #333;
    margin: 0;
    font-style: italic;
}

/* ==========================================================================
   BLOQUE INFERIOR: FORMULARIO
   ========================================================================== */

.service-contact-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.service-contact-section {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: var(--gap-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-contact-section .cosmo-section-header {
    margin-bottom: var(--gap-md);
    text-align: center;
}

.service-contact-section .cosmo-section-title {
    font-size: var(--text-lg);
    margin-bottom: var(--gap-xs);
    color: #1a1a1a;
}

/* Badge de servicio seleccionado */
.service-selected-badge {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: var(--gap-xs) var(--pad-sm);
    border-radius: 8px;
    margin-bottom: var(--gap-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-xs);
    text-align: center;
}

.service-selected-badge .badge-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.service-selected-badge .badge-value {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #1a1a1a;
    font-weight: 500;
}

/* Estilos de Campos (Inputs) */
.cosmo-contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

.cosmo-form-row {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
}

@media (min-width: 768px) {
    .cosmo-form-row {
        flex-direction: row;
    }
}

.cosmo-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}

.cosmo-form-group label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #666;
    font-weight: 500;
}

.cosmo-form-group input,
.cosmo-form-group textarea {
    padding: var(--gap-xs) var(--gap-sm);
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.cosmo-form-group input:focus,
.cosmo-form-group textarea:focus {
    border-color: #1a1a1a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.cosmo-form-footer {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    margin-top: var(--gap-xs);
    align-items: center;
}

.cosmo-checkbox-label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #666;
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    cursor: pointer;
}

.cosmo-btn-submit {
    background-color: #1a1a1a;
    color: #fff;
    padding: var(--gap-xs) var(--gap-md);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    min-width: 200px;
}

.cosmo-btn-submit:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.cosmo-btn-submit:active {
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 899px) {
    .service-detail-title {
        font-size: calc(var(--text-hero) * 0.6);
    }

      .service-contact-section {
        padding: 0;
        box-shadow: none;
        border: unset;
    }
}

@media (max-width: 600px) {
    .service-detail-content {
        padding: 40px;
        gap: var(--gap-lg);
    }

    .service-features-list {
        grid-template-columns: 1fr;
    }

    .cosmo-btn-submit {
        width: 100%;
    }
}

.service-contact-section .contact-container {
    padding: 0;
}